Title: Python / envFile in launch.json causes issues · Issue #149 · microsoft/vscode-python · GitHub
Open Graph Title: Python / envFile in launch.json causes issues · Issue #149 · microsoft/vscode-python
X Title: Python / envFile in launch.json causes issues · Issue #149 · microsoft/vscode-python
Description: From Andre Weinand (@weinand) on July 19, 2017 18:50 From blitzd on July 19, 2017 18:13 VSCode Version: Code 1.14.1 (2648980a697a4c8fb5777dcfb2ab110cec8a2f58, 2017-07-13T19:12:01.887Z) OS Version: Linux x64 4.8.0-53-generic Extensions: E...
Open Graph Description: From Andre Weinand (@weinand) on July 19, 2017 18:50 From blitzd on July 19, 2017 18:13 VSCode Version: Code 1.14.1 (2648980a697a4c8fb5777dcfb2ab110cec8a2f58, 2017-07-13T19:12:01.887Z) OS Version: ...
X Description: From Andre Weinand (@weinand) on July 19, 2017 18:50 From blitzd on July 19, 2017 18:13 VSCode Version: Code 1.14.1 (2648980a697a4c8fb5777dcfb2ab110cec8a2f58, 2017-07-13T19:12:01.887Z) OS Version: ...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/149
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python / envFile in launch.json causes issues","articleBody":"_From @weinand on July 19, 2017 18:50_\n\n_From @blitzd on July 19, 2017 18:13_\n\n- VSCode Version: Code 1.14.1 (2648980a697a4c8fb5777dcfb2ab110cec8a2f58, 2017-07-13T19:12:01.887Z)\r\n- OS Version: Linux x64 4.8.0-53-generic\r\n- Extensions: \r\n\r\nExtension|Author (truncated)|Version\r\n---|---|---\r\nvscode-docker|Pet|0.0.16\r\ngitignore|cod|0.5.0\r\ngithistory|don|0.2.1\r\npython|don|0.6.7\r\ngitlens|eam|4.3.1\r\nvscode-npm-script|eg2|0.2.0\r\nMagicPython|mag|1.0.10\r\ndebugger-for-chrome|msj|3.1.6\r\nremote-vscode|raf|1.1.0\r\nvscode-icons|rob|7.10.1\r\n\r\n(1 theme extensions excluded)\r\n\r\n\r\n---\r\n\r\nSteps to Reproduce:\r\n\r\n1. Create a simple project with a Python launch.json configuration:\r\n\r\n`launch.json`\r\n```\r\n{\r\n \"version\": \"0.2.0\",\r\n \"configurations\": [\r\n {\r\n \"name\": \"Python\",\r\n \"type\": \"python\",\r\n \"request\": \"launch\",\r\n \"stopOnEntry\": false,\r\n \"pythonPath\": \"${config:python.pythonPath}\",\r\n \"program\": \"${file}\",\r\n \"cwd\": \"${workspaceRoot}\",\r\n \"env\": {},\r\n \"envFile\": \"${workspaceRoot}/.env\",\r\n \"debugOptions\": [\r\n \"WaitOnAbnormalExit\",\r\n \"WaitOnNormalExit\",\r\n \"RedirectOutput\"\r\n ],\r\n \"console\": \"integratedTerminal\"\r\n }\r\n ]\r\n}\r\n```\r\n`script.py`\r\n```\r\nprint('This is a test')\r\n```\r\n\r\n2. Run the Python debug for script.py\r\n\r\n3. The console is set to integratedTerminal as the debug console will otherwise swallow the output. On my own system the output first lists all of the my shell ENV variables, then again iterates them one at a time. It looks like it dies when it hits the LS_COLORS and is interpreting the internal `=` as a split between an environment variable key and value:\r\n\r\n```\r\n...\r\nLC_CTYPE=en_CA.UTF-8\r\nSETTING=1\r\nWINDOWID=96468997\r\nzsh: command not found: 34:ln=01\r\nzsh: command not found: 36:mh=00:pi=40\r\nzsh: command not found: 33:so=01\r\nzsh: command not found: 35:do=01\r\nzsh: command not found: 35:bd=40\r\nzsh: command not found: 33\r\nzsh: command not found: 01:cd=40\r\nzsh: command not found: 33\r\nzsh: command not found: 01:or=40\r\n...\r\n```\r\n\r\nI have also tried with the shell set to `/bin/bash` with the same result.\r\n\r\nReproduces without extensions: Unable to check as the python extensions are required for the python debug.\r\n\r\nWorkaround: Removing the .envFile setting from the launch.json profile resolves the issue, or otherwise setting the values in the launch.json .env setting also avoids the problem - so it seems there is some difference in how the .envFile settings are being applied over the ones in .env.\n\n_Copied from original issue: Microsoft/vscode#31065_\n\n_Copied from original issue: DonJayamanne/pythonVSCode#1104_","author":{"url":"https://github.com/DonJayamanne","@type":"Person","name":"DonJayamanne"},"datePublished":"2017-11-14T00:10:17Z","url":"https://github.com/microsoft/vscode-python/issues/149"}
| 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:ba52e12f-ac79-7bd5-7d7c-bb9b22eb549c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEEE:3A7E17:19248:243AC:6AFDC9E2 |
| html-safe-nonce | 2eea89b70669b9e67f1a18eb577e65cfb3a72b4acb822279d714454238cbf587 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUVFOjNBN0UxNzoxOTI0ODoyNDNBQzo2QUZEQzlFMiIsInZpc2l0b3JfaWQiOiI0NjU4MjkwMDI3NDUxNTAxMDI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bbab50ecfa82ea1c337da823d60193a72e97c792cf019e8f48aa88f055221033 |
| hovercard-subject-tag | issue:273623403 |
| 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/149/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1bdc53f7fffa655d46ebb55b508af6933a37a0df0a0ad19c9f97c1d78e4ba882/microsoft/vscode-python/issues/149 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1bdc53f7fffa655d46ebb55b508af6933a37a0df0a0ad19c9f97c1d78e4ba882/microsoft/vscode-python/issues/149 |
| og:image:alt | From Andre Weinand (@weinand) on July 19, 2017 18:50 From blitzd on July 19, 2017 18:13 VSCode Version: Code 1.14.1 (2648980a697a4c8fb5777dcfb2ab110cec8a2f58, 2017-07-13T19:12:01.887Z) OS Version: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DonJayamanne |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9ab00cc3b4fa90bbd3da70765dd38efc23cfa9d9b0930e41feea2bf67f60ecaf |
| 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 | 1b795ba060b92691fc16c5a12cf2bf95e83432b4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width