You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS Code version: 1.19.0
Python Extension version: 0.9.0
Python Version: 2.7.12
OS and version: Ubuntu 16.04
Actual behavior
.vscode/extensions/ms-python.python-0.9.0/pythonFiles/PythonTools/visualstudio_py_launcher_nodebug.py", line 117, in handle_exception
frame_file = path.normcase(tb[i][0])
NameError: global name 'path' is not defined
Expected behavior
SystemExit: 255
Steps to reproduce:
On a python script that contains sys.exit(255) run it with Ctrl+F5
Changing
line 117 frame_file = path.normcase(tb[i][0])
by
frame_file = os.path.normcase(tb[i][0])
solves the problem.
Logs
Output from Python output panel
.vscode/extensions/ms-python.python-0.9.0/pythonFiles/PythonTools/visualstudio_py_launcher_nodebug.py", line 117, in handle_exception
frame_file = path.normcase(tb[i][0])
NameError: global name 'path' is not defined
Output from Console window (Help->Developer Tools menu)
The text was updated successfully, but these errors were encountered:
* Conditionally import `reflect-metadata` (fixes#432)
* Once within the extension
* Once within the debugger
* Once within the unittests
* Fully qualify the `path` module (fixes#454)
* Conditionally import `reflect-metadata` (fixes#432)
* Once within the extension
* Once within the debugger
* Once within the unittests
* Fully qualify the `path` module (fixes#454)
* Update change log for release (#457)
Environment data
VS Code version: 1.19.0
Python Extension version: 0.9.0
Python Version: 2.7.12
OS and version: Ubuntu 16.04
Actual behavior
.vscode/extensions/ms-python.python-0.9.0/pythonFiles/PythonTools/visualstudio_py_launcher_nodebug.py", line 117, in handle_exception
frame_file = path.normcase(tb[i][0])
NameError: global name 'path' is not defined
Expected behavior
SystemExit: 255
Steps to reproduce:
Changing
line 117 frame_file = path.normcase(tb[i][0])
by
frame_file = os.path.normcase(tb[i][0])
solves the problem.
Logs
Output from
Python
output panelOutput from
Console window
(Help->Developer Tools menu)The text was updated successfully, but these errors were encountered: