Skip to content
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

venv automatically activates in another directory #23914

Closed
elliottmejia opened this issue Aug 5, 2024 · 2 comments
Closed

venv automatically activates in another directory #23914

elliottmejia opened this issue Aug 5, 2024 · 2 comments
Assignees
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@elliottmejia
Copy link

Type: Bug

Behaviour

venv automatically activates in another directory
XXX

Steps to reproduce:

create a venv, activate it, close vsc. create a new project in a different directory. create a python file.

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Extension version: 2024.6.0
VS Code version: Code 1.91.1 (Universal) (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:07:54.982Z)
OS version: Darwin arm64 23.3.0
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.12.1
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

Installed Extensions
Extension Name Extension Id Version
Astro astro-build.astro-vscode 2.13.1
Audio/Video Probe XueshiQiao.avprobe 0.7.1
Auto Comment Blocks kevinkyang.auto-comment-blocks 1.0.1
Auto Rename Tag formulahendry.auto-rename-tag 0.1.10
Auto Restart TypeScript / ESLint Servers neotan.vscode-auto-restart-typescript-eslint-servers 0.0.5
Better Comments aaron-bond.better-comments 3.0.2
Better Comments Next edwinhuish.better-comments-next 3.2.5
Block Comments SanchitVerma.block-comments 0.0.2
Bootstrap 5 & Font Awesome Snippets HansUXdev.bootstrap5-snippets 1.2.5
C/C++ Extension Pack ms-vscode.cpptools-extension-pack 1.3.0
Calmness Dark Theme azamuddin.calmness-vsc-theme 1.1.1
Change Color Format bbugh.change-color-format 1.2.0
clickup edsol.clickup 1.0.1
CMake twxs.cmake 0.0.17
CodeSnap adpyke.codesnap 1.3.4
Color Highlight naumovs.color-highlight 2.8.0
Color Picker anseki.vscode-color 0.4.5
colorize kamikillerto.vscode-colorize 0.11.1
Community Material Theme Equinusocio.vsc-community-material-theme 1.4.7
Conda Cheatsheet jojoee.conda-cheatsheet 1.2.8
Conda Wingman DJSaunders1997.conda-wingman 1.0.0
CSS Peek pranaygp.vscode-css-peek 4.4.1
css2react gottfired.css2react 1.0.1
CSV to Table phplasma.csv-to-table 1.4.0
Dark++ Theme DryWolf.dark-plus-plus-theme 0.0.9
Debugger for Java vscjava.vscode-java-debug 0.58.0
diff rafaelmaiolla.diff 0.0.1
Diff Folders L13RARY.l13-diff 1.3.8
Django Template Support junstyle.vscode-django-support 1.0.35
Docker ms-azuretools.vscode-docker 1.29.1
DotENV mikestead.dotenv 1.0.1
Doxygen Documentation Generator cschlosser.doxdocgen 1.4.0
DupChecker jianbingfang.dupchecker 0.1.7
EditorConfig for VS Code EditorConfig.EditorConfig 0.16.4
Emmet Keybindings agutierrezr.emmet-keybindings 1.2.1
ES7+ React/Redux/React-Native snippets dsznajder.es7-react-js-snippets 4.4.3
ESLint dbaeumer.vscode-eslint 3.0.10
exports autocomplete capaj.vscode-exports-autocomplete 0.5.4
Extended Html5 Boilerplate rajeshroyal896.extended-html5-boilerplate 0.0.1
Extension Pack for Java vscjava.vscode-java-pack 0.28.0
Fix JSON oliversturm.fix-json 0.1.2
Font Switcher evan-buss.font-switcher 4.1.0
Format HTML in PHP rifi2k.format-html-in-php 1.7.0
GitHub Codespaces GitHub.codespaces 1.17.2
GitHub Copilot GitHub.copilot 1.220.0
GitHub Copilot Chat GitHub.copilot-chat 0.17.1
GitHub Copilot Labs GitHub.copilot-labs 0.17.1121
GitHub Pull Requests GitHub.vscode-pull-request-github 0.92.0
GitHub Theme GitHub.github-vscode-theme 6.3.4
GitLens — Git supercharged eamodio.gitlens 15.2.3
glean wix.glean 5.2.2
GLSL Linter mrjjot.vscode-glsl-linter 1.2.0
glsl-canvas circledev.glsl-canvas 0.2.15
Go golang.go 0.42.0
Go Test Explorer premparihar.gotestexplorer 0.1.13
Golang aldijav.golangwithdidi 0.0.1
Golang Tools neonxp.gotools 0.1.5
Google Fonts lior-chamla.google-fonts 0.0.1
Goto definition alias antfu.goto-alias 0.1.6
GraphQL mquandalle.graphql 0.1.2
GraphQL: Language Feature Support GraphQL.vscode-graphql 0.11.2
GraphQL: Syntax Highlighting GraphQL.vscode-graphql-syntax 1.3.6
Gremlins tracker for Visual Studio Code nhoizey.gremlins 0.26.0
Happy Hipster zadvorny.theme-happy-hipster 2.8.5
HTML Boilerplate sidthesloth.html5-boilerplate 1.1.1
HTML CSS Support ecmel.vscode-html-css 2.0.10
HTML Format mohd-akram.vscode-html-format 0.1.6
HTML Play bianxianyang.htmlplay 0.0.10
html-entities christopherstyles.html-entities 1.1.2
hydrogen for VSCode crtogrm.hydrogen-vscode 0.0.2
iconfont-preview stxr.iconfont-preview 0.0.5
Iconify IntelliSense antfu.iconify 0.9.2
Image preview kisstkondoros.vscode-gutter-preview 0.31.2
IntelliJ Neo Dark hyperdarker.intellij-neo-dark 0.0.5
IntelliPHP - AI Autocomplete for PHP DEVSENSE.intelli-php-vscode 0.12.15062
IntelliSense for CSS class names in HTML Zignd.html-css-class-completion 1.20.0
JavaScript (ES6) code snippets xabikos.JavaScriptSnippets 1.8.0
JavaScript Debugger ms-vscode.js-debug 1.91.0
JavaScript Debugger Companion Extension ms-vscode.js-debug-companion 1.1.2
JavaScript Snippet Pack akamud.vscode-javascript-snippet-pack 0.1.6
Jest Orta.vscode-jest 6.2.5
jquery script code SharifJameel.jqc 0.0.1
JSON Tree View ChaunceyKiwi.json-tree-view 3.6.1
Jupyter ms-toolsai.jupyter 2024.6.0
Jupyter Cell Tags ms-toolsai.vscode-jupyter-cell-tags 0.1.9
Jupyter Keymap ms-toolsai.jupyter-keymap 1.1.2
Jupyter Notebook Renderers ms-toolsai.jupyter-renderers 1.0.19
Jupyter Slide Show ms-toolsai.vscode-jupyter-slideshow 0.1.6
Language Support for Java(TM) by Red Hat redhat.java 1.30.0
Liquid Languages Support neilding.language-liquid 0.1.1
Live Sass Compiler glenn2223.live-sass 6.1.2
Live Server ritwickdey.LiveServer 5.7.9
Live Share ms-vsliveshare.vsliveshare 1.0.5936
Lorem ipsum Tyriar.lorem-ipsum 1.3.1
LottieFiles for VSCode lottiefiles.vscode-lottie 1.0.5
Lua sumneko.lua 3.10.1
Lua yinfei.luahelper 0.2.29
Luna Paint — Image Editor Tyriar.luna-paint 0.16.0
Markdown Preview Enhanced shd101wyy.markdown-preview-enhanced 0.8.13
markdownlint DavidAnson.vscode-markdownlint 0.55.0
Material Theme Equinusocio.vsc-material-theme 34.4.0
Material Theme Icons equinusocio.vsc-material-theme-icons 3.6.1
Maven for Java vscjava.vscode-maven 0.44.0
MDC - Markdown Components Nuxt.mdc 0.2.0
MDX unifiedjs.vscode-mdx 1.8.9
Minify HookyQR.minify 0.4.3
Nextjs snippets PulkitGangwar.nextjs-snippets 1.0.2
Node Essentials afractal.node-essentials 1.1.0
Nomo Dark Icon Theme be5invis.vscode-icontheme-nomo-dark 1.3.6
Notes dionmunk.vscode-notes 1.2.1
npm eg2.vscode-npm-script 0.3.29
Nuxt Extension Pack Nuxtr.nuxt-vscode-extentions 0.0.6
Nuxtr Nuxtr.nuxtr-vscode 0.2.16
Orange Haze xxgicoxx.orange-haze 1.0.0
p5.vscode samplavigne.p5-vscode 1.2.15
Partial Diff ryu1kn.partial-diff 1.4.3
Paste JSON as Code quicktype.quicktype 23.0.170
Path Intellisense christian-kohler.path-intellisense 2.9.0
PHP DEVSENSE.phptools-vscode 1.49.15728
PHP Debug xdebug.php-debug 1.35.0
PHP Profiler DEVSENSE.profiler-php-vscode 1.49.15728
Prettier - Code formatter esbenp.prettier-vscode 10.4.0
Pretty TypeScript Errors YoavBls.pretty-ts-errors 0.6.0
Print pdconsec.vscode-print 0.12.16
Prisma Prisma.prisma 5.17.0
Processing Language Tobiah.language-pde 1.4.6
Project Manager for Java vscjava.vscode-java-dependency 0.24.0
Pylance ms-python.vscode-pylance 2024.5.1
Pylint ms-python.pylint 2023.10.1
PYQT Integration zhoufeng.pyqt-integration 0.2.0
Python ms-python.python 2024.6.0
Python Debugger ms-python.debugpy 2024.8.0
Qt for Python seanwu.vscode-qt-for-python 7.6.0
React Native Tools msjsdiag.vscode-react-native 1.13.0
React Pure To Class angryobject.react-pure-to-class-vscode 1.1.8
Red Hat Dependency Analytics redhat.fabric8-analytics 0.9.5
Remote Repository Viewer ryu1kn.remote-repo-viewer 0.4.0
Ruby Debug castwide.ruby-debug 0.3.5
Run Terminal Command adrianwilczynski.terminal-commands 1.0.5
Shader languages support for VS Code slevesque.shader 1.1.5
Shades of Purple ahmadawais.shades-of-purple 7.3.2
Shell Syntax bmalehorn.shell-syntax 1.0.5
shell-format foxundermoon.shell-format 7.2.5
Shopify Liquid Shopify.theme-check-vscode 2.4.2
Shopify Liquid Template Snippets killalau.vscode-liquid-snippets 2.0.3
Simple React Snippets burkeholland.simple-react-snippets 1.2.8
Slack sozercan.slack 0.0.14
Slint Slint.slint 1.7.1
Smart Quotes LukeParkinson.smart-quotes 0.0.2
Spring Initializr Java Support vscjava.vscode-spring-initializr 0.11.2
SQL Bindings ms-mssql.sql-bindings-vscode 0.4.0
SQL Server (mssql) ms-mssql.mssql 1.22.1
SQLite alexcvzz.vscode-sqlite 0.14.1
SQLite3 Editor yy0931.vscode-sqlite3-editor 1.0.186
SQLTools mtxr.sqltools 0.28.3
Storybook helper riccardoforina.storybook-helper 1.2.0
Super One Dark Theme seansassenrath.vscode-theme-superonedark 0.0.15
Svelte for VS Code svelte.svelte-vscode 108.4.1
SVG jock.svg 1.5.4
SVG Editor henoc.svgeditor 2.9.0
Svg Preview SimonSiefke.svg-preview 2.8.3
Table Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-table 1.0.9
Tailwind CSS IntelliSense bradlc.vscode-tailwindcss 0.12.5
Tailwind Docs austenc.tailwind-docs 2.1.0
Tailwind Fold stivo.tailwind-fold 0.2.0
Tailwind Shades bourhaouta.tailwindshades 0.0.5
Test Runner for Java vscjava.vscode-java-test 0.41.1
Text Marker (Highlighter) ryu1kn.text-marker 1.11.0
To Do Tasks sandy081.todotasks 0.5.0
TODO Highlight wayou.vscode-todo-highlight 1.0.5
Toggle Excluded Files amodio.toggle-excluded-files 2.0.0
Tree CTC.vscode-tree-extension 0.0.12
Vetur octref.vetur 0.37.3
Vim vscodevim.vim 1.27.3
Vim Theme HarryHopkinson.vim-theme 1.1.7
VS Color Picker lihui.vs-color-picker 1.0.0
vscode-icons vscode-icons-team.vscode-icons 12.7.0
vscode-pdf tomoki1207.pdf 1.2.2
vscode-proto3 zxh404.vscode-proto3 0.5.5
vscode-zonefile Compilenix.vscode-zonefile 0.0.4
Vue - Official Vue.volar 2.0.28
Web3 Dev Pack 0xModene.web3-dev 1.2.0
WSL ms-vscode-remote.remote-wsl 0.88.2
YAML redhat.vscode-yaml 1.15.0
zmito light zmito.zmito-light 0.0.3
System Info
Item Value
CPUs Apple M1 (8 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 2, 2, 3
Memory (System) 16.00GB (0.42GB free)
Process Argv --crash-reporter-id 7a8d197f-dd63-4083-9e0d-e6fc84ab67d5
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
jg8ic977:31013176
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
impr_priority:31102340
nativerepl1:31104043
refactort:31108082
ccplc:31103425
pythonrstrctxtcf:31103194
1iic9185:31097392
wkspc-onlycs-c:31106320
wkspc-ranged-t:31107835

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Aug 5, 2024
@karthiknadig
Copy link
Member

@elliottmejia Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Aug 6, 2024
@karthiknadig karthiknadig self-assigned this Aug 6, 2024
Copy link

github-actions bot commented Sep 6, 2024

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

Happy Coding!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants