Skip to content

[BUG] Sync fails with empty ipynb notebook file #712

@fjakobs

Description

@fjakobs

Describe the bug
Sync fails when it tries to copy an invalid or empty ipynb file.

To Reproduce
Steps to reproduce the behavior:

  1. In the terminal type touch empty.ipynb
  2. Start code sync
  3. See error

System information:

  1. Paste the output ot the Help: About command (CMD-Shift-P).
    Version: 1.77.3 (Universal)
    Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
    Date: 2023-04-12T09:19:37.325Z (1 mo ago)
    Electron: 19.1.11
    Chromium: 102.0.5005.196
    Node.js: 16.14.2
    V8: 10.2.154.26-electron.0
    OS: Darwin arm64 22.4.0
    Sandboxed: Yes

  2. Databricks Extension Version: 0.3.13

Databricks Extension Logs

{"level":"info","logger":"Bricks","message":"time=2023-05-15T16:28:33.137+02:00 level=DEBUG source=path.go:104 msg=\"Path /Repos/[email protected]/ide-best-practices.ide has type repo (ID: 4487386506650005)\"","timestamp":1684160913137}
{"level":"info","logger":"Bricks","message":"Error: notebooks/foo.ipynb: error loading Jupyter notebook file: EOF","timestamp":1684160914144}
{"level":"info","logger":"Bricks","message":"time=2023-05-15T16:28:34.144+02:00 level=ERROR source=root.go:95 msg=\"failed execution\" exit_code=1 error=\"notebooks/foo.ipynb: error loading Jupyter notebook file: EOF\"","timestamp":1684160914145}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions