Repository navigation
Wrong environment variable information was read #16284
Copy link
Copy link
Closed
Labels
area-editor-*User-facing catch-allUser-facing catch-allbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterIssue requires more information from poster
Description
Activity
- addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-teambugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
on May 20, 2021 - addedarea-editor-*User-facing catch-allUser-facing catch-alland removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on May 20, 2021 What command did you use to display this list of paths? Where did you run it from?
- addedinfo-neededIssue requires more information from posterIssue requires more information from poster
on May 20, 2021 I used
.NET Interactive Notebooksextensions. And run csharp code:Action<string> log = message => Console.WriteLine(message); var path = Environment.GetEnvironmentVariable("PATH"); var pathArray = path.Split(";", StringSplitOptions.None); foreach( var p in pathArray ){ log(p); }
What do you get if you try to get environment variables from your terminal directly, for example using the
Get-ChildItem -Path Env:command in PowerShell?What is the output when you open the Python REPL in your terminal and try to get environment variables in Python?
import os os.environ
Moving your question to GitHub discussions since it's Python-related, and not an extension issue.
- locked and limited conversation to collaborators
on Jun 1, 2021
Metadata
Metadata
Assignees
Labels
area-editor-*User-facing catch-allUser-facing catch-allbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterIssue requires more information from poster




Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
when active Python extension. will show this message:
I checked my environment variable configuration and found no
"characters .Below is the result:
"d:\rmlis6\common"is not in my environment PATH. I'm very sure.I don’t know where it was read from.