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

Auto-import completions not triggering despite proper indexing #7024

Open
PabloLION opened this issue Mar 8, 2025 · 4 comments
Open

Auto-import completions not triggering despite proper indexing #7024

PabloLION opened this issue Mar 8, 2025 · 4 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@PabloLION
Copy link

PabloLION commented Mar 8, 2025

Environment data

  • Language Server version: 2025.3.100, 2025.3.1, 2024.12.1
  • OS and version: darwin arm64
  • Python version (and distribution if applicable, e.g. Anaconda): 3.13.1, 3.12.8, 3.11.11
  • python.analysis.indexing: true
  • python.analysis.typeCheckingMode: strict

I tried it with poetry and without poetry with a simple module (with __init__.py).
Additionally, I checked 5 combinations of pylance and python, because before the auto-import worked:

pylance python
2025.3.100 3.13.1
2025.3.1 3.13.1
2024.12.1 3.13.1
2024.12.1 3.12.8
2024.12.1 3.11.11

Code Snippet

# trying to auto-import this FooClass in another file
class FooClass:
    def __init__(self):
        print("Foo init")

Repro Steps

  1. Create or open a file with the above code snippet.
  2. With the file open in VS Code, when typing FooClass, the auto-import should trigger.
  3. Trigger completions with partially typed FooClass, (automatically; or manually by default Ctrl+Space, editor.action.triggerSuggest) and observe that auto-import suggestions do not appear, instead the token FooClass appears in the suggestion with no "auto-import".
  4. Note that the “Add Import” code action works, indicating the index is built properly.

Expected behavior

When typing partial of "FooClass", the auto-import should trigger.

Actual behavior

"auto-import" did not trigger
no-auto-import

"add import" code action works
actual

Notes

Logs

2025-03-08 14:14:04.494 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-03-08 14:14:04.494 [info] Experiment 'pythonSurveyNotificationcf' is active
2025-03-08 14:14:04.494 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-03-08 14:14:04.494 [info] Experiment 'pythonTestAdapter' is active
2025-03-08 14:14:04.494 [info] Native locator: Refresh started
2025-03-08 14:14:04.494 [info] Native locator: Refresh started
2025-03-08 14:14:04.494 [info] Native locator: Refresh started
2025-03-08 14:14:04.515 [info] > conda info --json
2025-03-08 14:14:04.520 [info] > ~/.anaconda/bin/conda info --json
2025-03-08 14:14:04.521 [info] > ~/.conda/bin/conda info --json
2025-03-08 14:14:04.521 [info] > ~/.condarc/bin/conda info --json
2025-03-08 14:14:04.526 [info] > /opt/homebrew/anaconda3/bin/conda info --json
2025-03-08 14:14:04.531 [info] Pyenv environment manager found at: /opt/homebrew/bin/pyenv
2025-03-08 14:14:04.539 [info] Poetry environment manager found at: /Users/pablo/Library/Application Support/pypoetry/venv/bin/poetry
2025-03-08 14:14:04.542 [info] Python interpreter path: /opt/homebrew/bin/python3
2025-03-08 14:14:04.579 [info] Conda environment manager found at: /opt/homebrew/anaconda3/bin/conda
2025-03-08 14:14:04.579 [info] Using conda: /opt/homebrew/anaconda3/bin/conda
2025-03-08 14:14:04.629 [info] Native locator: Refresh finished in 747 ms
2025-03-08 14:14:04.631 [info] > /opt/homebrew/bin/pyenv which python
2025-03-08 14:14:04.631 [info] cwd: .
2025-03-08 14:14:14.924 [info] Starting Pylance language server.
2025-03-08 14:14:29.175 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/local_package/imported-from.py
2025-03-08 14:14:29.182 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 14:14:29.185 [info] > /opt/homebrew/bin/python3 -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 14:14:29.185 [info] cwd: .
2025-03-08 14:14:29.207 [error] /opt/homebrew/opt/[email protected]/bin/python3.13: No module named pytest

2025-03-08 14:14:29.210 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 14:14:29.210 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 14:14:29.210 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 14:15:04.036 [info] Native locator: Refresh started
2025-03-08 14:15:04.044 [info] Pyenv environment manager found at: /opt/homebrew/bin/pyenv
2025-03-08 14:15:04.045 [info] Poetry environment manager found at: /Users/pablo/Library/Application Support/pypoetry/venv/bin/poetry
2025-03-08 14:15:04.076 [info] Conda environment manager found at: /opt/homebrew/anaconda3/bin/conda
2025-03-08 14:15:04.076 [info] Conda set to: /opt/homebrew/anaconda3/bin/conda
2025-03-08 14:15:04.216 [info] Native locator: Refresh finished in 180 ms
2025-03-08 14:15:26.919 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/local_package/importing-foo.py
2025-03-08 14:15:26.939 [info] arg: --rootdir already exists in args, not adding.
2025-03-08 14:15:26.939 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 14:15:26.941 [info] > /opt/homebrew/bin/python3 -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 14:15:26.941 [info] cwd: .
2025-03-08 14:15:26.960 [error] /opt/homebrew/opt/[email protected]/bin/python3.13: No module named pytest

2025-03-08 14:15:26.962 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 14:15:26.963 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 14:15:26.963 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 14:16:38.539 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/local_package/importing-foo.py
2025-03-08 14:16:38.543 [info] arg: --rootdir already exists in args, not adding.
2025-03-08 14:16:38.543 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 14:16:38.549 [info] > /opt/homebrew/bin/python3 -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 14:16:38.549 [info] cwd: .
2025-03-08 14:16:38.571 [error] /opt/homebrew/opt/[email protected]/bin/python3.13: No module named pytest

2025-03-08 14:16:38.574 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 14:16:38.574 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 14:16:38.574 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 14:16:59.569 [info] Native locator: Refresh started
2025-03-08 14:16:59.574 [info] Pyenv environment manager found at: /opt/homebrew/bin/pyenv
2025-03-08 14:16:59.575 [info] Poetry environment manager found at: /Users/pablo/Library/Application Support/pypoetry/venv/bin/poetry
2025-03-08 14:16:59.601 [info] Conda environment manager found at: /opt/homebrew/anaconda3/bin/conda
2025-03-08 14:16:59.601 [info] Conda set to: /opt/homebrew/anaconda3/bin/conda
2025-03-08 14:16:59.747 [info] Native locator: Refresh finished in 178 ms
2025-03-08 14:17:02.072 [info] Active interpreter [/Users/pablo/LocalDocs/temp/vscode-auto-import-local-package]:  /opt/homebrew/bin/python3.11
2025-03-08 14:17:02.089 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 14:17:02.089 [info] Python interpreter path: /opt/homebrew/bin/python3.11
2025-03-08 14:17:02.120 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 14:17:02.129 [info] > /opt/homebrew/bin/python3.11 -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 14:17:02.129 [info] cwd: .
2025-03-08 14:17:02.168 [error] /opt/homebrew/opt/[email protected]/bin/python3.11: No module named pytest

2025-03-08 14:17:02.172 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 14:17:02.172 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 14:17:02.172 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 14:17:56.053 [info] Native locator: Refresh started
2025-03-08 14:17:56.063 [info] Pyenv environment manager found at: /opt/homebrew/bin/pyenv
2025-03-08 14:17:56.065 [info] Poetry environment manager found at: /Users/pablo/Library/Application Support/pypoetry/venv/bin/poetry
2025-03-08 14:17:56.098 [info] Conda environment manager found at: /opt/homebrew/anaconda3/bin/conda
2025-03-08 14:17:56.098 [info] Conda set to: /opt/homebrew/anaconda3/bin/conda
2025-03-08 14:17:56.251 [info] Native locator: Refresh finished in 199 ms
2025-03-08 14:18:17.037 [info] Active interpreter [/Users/pablo/LocalDocs/temp/vscode-auto-import-local-package]:  /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate
2025-03-08 14:18:17.067 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 14:18:17.068 [info] Python interpreter path: ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python
2025-03-08 14:18:17.096 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 14:18:17.099 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 14:18:17.099 [info] shell: zsh
2025-03-08 14:18:17.102 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 14:18:17.103 [info] shell: bash
2025-03-08 14:18:17.127 [info] > ~/.pyenv/versions/3.9.10/bin/python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 14:18:17.127 [info] shell: zsh
2025-03-08 14:18:17.128 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 14:18:17.128 [info] cwd: .
2025-03-08 14:18:17.147 [error] /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python: No module named pytest

2025-03-08 14:18:17.149 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 14:18:17.150 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 14:18:17.150 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 14:18:17.199 [info] Prepending environment variable PATH in collection with /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh:/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 14:18:17.199 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 14:18:17.199 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 14:18:17.199 [info] Prepending environment variable PS1 in collection with local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2025-03-08 14:18:17.199 [info] Send text to terminal: /Library/Frameworks/Python.framework/Versions/2.7/bin/python3 /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariablesToFile.py /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh/envVars.txt
2025-03-08 14:19:27.321 [info] Running installed packages checker:  {
  id: '/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python',
  sysPrefix: '/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11',
  envType: 'Venv',
  envName: 'local-package-MlK9G6j3-py3.11',
  envPath: '/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python',
  path: '/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python',
  architecture: 3,
  sysVersion: '',
  version: {
    raw: '3.11.11',
    major: 3,
    minor: 11,
    patch: 11,
    build: [],
    prerelease: []
  },
  displayName: "Python 3.11.11 ('local-package-MlK9G6j3-py3.11')",
  detailedDisplayName: "Python 3.11.11 ('local-package-MlK9G6j3-py3.11')",
  type: 'Virtual'
} /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/installed_check.py /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/pyproject.toml
2025-03-08 14:19:27.321 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/installed_check.py ./local-package/pyproject.toml
2025-03-08 14:57:54.279 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/local_package/foo.py
2025-03-08 14:57:54.286 [info] arg: --rootdir already exists in args, not adding.
2025-03-08 14:57:54.286 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 14:57:54.290 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 14:57:54.290 [info] shell: bash
2025-03-08 14:57:54.328 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 14:57:54.328 [info] cwd: .
2025-03-08 14:57:54.346 [error] /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python: No module named pytest

2025-03-08 14:57:54.349 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 14:57:54.349 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 14:57:54.349 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 14:58:03.502 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/local_package/foo.py
2025-03-08 14:58:03.505 [info] arg: --rootdir already exists in args, not adding.
2025-03-08 14:58:03.505 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 14:58:03.506 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 14:58:03.506 [info] cwd: .
2025-03-08 14:58:03.524 [error] /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python: No module named pytest

2025-03-08 14:58:03.527 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 14:58:03.528 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 14:58:03.528 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 14:58:21.688 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/local_package/importing-foo.py
2025-03-08 14:58:21.692 [info] arg: --rootdir already exists in args, not adding.
2025-03-08 14:58:21.692 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 14:58:21.695 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 14:58:21.695 [info] cwd: .
2025-03-08 14:58:21.715 [error] /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python: No module named pytest

2025-03-08 14:58:21.718 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 14:58:21.718 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 14:58:21.718 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 14:58:46.757 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/.vscode/settings.json
2025-03-08 14:58:46.762 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 14:58:46.763 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 14:58:46.763 [info] cwd: .
2025-03-08 14:58:46.783 [error] /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python: No module named pytest

