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

Unable to open python file when clicking from cell output in visual studio code server #16137

Open
johanlamm opened this issue Oct 23, 2024 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue needs to be triaged

Comments

@johanlamm
Copy link

Environment data

  • VS Code version: 1.94.2
  • Jupyter Extension version (available under the Extensions sidebar): v2024.9.1
  • Python Extension version (available under the Extensions sidebar): v2024.16.1
  • OS (Windows | Mac | Linux distro) and version: Windows 11 Pro on both remote and local
  • Python and/or Anaconda version: 3.12
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): Conda env on remote
  • Jupyter server running: Local | Remote | N/A

Expected behaviour

Clicking on the line number in the cell output of a traceback should take me to the file

Actual behaviour

Error message "Unable to open 'script.py' The editor could not be opened becouse the file was not found

Steps to reproduce:

On visual studio server, connect to the remote and create the files below

minimal.ipynb:

from script import failfunction
failfunction()

script.py:
def failfunction():
return fail

Cell output:

NameError Traceback (most recent call last)
Cell In[2], line 2
1 from script import failfunction
----> 2 failfunction()

File c:\Users\XXX\script.py:2, in failfunction()
1 def failfunction():
----> 2 return fail

NameError: name 'fail' is not defined

Clicking on line two you are supposed to open the python file but instead get error

Image

@johanlamm johanlamm added the bug Issue identified by VS Code Team member as probable bug label Oct 23, 2024
@vs-code-engineering vs-code-engineering bot added the triage-needed Issue needs to be triaged label Oct 23, 2024
@DonJayamanne DonJayamanne removed their assignment Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants