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

Multi-root workspace: Python resolves imports only from venv of first root-folder #23448

Open
niun opened this issue May 17, 2024 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team

Comments

@niun
Copy link

niun commented May 17, 2024

Type: Bug

Behaviour

In a multi-root workspace the Python virtual environment configured for the first folder dictates the virtual environment for all other folders used for import resolving even if different virtual environments are configured and displayed as active.
Looks similar to #14287 but this is marked as fixed since over a year.

Steps to reproduce:

Using Windows 10 with multiple Python installs, none of which is in the PATH, but py is installed. Git Bash as shell.

  1. Create root folders and virtual environments
    $ mkdir -p workspace_test/root_a
    $ mkdir -p workspace_test/root_b
    $ py -3.12 -m venv workspace_test/venv_a
    $ py -3.9 -m venv workspace_test/venv_b
    $ . workspace_test/venv_b/Scripts/activate
    (venv_b) $ py -m pip install --upgrade pip setuptools wheel
    [...]
    Successfully installed pip-24.0 setuptools-69.5.1 wheel-0.43.0
  2. Install dependency for root_b in venv_b while venv_a is kept clean.
    (venv_b) $ py -m pip install pyserial
  3. Create VSCode workspace
    • Open workspace_test/root_a folder in VSCode
    • Add Folder workspace_test/root_b to workspace
    • Save workspace as workspace_test/root_a.code-workspace
      {
          "folders": [
          {
              "path": "root_a"
          },
          {
              "path": "root_b"
          }
          ],
          "settings": {}
      }
  4. Select Python interpreters
    • Create and open empty dummy_a.py in workspace_test/root_a
    • Click on the Python version in the status bar, select root_a, "Enter interpreter path"
    • Enter C:/path/to/workspace_test/venv_a/Scripts/python.exe
    • Create and open my_module_b.py in workspace_test/root_b
    • Click on the Python version in the status bar, select root_b, "Enter interpreter path"
    • Enter C:/path/to/workspace_test/venv_b/Scripts/python.exe
  5. Verify the Interpreters are configured
    • Focus editor with root_a/dummy_a.py => status bar shows "Python 3.12.3 ('venv_a':venv)"
    • Focus editor with root_b/my_module_b.py => status bar shows "Python 3.9.13 ('venv_b':venv)"
  6. Put code into root_b/my_module_b.py
    from serial.tools import list_ports
    for p in list_ports.comports():
        print(p.device)
  7. Verify the code is running in the configured venv
    • open internal terminal, prompt is (venv_b) ~/workspace_test/root_b $
      (venv_b) ~/workspace_test/root_b $ py my_module_b.py
      COM1
      COM2
      ...
    • Open another internal terminal, VSCode asks for working directory, select root_a.
    • Prompt is (venv_a) ~/workspace_test/root_a $
      (venv_a) ~/workspace_test/root_a $ py ../root_b/my_module_b.py
      Traceback (most recent call last):
        File "C:\Users\rosin\workspace_test\root_b\my_module_b.py", line 1, in <module>
          from serial.tools import list_ports
      ModuleNotFoundError: No module named 'serial'
      (as expected)
  8. Unexpected is that the import from serial.tools import list_ports is highlighted as with problems, tool tip shows

    Import "serial.tools" could not be resolved from source Pylance(reportMissingModuleSource)
    Import "serial.tools.list_ports" could not be resolved from source Pylance(reportMissingModuleSource)

    • when importing local dependencies installed as editable module in the venv, it shows the following problem:

      Import "my_b_dependency" could not be resolved Pylance(reportMissingImports)

  9. When selecting venv_b also for the root_a folder, the imports in root_b/my_module_b.py are resolved fine. Selecting a Python interpreter on "workspace level" seems to have no effect.

Diagnostic data

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

2024-05-17 17:58:27.598 [info] Experiment 'pythonCreateEnvOnPipInstall' is active
2024-05-17 17:58:27.598 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-05-17 17:58:27.598 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-05-17 17:58:27.598 [info] Experiment 'pythonTestAdapter' is active
2024-05-17 17:58:27.598 [info] Default formatter is set to ms-python.autopep8 for workspace c:\Users\rosin\workspace_test\root_a
2024-05-17 17:58:27.598 [info] Default formatter is set to ms-python.autopep8 for workspace c:\Users\rosin\workspace_test\root_b
2024-05-17 17:58:27.598 [info] Python interpreter path: ~\workspace_test\venv_a\Scripts\python.exe
2024-05-17 17:58:27.774 [info] > pyenv which python
2024-05-17 17:58:27.774 [info] cwd: ~\workspace_test\root_b
2024-05-17 17:58:27.906 [info] > . ~/workspace_test/venv_b/Scripts/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-17 17:58:27.906 [info] shell: bash
2024-05-17 17:58:28.065 [info] > C:\Python\Python311\python.exe ~/.vscode-insiders/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-17 17:58:28.065 [info] shell: bash
2024-05-17 17:58:28.149 [info] Setting environment variable EXEPATH in collection to C:\Program Files\Git\bin {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 17:58:28.149 [info] Setting environment variable HOME in collection to C:\Users\rosin {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 17:58:28.149 [info] Setting environment variable MSYS in collection to enable_pcon {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 17:58:28.149 [info] Setting environment variable MSYSTEM in collection to MINGW64 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 17:58:28.149 [info] Prepending environment variable PATH in collection to c:\Users\rosin\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\deactivate\bash;C;C:\Users\rosin\workspace_test\venv_b\Scripts;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\rosin\bin;C:\program files\graphicsmagick-1.3.40-q16;C:\Program Files\Eclipse Adoptium\jre-19.0.1.10-hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\Tesseract-OCR;C:\Program Files\nodejs;C:\ProgramData\chocolatey\bin;C:\Program Files\Pandoc;C:\Program Files\CMake\bin;C:\Program Files\Neovide;C:\Program Files\PowerShell\7;C:\Program Files\Git\cmd;C:\Users\rosin\scoop\apps\gcc\current\bin;C:\Users\rosin\scoop\shims;C:\Users\rosin\.cargo\bin;C:\Users\rosin\AppData\Local\Microsoft\WindowsApps;C:\Users\rosin\AppData\Local\Programs\qrencode;C:\Users\rosin\AppData\Roaming\Python\Python312\Scripts;C:\Users\rosin\AppData\Roaming\npm;C:\users\rosin\.local\bin;C:\Users\rosin\AppData\Local\Programs\ninja;C:\Program Files\SMPlayer\mplayer;C:\Program Files\SMPlayer\mpv;C:\Program Files\VideoLAN\VLC;C:\Users\rosin\AppData\Local\Microsoft\WinGet\Links;C:\Users\rosin\AppData\Local\Programs\ExifTool;C:\Program Files\Paperwork;C:\Program Files\Neovim\bin;C:\Users\rosin\AppData\Local\Programs\MiKTeX\miktex\bin\x64;C:\Users\rosin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\rosin\AppData\Local\Programs\Microsoft VS Code Insiders\bin; {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 17:58:28.149 [info] Setting environment variable PLINK_PROTOCOL in collection to ssh {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 17:58:28.149 [info] Prepending environment variable PS1 in collection with (venv_b)  {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-05-17 17:58:28.149 [info] Setting environment variable PWD in collection to C:/Users/rosin/AppData/Local/Programs/Microsoft VS Code Insiders {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 17:58:28.149 [info] Setting environment variable PYTHONIOENCODING in collection to utf-8 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 17:58:28.149 [info] Setting environment variable PYTHONUNBUFFERED in collection to 1 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 17:58:28.149 [info] Setting environment variable TERM in collection to xterm-256color {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 17:58:28.149 [info] Setting environment variable VIRTUAL_ENV in collection to C:\Users\rosin\workspace_test\venv_b {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 17:58:28.150 [info] Send text to terminal: C:/Python/Python311/python.exe c:\Users\rosin\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\printEnvVariablesToFile.py c:\Users\rosin\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\deactivate\bash\envVars.txt
2024-05-17 17:58:28.873 [info] Starting Pylance language server.
2024-05-17 17:58:58.164 [error] Failed to initialize deactivate script C:\Program Files\Git\bin\bash.exe [Error: "c:\Users\rosin\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\deactivate\bash\envVars.txt" file not created
	at Timeout.<anonymous> (c:\Users\rosin\.vscode-insiders\extensions\ms-python.python-2024.6.0\out\client\extension.js:2:272632)
	at listOnTimeout (node:internal/timers:573:17)
	at process.processTimers (node:internal/timers:514:7)]
2024-05-17 19:00:42.411 [info] Python interpreter path: ~\workspace_test\venv_b\Scripts\python.exe
2024-05-17 19:00:43.403 [info] Python interpreter path: ~\workspace_test\venv_a\Scripts\python.exe
2024-05-17 19:00:43.491 [info] > pyenv which python
2024-05-17 19:00:43.491 [info] cwd: ~\workspace_test\root_a
2024-05-17 19:00:43.557 [info] Starting Pylance language server.
2024-05-17 19:00:43.566 [info] > . ~/workspace_test/venv_a/Scripts/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-17 19:00:43.566 [info] shell: bash
2024-05-17 19:00:43.725 [info] Setting environment variable EXEPATH in collection to C:\Program Files\Git\bin {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 19:00:43.725 [info] Setting environment variable HOME in collection to C:\Users\rosin {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 19:00:43.725 [info] Setting environment variable MSYS in collection to enable_pcon {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 19:00:43.725 [info] Setting environment variable MSYSTEM in collection to MINGW64 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 19:00:43.725 [info] Prepending environment variable PATH in collection to c:\Users\rosin\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\deactivate\bash;C:\Users\rosin\workspace_test\venv_a\Scripts;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\rosin\bin;C:\program files\graphicsmagick-1.3.40-q16;C:\Program Files\Eclipse Adoptium\jre-19.0.1.10-hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\Tesseract-OCR;C:\Program Files\nodejs;C:\ProgramData\chocolatey\bin;C:\Program Files\Pandoc;C:\Program Files\CMake\bin;C:\Program Files\Neovide;C:\Program Files\PowerShell\7;C:\Program Files\Git\cmd;C:\Users\rosin\scoop\apps\gcc\current\bin;C:\Users\rosin\scoop\shims;C:\Users\rosin\.cargo\bin;C:\Users\rosin\AppData\Local\Microsoft\WindowsApps;C:\Users\rosin\AppData\Local\Programs\qrencode;C:\Users\rosin\AppData\Roaming\Python\Python312\Scripts;C:\Users\rosin\AppData\Roaming\npm;C:\users\rosin\.local\bin;C:\Users\rosin\AppData\Local\Programs\ninja;C:\Program Files\SMPlayer\mplayer;C:\Program Files\SMPlayer\mpv;C:\Program Files\VideoLAN\VLC;C:\Users\rosin\AppData\Local\Microsoft\WinGet\Links;C:\Users\rosin\AppData\Local\Programs\ExifTool;C:\Program Files\Paperwork;C:\Program Files\Neovim\bin;C:\Users\rosin\AppData\Local\Programs\MiKTeX\miktex\bin\x64;C:\Users\rosin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\rosin\AppData\Local\Programs\Microsoft VS Code Insiders\bin; {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 19:00:43.725 [info] Setting environment variable PLINK_PROTOCOL in collection to ssh {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 19:00:43.725 [info] Prepending environment variable PS1 in collection with (venv_a)  {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-05-17 19:00:43.725 [info] Setting environment variable PWD in collection to C:/Users/rosin/AppData/Local/Programs/Microsoft VS Code Insiders {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 19:00:43.725 [info] Setting environment variable PYTHONIOENCODING in collection to utf-8 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 19:00:43.725 [info] Setting environment variable PYTHONUNBUFFERED in collection to 1 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 19:00:43.725 [info] Setting environment variable TERM in collection to xterm-256color {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 19:00:43.725 [info] Setting environment variable VIRTUAL_ENV in collection to C:/Users/rosin/workspace_test/venv_a {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 19:00:43.725 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to (venv_a)  {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-17 19:00:43.725 [error] Failed to initialize deactivate script C:\Program Files\Git\bin\bash.exe [Error: "c:\Users\rosin\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\deactivate\bash\envVars.txt" file not created
	at Timeout.<anonymous> (c:\Users\rosin\.vscode-insiders\extensions\ms-python.python-2024.6.0\out\client\extension.js:2:272632)
	at listOnTimeout (node:internal/timers:573:17)
	at process.processTimers (node:internal/timers:514:7)]
2024-05-17 19:01:33.506 [info] Python interpreter path: ~\workspace_test\venv_b\Scripts\python.exe
2024-05-17 19:01:33.809 [info] Discover tests for workspace name: root_b - uri: c:\Users\rosin\workspace_test\root_b\.vscode\settings.json
2024-05-17 19:01:53.376 [info] > conda info --json
2024-05-17 19:01:53.410 [info] > hatch env show --json
2024-05-17 19:01:53.411 [info] cwd: ~\workspace_test\root_a
2024-05-17 19:01:53.411 [info] > hatch env show --json
2024-05-17 19:01:53.411 [info] cwd: ~\workspace_test\root_b
2024-05-17 19:01:53.556 [info] > C:\Python\Python312\python.exe -I ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\get_output_via_markers.py ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\interpreterInfo.py
2024-05-17 19:01:53.583 [info] > ~\.virtualenvs\ac3com\Scripts\python.exe -I ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\get_output_via_markers.py ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\interpreterInfo.py
2024-05-17 19:01:53.899 [info] > ~\.virtualenvs\ac3_build\Scripts\python.exe -I ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\get_output_via_markers.py ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\interpreterInfo.py
2024-05-17 19:01:54.020 [info] > ~\.virtualenvs\ac3_dev\Scripts\python.exe -I ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\get_output_via_markers.py ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\interpreterInfo.py
2024-05-17 19:01:54.177 [info] > ~\.virtualenvs\serctrl\Scripts\python.exe -I ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\get_output_via_markers.py ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\interpreterInfo.py
2024-05-17 19:01:54.598 [info] > C:\Python\Python311\python.exe -I ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\get_output_via_markers.py ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\interpreterInfo.py
2024-05-17 19:01:54.619 [info] > C:\Python\Python311-32\python.exe -I ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\get_output_via_markers.py ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\interpreterInfo.py
2024-05-17 19:01:54.764 [info] > C:\Python\Python39\python.exe -I ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\get_output_via_markers.py ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\interpreterInfo.py
2024-05-17 19:01:54.795 [info] > C:\Python\Python39-32\python.exe -I ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\get_output_via_markers.py ~\.vscode-insiders\extensions\ms-python.python-2024.6.0\python_files\interpreterInfo.py
2024-05-17 19:02:26.980 [info] Python interpreter path: ~\workspace_test\venv_a\Scripts\python.exe
2024-05-17 19:02:31.732 [info] Python interpreter path: ~\workspace_test\venv_b\Scripts\python.exe
2024-05-17 19:02:34.874 [info] Python interpreter path: ~\workspace_test\venv_a\Scripts\python.exe
2024-05-17 19:02:38.305 [info] Python interpreter path: ~\workspace_test\venv_b\Scripts\python.exe
2024-05-17 19:03:14.835 [info] Python interpreter path: ~\workspace_test\venv_a\Scripts\python.exe
2024-05-17 19:14:30.095 [info] Python interpreter path: ~\workspace_test\venv_b\Scripts\python.exe
2024-05-17 19:18:25.104 [info] Python interpreter path: ~\workspace_test\venv_a\Scripts\python.exe
2024-05-17 19:18:26.876 [info] Python interpreter path: ~\workspace_test\venv_b\Scripts\python.exe
2024-05-17 19:19:26.209 [info] Python interpreter path: ~\workspace_test\venv_a\Scripts\python.exe
2024-05-17 19:53:07.990 [info] Python interpreter path: ~\workspace_test\venv_b\Scripts\python.exe
2024-05-17 19:58:37.360 [info] Python interpreter path: ~\workspace_test\venv_a\Scripts\python.exe
2024-05-17 20:05:41.541 [info] Python interpreter path: ~\workspace_test\venv_b\Scripts\python.exe
2024-05-17 20:13:02.199 [info] Python interpreter path: ~\workspace_test\venv_a\Scripts\python.exe
2024-05-17 20:13:07.674 [info] Python interpreter path: ~\workspace_test\venv_b\Scripts\python.exe
2024-05-17 20:14:58.430 [info] Python interpreter path: ~\workspace_test\venv_a\Scripts\python.exe
2024-05-17 20:15:04.730 [info] Python interpreter path: ~\workspace_test\venv_b\Scripts\python.exe
2024-05-17 20:15:34.903 [info] Python interpreter path: ~\workspace_test\venv_a\Scripts\python.exe

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

2024-05-17 17:58:28.408 [info] (Client) Pylance async client (2024.5.1) started with python extension (2024.6.0)
2024-05-17 17:58:28.865 [info] [Info  - 5:58:28 PM] (24804) Pylance language server 2024.5.1 (pyright version 1.1.360, commit 4bc8428d) starting
2024-05-17 17:58:28.865 [info] [Info  - 5:58:28 PM] (24804) Server root directory: file:///c%3A/Users/rosin/.vscode-insiders/extensions/ms-python.vscode-pylance-2024.5.1/dist
2024-05-17 17:58:28.866 [info] [Info  - 5:58:28 PM] (24804) Starting service instance "root_a"
2024-05-17 17:58:28.866 [info] [Info  - 5:58:28 PM] (24804) Starting service instance "root_b"
2024-05-17 17:58:28.867 [info] [Info  - 5:58:28 PM] (24804) Auto-Indent enabled
2024-05-17 17:58:28.867 [info] [Info  - 5:58:28 PM] (24804) Auto format for strings enabled
2024-05-17 17:58:28.893 [info] [Info  - 5:58:28 PM] (24804) Setting pythonPath for service "root_a": "c:\Users\rosin\workspace_test\venv_a\Scripts\python.exe"
2024-05-17 17:58:28.893 [info] [Info  - 5:58:28 PM] (24804) Setting environmentName for service "root_a": "3.12.3 (venv_a venv)"
2024-05-17 17:58:28.970 [info] [Info  - 5:58:28 PM] (24804) Assuming Python version 3.12.3.final.0
2024-05-17 17:58:29.108 [info] [Info  - 5:58:29 PM] (24804) No source files found.
2024-05-17 17:58:29.111 [info] [Info  - 5:58:29 PM] (24804) Setting pythonPath for service "root_b": "c:\Users\rosin\workspace_test\venv_b\Scripts\python.exe"
2024-05-17 17:58:29.112 [info] [Info  - 5:58:29 PM] (24804) Setting environmentName for service "root_b": "3.9.13 (venv_b venv)"
2024-05-17 17:58:29.183 [info] [Info  - 5:58:29 PM] (24804) Assuming Python version 3.9.13.final.0
2024-05-17 17:58:29.280 [info] [Info  - 5:58:29 PM] (24804) No source files found.
2024-05-17 17:58:29.286 [info] [Info  - 5:58:29 PM] (24804) Background analysis(1) root directory: file:///c%3A/Users/rosin/.vscode-insiders/extensions/ms-python.vscode-pylance-2024.5.1/dist
2024-05-17 17:58:29.286 [info] [Info  - 5:58:29 PM] (24804) Background analysis(1) started
2024-05-17 17:58:29.287 [info] [Info  - 5:58:29 PM] (24804) Background analysis(2) root directory: file:///c%3A/Users/rosin/.vscode-insiders/extensions/ms-python.vscode-pylance-2024.5.1/dist
2024-05-17 17:58:29.287 [info] [Info  - 5:58:29 PM] (24804) Background analysis(2) started
2024-05-17 17:58:29.739 [info] [Info  - 5:58:29 PM] (24804) Indexer background runner(3) root directory: file:///c%3A/Users/rosin/.vscode-insiders/extensions/ms-python.vscode-pylance-2024.5.1/dist (index)
2024-05-17 17:58:29.739 [info] [Info  - 5:58:29 PM] (24804) Indexing(3) started
2024-05-17 17:58:30.066 [info] [Info  - 5:58:30 PM] (24804) scanned(3) 13 files over 1 exec env
2024-05-17 17:58:30.158 [info] [Info  - 5:58:30 PM] (24804) indexed(3) 3 files over 1 exec env
2024-05-17 17:58:30.165 [info] [Info  - 5:58:30 PM] (24804) Indexing finished(3).

Extension version: 2024.6.0
VS Code version: Code - Insiders 1.90.0-insider (a48f464a3e01aad384703ec964018299b14bb7cf, 2024-05-17T05:48:43.687Z)
OS version: Windows_NT x64 10.0.19045
Modes:

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

Multiroot scenario, following user settings may not apply:

languageServer: "Pylance"

Installed Extensions
Extension Name Extension Id Version
JavaScript Debugger ms-vscode.js-debug 1.89.0
JavaScript Debugger Companion Extension ms-vscode.js-debug-companion 1.1.2
Pylance ms-python.vscode-pylance 2024.5.1
Python ms-python.python 2024.6.0
Table Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-table 1.0.9
System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i7-1260P (16 x 2496)
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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.72GB (17.61GB free)
Process Argv --crash-reporter-id 849df847-f9e9-4693-80ed-906b1f63789b
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
tftest:31042121
vsc_aacf:30263846
vscod805cf:30301675
vsaa593cf:30376535
py29gd2263:31024238
c4g48928:30535728
962ge761:30841072
pythongtdpath:30726887
welcomedialog:30812478
pythonidxpt:30768918
pythonnoceb:30776497
asynctok:30898717
dsvsc013:30777762
dsvsc014:30777825
dsvsc015:30821418
pythontestfixt:30866404
pythonregdiag2:30926734
pythonmypyd1:30859725
pythoncet0:30859736
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30870582
dsvsc016:30879898
dsvsc017:30880771
dsvsc018:30880772
cppperfnew:30980852
pythonait:30973460
showvideot:31016890
chatpanelt:31014475
9c06g630:31013171
a69g1124:31018687
dvdeprecation:31040973
pythonprt:31036556
dwnewjupyter:31046869
impr_priority:31048137
26j00206:31048877

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label May 17, 2024
@rralesij
Copy link

Thanks for pointing this out. Moved my venv project to first listed project and its working as expected.

@karthiknadig karthiknadig added the bug Issue identified by VS Code Team member as probable bug label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

4 participants