Title: Script containing sys.exit(255) throws an Error on visualstudio_py_launcher_nodebug.py · Issue #454 · microsoft/vscode-python · GitHub
Open Graph Title: Script containing sys.exit(255) throws an Error on visualstudio_py_launcher_nodebug.py · Issue #454 · microsoft/vscode-python
X Title: Script containing sys.exit(255) throws an Error on visualstudio_py_launcher_nodebug.py · Issue #454 · microsoft/vscode-python
Description: 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_nodeb...
Open Graph Description: 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/Py...
X Description: 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/Py...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/454
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Script containing sys.exit(255) throws an Error on visualstudio_py_launcher_nodebug.py","articleBody":"## Environment data\r\nVS Code version: 1.19.0\r\nPython Extension version: 0.9.0\r\nPython Version: 2.7.12\r\nOS and version: Ubuntu 16.04\r\n\r\n## Actual behavior\r\n.vscode/extensions/ms-python.python-0.9.0/pythonFiles/PythonTools/visualstudio_py_launcher_nodebug.py\", line 117, in handle_exception\r\n frame_file = path.normcase(tb[i][0])\r\nNameError: global name 'path' is not defined\r\n\r\n## Expected behavior\r\nSystemExit: 255\r\n\r\n## Steps to reproduce: \r\n- On a python script that contains sys.exit(255) run it with Ctrl+F5\r\n\r\nChanging \r\nline 117 frame_file = path.normcase(tb[i][0])\r\nby\r\nframe_file = os.path.normcase(tb[i][0])\r\n\r\nsolves the problem.\r\n\r\n## Logs\r\nOutput from ```Python``` output panel \r\n```\r\n.vscode/extensions/ms-python.python-0.9.0/pythonFiles/PythonTools/visualstudio_py_launcher_nodebug.py\", line 117, in handle_exception\r\n frame_file = path.normcase(tb[i][0])\r\nNameError: global name 'path' is not defined\r\n``` \r\nOutput from ```Console window``` (Help->Developer Tools menu)\r\n```\r\n```\r\n","author":{"url":"https://github.com/alonke","@type":"Person","name":"alonke"},"datePublished":"2017-12-18T15:11:31Z","url":"https://github.com/microsoft/vscode-python/issues/454"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0ec89fd9-6b20-ddfd-d207-66968a043e08 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 930C:251A5:3D3F68:4F749D:6AFE3FAE |
| html-safe-nonce | 5e85d10fcc11f6bb479ff94021f2a440efd382e218a4493a3a2fcdb6aee801be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzBDOjI1MUE1OjNEM0Y2ODo0Rjc0OUQ6NkFGRTNGQUUiLCJ2aXNpdG9yX2lkIjoiNjA4MzMxMzY1NzQ3MzU0ODIwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f0a49dbd177fff2719ec0e8b6be736206caef3b843c6a01ccb4817f77b2cf4d5 |
| hovercard-subject-tag | issue:282911375 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python/454/issue_layout |
| twitter:image | https://opengraph.githubassets.com/69e62074bcfae29b892598928e9451bfe7cfba4c0a2b480505262369218eb924/microsoft/vscode-python/issues/454 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/69e62074bcfae29b892598928e9451bfe7cfba4c0a2b480505262369218eb924/microsoft/vscode-python/issues/454 |
| og:image:alt | 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/Py... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alonke |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1a5901e2377b0af2a0b303f9528678f1475d04b9219dca1e993344196eaa07c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 106462765 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 49946255 |
| octolytics-dimension-repository_parent_nwo | DonJayamanne/pythonVSCode |
| octolytics-dimension-repository_network_root_id | 49946255 |
| octolytics-dimension-repository_network_root_nwo | DonJayamanne/pythonVSCode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c4447fdce9ed0f33af959d2b6680d0bc18212a6a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width