2025-03-08 14:58:46.787 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 14:58:46.787 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 14:58:46.787 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 15:10:08.115 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-03-08 15:10:08.115 [info] Experiment 'pythonSurveyNotificationcf' is active
2025-03-08 15:10:08.115 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-03-08 15:10:08.115 [info] Experiment 'pythonTestAdapter' is active
2025-03-08 15:10:08.115 [info] Native locator: Refresh started
2025-03-08 15:10:08.125 [info] Pyenv environment manager found at: /opt/homebrew/bin/pyenv
2025-03-08 15:10:08.125 [info] Poetry environment manager found at: /Users/pablo/Library/Application Support/pypoetry/venv/bin/poetry
2025-03-08 15:10:08.144 [info] Running installed packages checker:  {
  id: '/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python',
  sysPrefix: '/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11',
  envType: 'Venv',
  envName: 'local-package-MlK9G6j3-py3.11',
  envPath: '/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python',
  path: '/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python',
  architecture: 3,
  sysVersion: '',
  version: {
    raw: '3.11.11',
    major: 3,
    minor: 11,
    patch: 11,
    build: [],
    prerelease: []
  },
  displayName: "Python 3.11.11 ('local-package-MlK9G6j3-py3.11')",
  detailedDisplayName: "Python 3.11.11 ('local-package-MlK9G6j3-py3.11')",
  type: 'Virtual'
} /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/installed_check.py /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/pyproject.toml
2025-03-08 15:10:08.144 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/installed_check.py ./local-package/pyproject.toml
2025-03-08 15:10:08.144 [info] Python interpreter path: ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python
2025-03-08 15:10:08.676 [info] > /opt/homebrew/bin/pyenv which python
2025-03-08 15:10:08.677 [info] cwd: .
2025-03-08 15:10:08.722 [info] > conda info --json
2025-03-08 15:10:10.545 [info] > ~/.anaconda/bin/conda info --json
2025-03-08 15:10:10.546 [info] > ~/.conda/bin/conda info --json
2025-03-08 15:10:10.546 [info] > ~/.condarc/bin/conda info --json
2025-03-08 15:10:10.755 [info] > /opt/homebrew/anaconda3/bin/conda info --json
2025-03-08 15:10:11.180 [info] Conda environment manager found at: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:10:11.180 [info] Using conda: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:10:11.328 [info] Native locator: Refresh finished in 3543 ms
2025-03-08 15:10:11.355 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:10:11.355 [info] shell: zsh
2025-03-08 15:10:11.384 [info] > ~/.pyenv/versions/3.9.10/bin/python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:10:11.385 [info] shell: zsh
2025-03-08 15:10:11.426 [info] Prepending environment variable PATH in collection with /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh:/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:10:11.426 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:10:11.426 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:10:11.426 [info] Prepending environment variable PS1 in collection with local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2025-03-08 15:10:11.427 [info] Send text to terminal: /usr/local/bin/python /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariablesToFile.py /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh/envVars.txt
2025-03-08 15:10:16.334 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-03-08 15:10:16.334 [info] Experiment 'pythonSurveyNotificationcf' is active
2025-03-08 15:10:16.334 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-03-08 15:10:16.334 [info] Experiment 'pythonTestAdapter' is active
2025-03-08 15:10:16.334 [info] Native locator: Refresh started
2025-03-08 15:10:16.394 [info] > pyenv which python
2025-03-08 15:10:16.394 [info] cwd: .
2025-03-08 15:10:18.255 [info] > conda info --json
2025-03-08 15:10:18.366 [info] > ~/.anaconda/bin/conda info --json
2025-03-08 15:10:18.367 [info] > ~/.conda/bin/conda info --json
2025-03-08 15:10:18.367 [info] > ~/.condarc/bin/conda info --json
2025-03-08 15:10:18.402 [info] > /opt/homebrew/anaconda3/bin/conda info --json
2025-03-08 15:10:18.820 [info] Pyenv environment manager found at: /opt/homebrew/bin/pyenv
2025-03-08 15:10:18.846 [info] Poetry environment manager found at: /Users/pablo/Library/Application Support/pypoetry/venv/bin/poetry
2025-03-08 15:10:18.862 [info] Running installed packages checker:  {
  id: '/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python',
  sysPrefix: '/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11',
  envType: 'Venv',
  envName: 'local-package-MlK9G6j3-py3.11',
  envPath: '/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python',
  path: '/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python',
  architecture: 3,
  sysVersion: '',
  version: {
    raw: '3.11.11',
    major: 3,
    minor: 11,
    patch: 11,
    build: [],
    prerelease: []
  },
  displayName: "Python 3.11.11 ('local-package-MlK9G6j3-py3.11')",
  detailedDisplayName: "Python 3.11.11 ('local-package-MlK9G6j3-py3.11')",
  type: 'Virtual'
} /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/installed_check.py /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/pyproject.toml
2025-03-08 15:10:18.862 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/installed_check.py ./local-package/pyproject.toml
2025-03-08 15:10:18.862 [info] Python interpreter path: ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python
2025-03-08 15:10:18.990 [info] Conda environment manager found at: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:10:18.990 [info] Using conda: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:10:19.002 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:10:19.003 [info] shell: zsh
2025-03-08 15:10:19.033 [info] > ~/.pyenv/versions/3.9.10/bin/python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:10:19.033 [info] shell: zsh
2025-03-08 15:10:19.056 [info] Prepending environment variable PATH in collection with /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh:/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:10:19.056 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:10:19.056 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:10:19.057 [info] Prepending environment variable PS1 in collection with local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2025-03-08 15:10:19.057 [info] Send text to terminal: /Library/Frameworks/Python.framework/Versions/2.7/bin/python3 /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariablesToFile.py /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh/envVars.txt
2025-03-08 15:10:19.093 [info] Native locator: Refresh finished in 3428 ms
2025-03-08 15:10:29.292 [info] Starting Pylance language server.
2025-03-08 15:15:02.124 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/local_package/foo.py
2025-03-08 15:15:02.133 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 15:15:02.137 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:15:02.137 [info] shell: bash
2025-03-08 15:15:02.169 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 15:15:02.170 [info] cwd: .
2025-03-08 15:15:02.188 [error] /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python: No module named pytest

2025-03-08 15:15:02.192 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 15:15:02.192 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 15:15:02.192 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 15:22:57.455 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/local_package/importing-foo.py
2025-03-08 15:22:57.459 [info] arg: --rootdir already exists in args, not adding.
2025-03-08 15:22:57.459 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 15:22:57.460 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 15:22:57.460 [info] cwd: .
2025-03-08 15:22:57.480 [error] /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python: No module named pytest

2025-03-08 15:22:57.482 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 15:22:57.483 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 15:22:57.483 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 15:23:19.254 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/local_package/importing-foo.py
2025-03-08 15:23:19.259 [info] arg: --rootdir already exists in args, not adding.
2025-03-08 15:23:19.259 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 15:23:19.260 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 15:23:19.260 [info] cwd: .
2025-03-08 15:23:19.282 [error] /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python: No module named pytest

2025-03-08 15:23:19.285 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 15:23:19.285 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 15:23:19.285 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 15:23:32.414 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-03-08 15:23:32.414 [info] Experiment 'pythonSurveyNotificationcf' is active
2025-03-08 15:23:32.414 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-03-08 15:23:32.414 [info] Experiment 'pythonTestAdapter' is active
2025-03-08 15:23:32.414 [info] Native locator: Refresh started
2025-03-08 15:23:32.416 [info] Pyenv environment manager found at: /opt/homebrew/bin/pyenv
2025-03-08 15:23:32.427 [info] Poetry environment manager found at: /Users/pablo/Library/Application Support/pypoetry/venv/bin/poetry
2025-03-08 15:23:32.432 [info] Python interpreter path: ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python
2025-03-08 15:23:32.434 [info] Conda environment manager found at: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:23:32.434 [info] Using conda: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:23:32.863 [info] > /opt/homebrew/bin/pyenv which python
2025-03-08 15:23:32.863 [info] cwd: .
2025-03-08 15:23:32.891 [info] > /opt/homebrew/anaconda3/bin/conda info --json
2025-03-08 15:23:32.900 [info] Native locator: Refresh finished in 682 ms
2025-03-08 15:23:33.362 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:23:33.362 [info] shell: zsh
2025-03-08 15:23:35.176 [info] > ~/.pyenv/versions/3.9.10/bin/python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:23:35.176 [info] shell: zsh
2025-03-08 15:23:36.270 [info] Starting Pylance language server.
2025-03-08 15:23:36.273 [info] Prepending environment variable PATH in collection with /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh:/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:23:36.273 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:23:36.273 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:23:36.273 [info] Prepending environment variable PS1 in collection with local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2025-03-08 15:23:36.273 [info] Send text to terminal: /usr/local/bin/python /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariablesToFile.py /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh/envVars.txt
2025-03-08 15:23:58.474 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/.vscode/settings.json
2025-03-08 15:23:58.480 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 15:23:58.491 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:23:58.491 [info] shell: bash
2025-03-08 15:23:58.519 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 15:23:58.519 [info] cwd: .
2025-03-08 15:23:58.538 [error] /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python: No module named pytest

2025-03-08 15:23:58.541 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 15:23:58.542 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 15:23:58.543 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 15:24:05.534 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-03-08 15:24:05.534 [info] Experiment 'pythonSurveyNotificationcf' is active
2025-03-08 15:24:05.534 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-03-08 15:24:05.534 [info] Experiment 'pythonTestAdapter' is active
2025-03-08 15:24:05.534 [info] Native locator: Refresh started
2025-03-08 15:24:05.537 [info] Pyenv environment manager found at: /opt/homebrew/bin/pyenv
2025-03-08 15:24:05.537 [info] Poetry environment manager found at: /Users/pablo/Library/Application Support/pypoetry/venv/bin/poetry
2025-03-08 15:24:05.877 [info] > /opt/homebrew/bin/pyenv which python
2025-03-08 15:24:05.877 [info] cwd: .
2025-03-08 15:24:05.891 [info] Conda environment manager found at: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:24:05.891 [info] Using conda: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:24:05.896 [info] Python interpreter path: ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python
2025-03-08 15:24:05.977 [info] Native locator: Refresh finished in 693 ms
2025-03-08 15:24:06.161 [info] > /opt/homebrew/anaconda3/bin/conda info --json
2025-03-08 15:24:08.926 [info] Starting Pylance language server.
2025-03-08 15:24:09.614 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:24:09.614 [info] shell: zsh
2025-03-08 15:24:09.672 [info] > ~/.pyenv/versions/3.9.10/bin/python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:24:09.672 [info] shell: zsh
2025-03-08 15:24:09.707 [info] Prepending environment variable PATH in collection with /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh:/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:24:09.707 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:24:09.707 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:24:09.707 [info] Prepending environment variable PS1 in collection with local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2025-03-08 15:24:09.707 [info] Send text to terminal: /Library/Frameworks/Python.framework/Versions/2.7/bin/python3 /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariablesToFile.py /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh/envVars.txt
2025-03-08 15:25:18.821 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/.vscode/settings.json
2025-03-08 15:25:18.830 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 15:25:18.833 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:25:18.833 [info] shell: bash
2025-03-08 15:25:18.869 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 15:25:18.869 [info] cwd: .
2025-03-08 15:25:18.889 [error] /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python: No module named pytest

2025-03-08 15:25:18.892 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 15:25:18.892 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 15:25:18.892 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 15:25:22.939 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-03-08 15:25:22.939 [info] Experiment 'pythonSurveyNotificationcf' is active
2025-03-08 15:25:22.939 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-03-08 15:25:22.939 [info] Experiment 'pythonTestAdapter' is active
2025-03-08 15:25:22.939 [info] Native locator: Refresh started
2025-03-08 15:25:23.271 [info] > pyenv which python
2025-03-08 15:25:23.271 [info] cwd: .
2025-03-08 15:25:23.274 [info] Pyenv environment manager found at: /opt/homebrew/bin/pyenv
2025-03-08 15:25:23.275 [info] Poetry environment manager found at: /Users/pablo/Library/Application Support/pypoetry/venv/bin/poetry
2025-03-08 15:25:23.290 [info] Python interpreter path: ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python
2025-03-08 15:25:23.318 [info] Conda environment manager found at: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:25:23.318 [info] Using conda: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:25:23.533 [info] > /opt/homebrew/anaconda3/bin/conda info --json
2025-03-08 15:25:23.539 [info] Native locator: Refresh finished in 865 ms
2025-03-08 15:25:23.550 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:25:23.550 [info] shell: zsh
2025-03-08 15:25:25.221 [info] > ~/.pyenv/versions/3.9.10/bin/python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:25:25.221 [info] shell: zsh
2025-03-08 15:25:26.422 [info] Starting Pylance language server.
2025-03-08 15:25:26.424 [info] Prepending environment variable PATH in collection with /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh:/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:25:26.424 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:25:26.424 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:25:26.424 [info] Prepending environment variable PS1 in collection with local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2025-03-08 15:25:26.425 [info] Send text to terminal: /Library/Frameworks/Python.framework/Versions/2.7/bin/python3 /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariablesToFile.py /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh/envVars.txt
2025-03-08 15:25:35.647 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/local_package/importing-foo.py
2025-03-08 15:25:35.652 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 15:25:35.655 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:25:35.655 [info] shell: bash
2025-03-08 15:25:35.683 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 15:25:35.684 [info] cwd: .
2025-03-08 15:25:35.702 [error] /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python: No module named pytest

2025-03-08 15:25:35.704 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 15:25:35.705 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 15:25:35.705 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 15:31:14.032 [info] Discover tests for workspace name: vscode-auto-import-local-package - uri: /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package/local-package/local_package/importing-foo.py
2025-03-08 15:31:14.040 [info] arg: --rootdir already exists in args, not adding.
2025-03-08 15:31:14.040 [info] All environment variables set for pytest discovery, PYTHONPATH: "/Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files"
2025-03-08 15:31:14.042 [info] > ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python -m pytest -p vscode_pytest --collect-only tests -vv -rA --capture=fd --rootdir=.
2025-03-08 15:31:14.042 [info] cwd: .
2025-03-08 15:31:14.063 [error] /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python: No module named pytest

2025-03-08 15:31:14.065 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package.
2025-03-08 15:31:14.066 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package. Creating and sending error discovery payload
2025-03-08 15:31:14.066 [error] pytest test discovery error for workspace:  /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /Users/pablo/LocalDocs/temp/vscode-auto-import-local-package
2025-03-08 15:31:16.650 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-03-08 15:31:16.650 [info] Experiment 'pythonSurveyNotificationcf' is active
2025-03-08 15:31:16.650 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-03-08 15:31:16.650 [info] Experiment 'pythonTestAdapter' is active
2025-03-08 15:31:16.650 [info] Native locator: Refresh started
2025-03-08 15:31:16.665 [info] > pyenv which python
2025-03-08 15:31:16.665 [info] cwd: .
2025-03-08 15:31:17.037 [info] Pyenv environment manager found at: /opt/homebrew/bin/pyenv
2025-03-08 15:31:17.037 [info] Poetry environment manager found at: /Users/pablo/Library/Application Support/pypoetry/venv/bin/poetry
2025-03-08 15:31:17.053 [info] Python interpreter path: ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python
2025-03-08 15:31:17.078 [info] Conda environment manager found at: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:31:17.078 [info] Using conda: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:31:17.137 [info] Native locator: Refresh finished in 743 ms
2025-03-08 15:31:17.172 [info] > /opt/homebrew/anaconda3/bin/conda info --json
2025-03-08 15:31:17.321 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:31:17.321 [info] shell: zsh
2025-03-08 15:31:17.354 [info] > ~/.pyenv/versions/3.9.10/bin/python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:31:17.354 [info] shell: zsh
2025-03-08 15:31:19.115 [info] Prepending environment variable PATH in collection with /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh:/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:31:19.115 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:31:19.115 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:31:19.115 [info] Prepending environment variable PS1 in collection with local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2025-03-08 15:31:19.116 [info] Send text to terminal: /Library/Developer/CommandLineTools/usr/bin/python3 /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariablesToFile.py /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh/envVars.txt
2025-03-08 15:31:20.200 [info] Starting Pylance language server.
2025-03-08 15:33:12.252 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-03-08 15:33:12.252 [info] Experiment 'pythonSurveyNotificationcf' is active
2025-03-08 15:33:12.252 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-03-08 15:33:12.252 [info] Experiment 'pythonTestAdapter' is active
2025-03-08 15:33:12.252 [info] Native locator: Refresh started
2025-03-08 15:33:12.257 [info] Poetry environment manager found at: /Users/pablo/Library/Application Support/pypoetry/venv/bin/poetry
2025-03-08 15:33:12.257 [info] Pyenv environment manager found at: /opt/homebrew/bin/pyenv
2025-03-08 15:33:12.652 [info] > /opt/homebrew/bin/pyenv which python
2025-03-08 15:33:12.652 [info] cwd: .
2025-03-08 15:33:12.664 [info] Python interpreter path: ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/python
2025-03-08 15:33:12.693 [info] Conda environment manager found at: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:33:12.693 [info] Using conda: /opt/homebrew/anaconda3/bin/conda
2025-03-08 15:33:12.743 [info] Native locator: Refresh finished in 711 ms
2025-03-08 15:33:12.926 [info] > /opt/homebrew/anaconda3/bin/conda info --json
2025-03-08 15:33:12.943 [info] > . ~/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:33:12.943 [info] shell: zsh
2025-03-08 15:33:14.504 [info] > ~/.pyenv/versions/3.9.10/bin/python ~/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariables.py
2025-03-08 15:33:14.505 [info] shell: zsh
2025-03-08 15:33:15.822 [info] Starting Pylance language server.
2025-03-08 15:33:15.824 [info] Prepending environment variable PATH in collection with /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh:/Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:33:15.824 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/pablo/Library/Caches/pypoetry/virtualenvs/local-package-MlK9G6j3-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:33:15.825 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-03-08 15:33:15.825 [info] Prepending environment variable PS1 in collection with local-package-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2025-03-08 15:33:15.825 [info] Send text to terminal: /Library/Frameworks/Python.framework/Versions/2.7/bin/python3 /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/printEnvVariablesToFile.py /Users/pablo/.vscode-insiders/extensions/ms-python.python-2025.2.0-darwin-arm64/python_files/deactivate/zsh/envVars.txt
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Mar 8, 2025
@PabloLION
Copy link
Author

Can I know what kind of repro is needed? Can I offer this or it's for the team members?

@debonte debonte assigned debonte and unassigned KacieKK Mar 8, 2025
@debonte
Copy link
Contributor

debonte commented Mar 8, 2025

@PabloLION, the "needs repro" label name is confusing and we've been talking about changing it. In any case, it means that no one on the Pylance team has successfully reproduced (or in this case, even tried to reproduce) the issue yet. It's not saying I'm not that additional info is needed from the person that filed the issue.

@PabloLION
Copy link
Author

@debonte I'm doing some experiments with a new profile with no extension nor settings, and sometimes the behavior is different. I'm now doubting if it's a problem from pylance or from VSCode.

@PabloLION
Copy link
Author

Based on my experiment, I believe I’ve found the culprit: The poetry-env managed python 3.13. The symbol shows in "add import" code action and "quick fix", but auto-import is unavailable. Despite using "python.analysis.diagnosticMode": "workspace", or the fact I've imported the same token earlier in the same session (so it should be indexed), the auto-import is just not working.

What's my next step to do if I want to try fix this?

new profile

  • Pylance 2025.3.1
{
  "python.analysis.autoImportCompletions": true
}

old profile

  • Pylance v2025.3.100 (pre-release)
{
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.cacheLSPData": false,
// sometimes CacheLSPData cause pylance to crash
"python.analysis.diagnosticMode": "workspace",
// more unrelated settings
}
case id Python Version Profile Type Folder Structure Indexing
0 3.13.1 New Profile Poetry Folder On
1 3.13.1 Old Profile Poetry-Sub Folder On
2 Poetry-Env 3.11.11 Old Profile Poetry-Sub Folder On
3 3.13.1 New Profile Poetry Folder Off
4 3.13.1 New Profile Poetry Folder On
5 Poetry-Env 3.13.1 New Profile Poetry Folder On

Case 3: Only works if the file was opened in the same session
Case 5: See above

Off-topic

Is there a tool or some bash command that can help doing all these instead of doing it manually? I think with LLM we can maybe repro automatically without manually checking them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

3 participants