PTVS
PTVS copied to clipboard
No intellisense when from 'PYTHONPATH'
Environment
Steps to Reproduce
1.Create a module7.py under D:\test_pythonpath
2.Add the module7.py path to PYTHONPATH
3.Launch VS and create a pythonapplication, make sure "Ignore system-wide PYTHONPATH variables" is unchecked
4.Type sample code to get intellisense from 'PYTHONPATH'
import module7
Expected behavior I can get intellisense from 'PYTHONPATH'
Actual behavior
No intellisense, although i add PYTHONPATH to search path
Probably related to #6831.
In today's build, i can get intellisense from 'PYTHONPATH'. But when i checked the "Ignore system-wide PYTHONPATH variables", i still get the intellisense
@linette-zyy Does this still repro? For the latest repro, did you also add Pythonpath to Search path?
@AdamYoblick
In today's latest build:17.6.0 Preview 1.0 [33402.156.main],Python Package:17.0.23033.1
I can get intellisense from 'PYTHONPATH'. But when i checked the "Ignore system-wide PYTHONPATH variables", i still get the intellisense
@AdamYoblick I believe the above behavior is expected, right? The Ignore system-wide PYTHONPATH variables
only applies when PYTHONPATH
is not added to Search Paths?
Yeah I think this is expected. Once a path is added to search paths, it doesn't matter how they were added there. In order to make them go away, you'd have to remove them from the search path.
Closing the issue as the behavior is expected.