-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Python interpreter list showing each python.org install twice #15302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for reporting this @tonybaloney! We're reworking how we discover interpreters in the extension (#12020), and so far I can't repro this while using our shiny new algorithm:
We'll just have to make sure it stays that way once we roll it out 🙂 |
@kimadeline thanks for the quick response. I've just enabled the It's showing both the relative and absolute paths to the same interpreters |
Huh, that I couldn't repro though. What happens if you enable both |
here's my global settings: {
"window.zoomLevel": 1,
"git.autofetch": true,
"C_Cpp.updateChannel": "Insiders",
"scm.alwaysShowActions": true,
"scm.alwaysShowRepositories": true,
"python.analysis.memory.keepLibraryAst": true,
"python.linting.banditEnabled": true,
"python.linting.banditPath": "/Library/Frameworks/Python.framework/Versions/2.7/bin/bandit",
"python.languageServer": "Pylance",
"python.analysis.typeCheckingMode": "basic",
"python.experiments.optInto": [
"pythonDiscoveryModule"
],
"python.insidersChannel": "weekly",
"python.pythonPath": "/Library/Frameworks/Python.framework/Versions/3.9/bin/python3",
"workbench.colorTheme": "Material Theme Lighter",
"workbench.startupEditor": "readme",
"materialTheme.accent": "Cyan",
"terminal.external.osxExec": "iTerm.app",
"terminal.integrated.fontFamily": "MesloLGS NF",
"terminal.integrated.rendererType": "canvas",
"editor.fontFamily": "Anonymice Nerd Font Mono",
"editor.fontSize": 14,
"window.dialogStyle": "custom",
"window.titleBarStyle": "native",
"window.nativeTabs": true,
"cmake.configureOnOpen": true,
"git.confirmSync": false,
"files.associations": {
"*.asm": "masm",
"*.S": "asm"
},
"codeQL.telemetry.enableTelemetry": false,
"testMate.cpp.log.logSentry": "enable",
} |
Can you try adding |
Hi @tonybaloney, does this problem still happen with the latest Insiders build of the extension? |
I just tried the "pythonDiscoveryModuleWithoutWatcher" experiment, but it highlighted it as an invalid option |
Ah yes, sorry, we removed It seems that you're also seeing #15312, with one of the duplicate paths shown being one relative to your home folder ( Thank you for the update! |
@tonybaloney We just released a fix for #15312 in the insiders build of the extension that should solve this when in |
Environment data
Expected behaviour
The environment selection window will show my python versions (all from the default macOS installer at Python.org) each once only
Actual behaviour
Each version is shown twice:
Those two 3.8 interpreters are symlinks to the same file:
These symlinks are default for the python.org installer for macOS.
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: