Whinarn / vscode-python-auto-venv

Automatic selection of Python virtual environments in Visual Studio Code.
MIT License
9 stars 5 forks source link

believe it does not detect "python -m venv" #6

Closed msrn1975 closed 3 years ago

msrn1975 commented 3 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] python by default has its own virtual environment by command python -m venv [projectname] once created, it will created several folders inside [projectname] folder and create file pyvenv.cfg. I believe this extension does not auto detect it.

Describe the solution you'd like A clear and concise description of what you want to happen. it is good if this extension able to auto detect it and have the terminal inside vscode auto start inside this virtual env.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

Whinarn commented 3 years ago

Hi @msrn1975,

First off I would like to mention that this extension should be seen as an extension to the official Python extension available. It simply does not work at all without it. Could it be that you missed this requirement?

it is good if this extension able to auto detect it and have the terminal inside vscode auto start inside this virtual env. This is actually something that the official Python extension already has support for. This extension only tells the official Python extension where the virtual env is located, that's it.

This extension could further be set up to detect further requirement filenames or names of virtual env directories. Have you tried those out yet?

Whinarn commented 3 years ago

Could you send over some of the logs from the extension logging output? You can find them here: image

msrn1975 commented 3 years ago

I think u are right, the log shows microsoft python ext error.

On Fri, Feb 19, 2021 at 11:55 PM Mattias Edlund notifications@github.com wrote:

Could you send over some of the logs from the extension logging output? You can find them here: [image: image] https://user-images.githubusercontent.com/2932594/108527887-1ae7d900-72d3-11eb-80d8-a7a753a73cbe.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Whinarn/vscode-python-auto-venv/issues/6#issuecomment-782164268, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANJ4Y5YCMK4NJNIMWXONXVTS72CVVANCNFSM4XZQO7EA .

[2021-02-23 11:20:38.771] [exthost] [info] extension host started [2021-02-23 11:20:38.877] [exthost] [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication {"startup":false,"extensionId":{"value":"vscode.microsoft-authentication","_lower":"vscode.microsoft-authentication"},"activationEvent":"onAuthenticationRequest:microsoft"} [2021-02-23 11:20:38.878] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/microsoft-authentication/dist/extension.js [2021-02-23 11:20:38.892] [exthost] [info] ExtensionService#_doActivateExtension aaron-bond.better-comments {"startup":false,"extensionId":{"value":"aaron-bond.better-comments","_lower":"aaron-bond.better-comments"},"activationEvent":"onLanguage:python"} [2021-02-23 11:20:38.893] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/aaron-bond.better-comments-2.1.0/out/extension [2021-02-23 11:20:38.972] [exthost] [info] ExtensionService#_doActivateExtension batisteo.vscode-django {"startup":false,"extensionId":{"value":"batisteo.vscode-django","_lower":"batisteo.vscode-django"},"activationEvent":"onLanguage:python"} [2021-02-23 11:20:38.972] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/batisteo.vscode-django-1.3.0/out/extension [2021-02-23 11:20:39.170] [exthost] [info] ExtensionService#_doActivateExtension ms-toolsai.jupyter {"startup":false,"extensionId":{"value":"ms-toolsai.jupyter","_lower":"ms-toolsai.jupyter"},"activationEvent":"onLanguage:python"} [2021-02-23 11:20:39.170] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/out/client/extension [2021-02-23 11:20:39.472] [exthost] [info] ExtensionService#_doActivateExtension whinarn.python-auto-venv {"startup":false,"extensionId":{"value":"whinarn.python-auto-venv","_lower":"whinarn.python-auto-venv"},"activationEvent":"onLanguage:python"} [2021-02-23 11:20:39.472] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/whinarn.python-auto-venv-1.1.1/dist/extension.js [2021-02-23 11:20:39.502] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"extensionId":{"value":"vscode.debug-auto-launch","_lower":"vscode.debug-auto-launch"},"activationEvent":""} [2021-02-23 11:20:39.503] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/debug-auto-launch/dist/extension [2021-02-23 11:20:39.512] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"extensionId":{"value":"vscode.github","_lower":"vscode.github"},"activationEvent":""} [2021-02-23 11:20:39.512] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/git/dist/main [2021-02-23 11:20:39.539] [exthost] [info] ExtensionService#_doActivateExtension albert.TabOut {"startup":true,"extensionId":{"value":"albert.TabOut","_lower":"albert.tabout"},"activationEvent":""} [2021-02-23 11:20:39.539] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/albert.tabout-0.2.0/out/src/extension [2021-02-23 11:20:39.597] [exthost] [info] ExtensionService#_doActivateExtension alefragnani.project-manager {"startup":true,"extensionId":{"value":"alefragnani.project-manager","_lower":"alefragnani.project-manager"},"activationEvent":""} [2021-02-23 11:20:39.597] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/alefragnani.project-manager-12.0.1/dist/extension [2021-02-23 11:20:39.642] [exthost] [info] ExtensionService#_doActivateExtension CoenraadS.bracket-pair-colorizer-2 {"startup":true,"extensionId":{"value":"CoenraadS.bracket-pair-colorizer-2","_lower":"coenraads.bracket-pair-colorizer-2"},"activationEvent":""} [2021-02-23 11:20:39.642] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/coenraads.bracket-pair-colorizer-2-0.2.0/out/src/extension [2021-02-23 11:20:39.955] [exthost] [info] ExtensionService#_doActivateExtension Dannark.AndroidLauncher {"startup":true,"extensionId":{"value":"Dannark.AndroidLauncher","_lower":"dannark.androidlauncher"},"activationEvent":""} [2021-02-23 11:20:39.955] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/dannark.androidlauncher-0.0.7/extension.js [2021-02-23 11:20:40.007] [exthost] [info] ExtensionService#_doActivateExtension donjayamanne.githistory {"startup":true,"extensionId":{"value":"donjayamanne.githistory","_lower":"donjayamanne.githistory"},"activationEvent":""} [2021-02-23 11:20:40.007] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/donjayamanne.githistory-0.6.14/dist/src/extension [2021-02-23 11:20:40.140] [exthost] [info] ExtensionService#_doActivateExtension Equinusocio.vsc-material-theme {"startup":true,"extensionId":{"value":"Equinusocio.vsc-material-theme","_lower":"equinusocio.vsc-material-theme"},"activationEvent":""} [2021-02-23 11:20:40.140] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/equinusocio.vsc-material-theme-33.1.2/build/material.theme.config [2021-02-23 11:20:40.282] [exthost] [info] ExtensionService#_doActivateExtension equinusocio.vsc-material-theme-icons {"startup":true,"extensionId":{"value":"equinusocio.vsc-material-theme-icons","_lower":"equinusocio.vsc-material-theme-icons"},"activationEvent":""} [2021-02-23 11:20:40.282] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/equinusocio.vsc-material-theme-icons-1.2.2/out/src/extension [2021-02-23 11:20:40.432] [exthost] [info] ExtensionService#_doActivateExtension iliashaddad.habitscript {"startup":true,"extensionId":{"value":"iliashaddad.habitscript","_lower":"iliashaddad.habitscript"},"activationEvent":""} [2021-02-23 11:20:40.432] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/iliashaddad.habitscript-1.1.9/extension.js [2021-02-23 11:20:40.547] [exthost] [info] ExtensionService#_doActivateExtension jeroen-meijer.pubspec-assist {"startup":true,"extensionId":{"value":"jeroen-meijer.pubspec-assist","_lower":"jeroen-meijer.pubspec-assist"},"activationEvent":""} [2021-02-23 11:20:40.547] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/jeroen-meijer.pubspec-assist-2.2.1/out/extension [2021-02-23 11:20:41.093] [exthost] [info] ExtensionService#_doActivateExtension vscode-icons-team.vscode-icons {"startup":true,"extensionId":{"value":"vscode-icons-team.vscode-icons","_lower":"vscode-icons-team.vscode-icons"},"activationEvent":""} [2021-02-23 11:20:41.093] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/vscode-icons-team.vscode-icons-11.1.0/dist/src/vscode-icons.bundle.js [2021-02-23 11:20:42.057] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode.js-debug {"startup":false,"extensionId":{"value":"ms-vscode.js-debug","_lower":"ms-vscode.js-debug"},"activationEvent":"onCommand:extension.js-debug.clearAutoAttachVariables"} [2021-02-23 11:20:42.057] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/ms-vscode.js-debug/src/extension.js [2021-02-23 11:20:42.145] [exthost] [info] ExtensionService#_doActivateExtension vscode.github {"startup":false,"extensionId":{"value":"vscode.github","_lower":"vscode.github"},"activationEvent":"*"} [2021-02-23 11:20:42.145] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/github/dist/extension.js [2021-02-23 11:20:42.153] [exthost] [info] ExtensionService#_doActivateExtension ms-python.python {"startup":false,"extensionId":{"value":"ms-python.python","_lower":"ms-python.python"},"activationEvent":"onLanguage:python"} [2021-02-23 11:20:42.153] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/ms-python.python-2021.2.582707922/out/client/extension [2021-02-23 11:20:42.992] [exthost] [info] ExtensionService#_doActivateExtension vscode.github-authentication {"startup":false,"extensionId":{"value":"vscode.github-authentication","_lower":"vscode.github-authentication"},"activationEvent":"onAuthenticationRequest:github"} [2021-02-23 11:20:42.992] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/github-authentication/dist/extension.js [2021-02-23 11:20:48.857] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":false,"extensionId":{"value":"vscode.emmet","_lower":"vscode.emmet"},"activationEvent":"onStartupFinished"} [2021-02-23 11:20:48.857] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/emmet/dist/node/emmetNodeMain [2021-02-23 11:20:48.870] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {"startup":false,"extensionId":{"value":"vscode.merge-conflict","_lower":"vscode.merge-conflict"},"activationEvent":"onStartupFinished"} [2021-02-23 11:20:48.870] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/merge-conflict/dist/mergeConflictMain [2021-02-23 11:20:48.880] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode-remote.remote-wsl-recommender {"startup":false,"extensionId":{"value":"ms-vscode-remote.remote-wsl-recommender","_lower":"ms-vscode-remote.remote-wsl-recommender"},"activationEvent":"onStartupFinished"} [2021-02-23 11:20:48.880] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/ms-vscode-remote.remote-wsl-recommender/dist/extension.js [2021-02-23 11:20:48.894] [exthost] [info] ExtensionService#_doActivateExtension vscode.testing-editor-contributions {"startup":false,"extensionId":{"value":"vscode.testing-editor-contributions","_lower":"vscode.testing-editor-contributions"},"activationEvent":"onStartupFinished"} [2021-02-23 11:20:48.894] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/testing-editor-contributions/dist/extension.js [2021-02-23 11:20:48.904] [exthost] [info] ExtensionService#_doActivateExtension eamodio.gitlens {"startup":false,"extensionId":{"value":"eamodio.gitlens","_lower":"eamodio.gitlens"},"activationEvent":"onStartupFinished"} [2021-02-23 11:20:48.904] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/eamodio.gitlens-11.2.1/dist/gitlens [2021-02-23 11:20:49.054] [exthost] [info] ExtensionService#_doActivateExtension esbenp.prettier-vscode {"startup":false,"extensionId":{"value":"esbenp.prettier-vscode","_lower":"esbenp.prettier-vscode"},"activationEvent":"onStartupFinished"} [2021-02-23 11:20:49.054] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/.vscode/extensions/esbenp.prettier-vscode-5.9.2/dist/extension [2021-02-23 11:20:49.909] [exthost] [error] [ms-python.python] provider FAILED [2021-02-23 11:20:49.909] [exthost] [error] Canceled: Canceled at E.makeCancelError (c:\Users\masri.vscode\extensions\ms-python.python-2021.2.582707922\out\client\extension.js:9:175214) at E.handleFailedRequest (c:\Users\masri.vscode\extensions\ms-python.python-2021.2.582707922\out\client\extension.js:9:175065) at c:\Users\masri.vscode\extensions\ms-python.python-2021.2.582707922\out\client\extension.js:9:140219 [2021-02-23 11:20:55.922] [exthost] [info] eager extensions activated [2021-02-23 11:21:24.148] [exthost] [error] [ms-python.python] provider FAILED [2021-02-23 11:21:24.148] [exthost] [error] Canceled: Canceled at E.makeCancelError (c:\Users\masri.vscode\extensions\ms-python.python-2021.2.582707922\out\client\extension.js:9:175214) at E.handleFailedRequest (c:\Users\masri.vscode\extensions\ms-python.python-2021.2.582707922\out\client\extension.js:9:175065) at c:\Users\masri.vscode\extensions\ms-python.python-2021.2.582707922\out\client\extension.js:9:135573 [2021-02-23 11:21:26.697] [exthost] [error] [ms-python.python] provider FAILED [2021-02-23 11:21:26.697] [exthost] [error] Canceled: Canceled at E.makeCancelError (c:\Users\masri.vscode\extensions\ms-python.python-2021.2.582707922\out\client\extension.js:9:175214) at E.handleFailedRequest (c:\Users\masri.vscode\extensions\ms-python.python-2021.2.582707922\out\client\extension.js:9:175065) at c:\Users\masri.vscode\extensions\ms-python.python-2021.2.582707922\out\client\extension.js:9:135573 [2021-02-23 11:22:39.009] [exthost] [error] [ms-python.python] provider FAILED [2021-02-23 11:22:39.010] [exthost] [error] Canceled: Canceled at E.makeCancelError (c:\Users\masri.vscode\extensions\ms-python.python-2021.2.582707922\out\client\extension.js:9:175214) at E.handleFailedRequest (c:\Users\masri.vscode\extensions\ms-python.python-2021.2.582707922\out\client\extension.js:9:175065) at c:\Users\masri.vscode\extensions\ms-python.python-2021.2.582707922\out\client\extension.js:9:135573 [2021-02-23 11:25:06.923] [exthost] [info] ExtensionService#_doActivateExtension vscode.configuration-editing {"startup":false,"extensionId":{"value":"vscode.configuration-editing","_lower":"vscode.configuration-editing"},"activationEvent":"onLanguage:json"} [2021-02-23 11:25:06.924] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/configuration-editing/dist/configurationEditingMain [2021-02-23 11:25:06.931] [exthost] [info] ExtensionService#_doActivateExtension vscode.extension-editing {"startup":false,"extensionId":{"value":"vscode.extension-editing","_lower":"vscode.extension-editing"},"activationEvent":"onLanguage:json"} [2021-02-23 11:25:06.932] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/extension-editing/dist/extensionEditingMain [2021-02-23 11:25:06.947] [exthost] [info] ExtensionService#_doActivateExtension vscode.json-language-features {"startup":false,"extensionId":{"value":"vscode.json-language-features","_lower":"vscode.json-language-features"},"activationEvent":"onLanguage:json"} [2021-02-23 11:25:06.947] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/json-language-features/client/dist/node/jsonClientMain [2021-02-23 11:25:06.972] [exthost] [info] ExtensionService#_doActivateExtension vscode.npm {"startup":false,"extensionId":{"value":"vscode.npm","_lower":"vscode.npm"},"activationEvent":"onLanguage:json"} [2021-02-23 11:25:06.972] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/masri/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/npm/dist/npmMain

Whinarn commented 3 years ago

Closing this issue since this project is being archived. Thank you for using it and reporting this issue, and sorry for not being able to continue supporting it.