Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notebooks do not work with typical two-panel git diff view #2933

Closed
wamartin-aml opened this issue Oct 10, 2019 · 8 comments
Closed

Notebooks do not work with typical two-panel git diff view #2933

wamartin-aml opened this issue Oct 10, 2019 · 8 comments
Assignees

Comments

@wamartin-aml
Copy link

Bug: Notebook Editor, Interactive Window, Python Editor cells

Steps to cause the bug to occur

  1. Open .ipynb file with this extension enabled.
  2. Make changes to document.
  3. Save changes to document.
  4. Wait for changes to show up under "CHANGES" in the source control window
  5. Click on the file name in the source control window

Actual & Expected behavior

Expected: A two-panel git diff shows up showing unstaged changes
Actual: A new window appears and then closes. A notification pops up with

Failed to show text document git:/mnt/c/Users/wamartin/home/[my notebook path]?%7B%22path%22%3A%22%2Fmnt%2Fc%2FUsers%2Fwamartin%2Fhome%2F[my notebook path]%22%2C%22ref%22%3A%22~%22%7D, should show in editor #undefined

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local (I think? I didn't start anything, but there is a kernel running)
  • Extension version: 2019.10.41019-xxx
  • VS Code version: 1.38.1
  • Setting python.jediEnabled: true
  • Python and/or Anaconda version: 3.6.7
  • OS: Linux (Ubuntu through WSL):
  • Virtual environment: conda

Developer Tools Console Output

None# Bug: Notebook Editor, Interactive Window, Python Editor cells

Steps to cause the bug to occur

  1. Open .ipynb file with this extension enabled.
  2. Press ctrl + F to search the file.

Actual & Expected behavior

Expected: two panel git diff pops up with changes
Actual: It seems as though VS Code tries to open the git diff view, but that tab closes and we are returned to the single notebook view.

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local (I think? I didn't start anything, but there is a kernel running)
  • Extension version: 2019.10.41019-xxx
  • VS Code version: 1.38.1
  • Setting python.jediEnabled: true
  • Python and/or Anaconda version: 3.6.7
  • OS: Linux (Ubuntu through WSL):
  • Virtual environment: conda

Developer Tools Console Output

None

@jmew
Copy link
Contributor

jmew commented Oct 10, 2019

Thank you for the bug report.

@DonJayamanne DonJayamanne self-assigned this Oct 10, 2019
@rchiodo
Copy link
Contributor

rchiodo commented Oct 14, 2019

@DonJayamanne I'm not sure this is working. The editor still opens. Was the fix supposed to prevent our editor from opening?

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Oct 15, 2019

Yes thats correct.
Please could you provide the steps to replicate this issue (what did you click, icon or the file name?)

@rchiodo
Copy link
Contributor

rchiodo commented Oct 15, 2019

  1. Create new blank jupyter notebook in a directory that's under git
  2. Add a cell
  3. Save
  4. Go to the git tab in VS code and double click the ipynb

Expected result:
Just the diff window opens.

Actual result:
Diff window opens and our editor.

@DonJayamanne
Copy link
Contributor

@rchiodo We have fixed it (works in Mac correctly).
There's a bug in VS Code windows that causes the onDidOpenTextDocument to get fired with the wrong information.

Upstream issue (Windows bug) microsoft/vscode#82636

@rchiodo
Copy link
Contributor

rchiodo commented Oct 21, 2019

I believe this is merged now, right? We can validate?

@DonJayamanne
Copy link
Contributor

Yes

@IanMatthewHuff
Copy link
Member

Validated on Mac.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants