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-selection doesn't select local environment for brand-new workspace when using Insiders #16704

Closed
kimadeline opened this issue Jul 16, 2021 · 1 comment
Assignees
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug investigating We are looking into the cause of the issue regression Bug didn't exist in a previous release

Comments

@kimadeline
Copy link

Environment data

  • VS Code version: 1.59.0-insider
  • Extension version (available under the Extensions sidebar): main 919ea9e
  • OS and version: macOS Big Sur 11.4
  • Python version (& distribution if applicable, e.g. Anaconda): 3.9
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Outside of VS Code create a new folder with a python file, and a virtual environment
  2. Opt into all experiments in VS Code
  3. Open the folder in VS Code, and accept the workspace trust prompt
  4. Wait for extension to finish loading, notice that the interpreter selected in the bottom left corner isn't the one from the virtual environment that was just created, despite the local environment being correctly detected

Screen Shot 2021-07-16 at 11 07 05 AM

Notes

When setting breakpoints on L273 and L275 of autoSelection/index.ts the list of interpreters seems to return the local env correctly, but then for some reason it doesn't get stored or updated properly:

private async autoselectInterpreterWithLocators(resource: Resource): Promise<void> {
const interpreters = await this.interpreterService.getInterpreters(resource);
const workspaceUri = this.interpreterHelper.getActiveWorkspaceUri(resource);
// When auto-selecting an intepreter for a workspace, we either want to return a local one
// or fallback on a globally-installed interpreter, and we don't want want to suggest a global environment
// because we would have to add a way to match environments to a workspace.
const filteredInterpreters = interpreters.filter(
(i) => getEnvTypeHeuristic(i, workspaceUri?.folderUri.fsPath || '') !== EnvTypeHeuristic.Global,
);
filteredInterpreters.sort(this.envTypeComparer.compare.bind(this.envTypeComparer));
if (workspaceUri) {
this.setWorkspaceInterpreter(workspaceUri.folderUri, filteredInterpreters[0]);
} else {
this.setGlobalInterpreter(filteredInterpreters[0]);
}
this.didAutoSelectedInterpreterEmitter.fire();
}

Logs

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

User belongs to experiment group 'All'
Info 2021-07-16 11:19:24: Searching for conda.
Info 2021-07-16 11:19:24: Probing conda binary: conda
Info 2021-07-16 11:19:24: Error: spawn conda ENOENT
    at Process.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:465:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn conda',
  path: 'conda',
  spawnargs: [ 'info', '--json' ]
}
Info 2021-07-16 11:19:24: Searching for workspace virtual envs in: /Users/kimiguel/Documents/16520-demo/something
Info 2021-07-16 11:19:24: Searching for poetry virtual envs in: /Users/kimiguel/Documents/16520-demo/something/.venv
Info 2021-07-16 11:19:24: Searching for global virtual envs in: /Users/kimiguel/.venvs
Info 2021-07-16 11:19:24: Searching for global virtual envs in: /Users/kimiguel/.local/share/virtualenvs
Info 2021-07-16 11:19:24: Poetry Virtual Environment: [added] /Users/kimiguel/Documents/16520-demo/something/.venv/bin/python
Info 2021-07-16 11:19:24: Probing conda binary: /Users/kimiguel/.anaconda/bin/conda
Info 2021-07-16 11:19:24: Error: spawn /Users/kimiguel/.anaconda/bin/conda ENOENT
    at Process.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:465:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /Users/kimiguel/.anaconda/bin/conda',
  path: '/Users/kimiguel/.anaconda/bin/conda',
  spawnargs: [ 'info', '--json' ]
}
Info 2021-07-16 11:19:24: Probing conda binary: /Users/kimiguel/.anaconda_backup/bin/conda
Info 2021-07-16 11:19:24: Error: spawn /Users/kimiguel/.anaconda_backup/bin/conda ENOENT
    at Process.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:465:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /Users/kimiguel/.anaconda_backup/bin/conda',
  path: '/Users/kimiguel/.anaconda_backup/bin/conda',
  spawnargs: [ 'info', '--json' ]
}
Info 2021-07-16 11:19:24: Probing conda binary: /Users/kimiguel/.conda/bin/conda
Info 2021-07-16 11:19:24: Error: spawn /Users/kimiguel/.conda/bin/conda ENOENT
    at Process.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:465:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /Users/kimiguel/.conda/bin/conda',
  path: '/Users/kimiguel/.conda/bin/conda',
  spawnargs: [ 'info', '--json' ]
}
Info 2021-07-16 11:19:24: Probing conda binary: /Users/kimiguel/.condarc/bin/conda
Info 2021-07-16 11:19:24: Error: spawn /Users/kimiguel/.condarc/bin/conda ENOENT
    at Process.onexit (internal/child_process.js:269:19)
    at onErrorNT (internal/child_process.js:465:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /Users/kimiguel/.condarc/bin/conda',
  path: '/Users/kimiguel/.condarc/bin/conda',
  spawnargs: [ 'info', '--json' ]
}
Info 2021-07-16 11:19:24: Probing conda binary: /Users/kimiguel/opt/anaconda3/bin/conda
Info 2021-07-16 11:19:24: Workspace Virtual Environment: [added] /Users/kimiguel/Documents/16520-demo/something/.venv/bin/python
Info 2021-07-16 11:19:24: Workspace Virtual Environment: [skipped] /Users/kimiguel/Documents/16520-demo/something/.venv/bin/python3
Info 2021-07-16 11:19:24: Workspace Virtual Environment: [skipped] /Users/kimiguel/Documents/16520-demo/something/.venv/bin/python3.9
Info 2021-07-16 11:19:24: Global Virtual Environment: [added] /Users/kimiguel/.venvs/debug_venv/bin/python
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.venvs/debug_venv/bin/python3
Info 2021-07-16 11:19:24: Found: /usr/bin/python --> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Info 2021-07-16 11:19:24: Found interpreter for /Users/kimiguel/.pyenv/versions/3.9.0/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Python interpreter path: ~/.pyenv/versions/3.9.0/bin/python
Info 2021-07-16 11:19:24: Found: /usr/bin/python2 --> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Info 2021-07-16 11:19:24: Found: /usr/bin/python2.7 --> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Info 2021-07-16 11:19:24: Found: /usr/bin/python3 --> /usr/bin/python3
Info 2021-07-16 11:19:24: Found: /usr/lib/python2.7 --> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
Info 2021-07-16 11:19:24: Found: /usr/local/bin/python --> /usr/local/Cellar/python@2/2.7.16_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Info 2021-07-16 11:19:24: Found: /usr/local/bin/python2 --> /usr/local/Cellar/python@2/2.7.16_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Info 2021-07-16 11:19:24: Found: /usr/local/bin/python2.7 --> /usr/local/Cellar/python@2/2.7.16_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Info 2021-07-16 11:19:24: Global Virtual Environment: [added] /Users/kimiguel/.local/share/virtualenvs/15669-pytest-libfaketime--GTL2adt/bin/python
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/15669-pytest-libfaketime--GTL2adt/bin/python3
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/15669-pytest-libfaketime--GTL2adt/bin/python3.9
Info 2021-07-16 11:19:24: Found: /usr/local/bin/python3 --> /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
Info 2021-07-16 11:19:24: Found: /usr/local/bin/python3.10 --> /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
Info 2021-07-16 11:19:24: Found: /usr/local/bin/python3.9 --> /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
Info 2021-07-16 11:19:24: Global Virtual Environment: [added] /Users/kimiguel/.local/share/virtualenvs/github-poem-generator-IKA1dhoo/bin/python
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/github-poem-generator-IKA1dhoo/bin/python3
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/github-poem-generator-IKA1dhoo/bin/python3.8
Info 2021-07-16 11:19:24: Found interpreter for /Users/kimiguel/.pyenv/versions/2.7.10/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Error 2021-07-16 11:19:24: The .project file inside environment folder: /Users/kimiguel/.local/share/virtualenvs/hello-pipenv-two-dcBnVr68 doesn't contain a valid path to the project
Info 2021-07-16 11:19:24: Global Virtual Environment: [added] /Users/kimiguel/.local/share/virtualenvs/hello-pipenv-two-dcBnVr68/bin/python
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/hello-pipenv-two-dcBnVr68/bin/python3
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/hello-pipenv-two-dcBnVr68/bin/python3.8
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/hello-pipenv-two-dcBnVr68/include/python3.8
Info 2021-07-16 11:19:24: Start watching: /Users/kimiguel/.pyenv/versions with pattern python using chokidar
Info 2021-07-16 11:19:24: Start watching: /Users/kimiguel/.pyenv/versions with pattern */python using chokidar
Info 2021-07-16 11:19:24: Start watching: /Users/kimiguel/.pyenv/versions with pattern */bin/python using chokidar
Info 2021-07-16 11:19:24: Start watching: /Users/kimiguel/Documents/16520-demo/something with pattern python using VSCode API
Info 2021-07-16 11:19:24: Start watching: /Users/kimiguel/Documents/16520-demo/something with pattern */python using VSCode API
Info 2021-07-16 11:19:24: Start watching: /Users/kimiguel/Documents/16520-demo/something with pattern */bin/python using VSCode API
Info 2021-07-16 11:19:24: Found interpreter for /Users/kimiguel/.pyenv/versions/3.6.9/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:24: Found interpreter for /Users/kimiguel/.pyenv/versions/3.7.0/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:24: Global Virtual Environment: [added] /Users/kimiguel/.local/share/virtualenvs/pipenv-test--3eDZ0wy/bin/python
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/pipenv-test--3eDZ0wy/bin/python3
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/pipenv-test--3eDZ0wy/bin/python3.8
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/pipenv-test--3eDZ0wy/include/python3.8
Error 2021-07-16 11:19:24: The .project file inside environment folder: /Users/kimiguel/.local/share/virtualenvs/pipenv-two-KgBt83I1 doesn't contain a valid path to the project
Info 2021-07-16 11:19:24: Global Virtual Environment: [added] /Users/kimiguel/.local/share/virtualenvs/pipenv-two-KgBt83I1/bin/python
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/pipenv-two-KgBt83I1/bin/python3
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/pipenv-two-KgBt83I1/bin/python3.8
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/pipenv-two-KgBt83I1/include/python3.8
Error 2021-07-16 11:19:24: The .project file inside environment folder: /Users/kimiguel/.local/share/virtualenvs/pipfile_hello_world-9fihYaKL doesn't contain a valid path to the project
Info 2021-07-16 11:19:24: Global Virtual Environment: [added] /Users/kimiguel/.local/share/virtualenvs/pipfile_hello_world-9fihYaKL/bin/python
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/pipfile_hello_world-9fihYaKL/bin/python3
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/pipfile_hello_world-9fihYaKL/bin/python3.7
Info 2021-07-16 11:19:24: Found interpreter for /Users/kimiguel/.pyenv/versions/3.7.4/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:24: Found interpreter for /Users/kimiguel/.pyenv/versions/3.8.0/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Error 2021-07-16 11:19:24: The .project file inside environment folder: /Users/kimiguel/.local/share/virtualenvs/pytest-libfaketime-ChaRi4Fc doesn't contain a valid path to the project
Info 2021-07-16 11:19:24: Global Virtual Environment: [added] /Users/kimiguel/.local/share/virtualenvs/pytest-libfaketime-ChaRi4Fc/bin/python
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/pytest-libfaketime-ChaRi4Fc/bin/python3
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/pytest-libfaketime-ChaRi4Fc/bin/python3.9
Error 2021-07-16 11:19:24: The .project file inside environment folder: /Users/kimiguel/.local/share/virtualenvs/upper_level_project-hGd-hSjF doesn't contain a valid path to the project
Info 2021-07-16 11:19:24: Global Virtual Environment: [added] /Users/kimiguel/.local/share/virtualenvs/upper_level_project-hGd-hSjF/bin/python
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/upper_level_project-hGd-hSjF/bin/python3
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/upper_level_project-hGd-hSjF/bin/python3.10
Error 2021-07-16 11:19:24: The .project file inside environment folder: /Users/kimiguel/.local/share/virtualenvs/vscode_multi_workspace_bug_repro-mhhNtleX doesn't contain a valid path to the project
Info 2021-07-16 11:19:24: Global Virtual Environment: [added] /Users/kimiguel/.local/share/virtualenvs/vscode_multi_workspace_bug_repro-mhhNtleX/bin/python
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/vscode_multi_workspace_bug_repro-mhhNtleX/bin/python3
Info 2021-07-16 11:19:24: Global Virtual Environment: [skipped] /Users/kimiguel/.local/share/virtualenvs/vscode_multi_workspace_bug_repro-mhhNtleX/bin/python3.10
Info 2021-07-16 11:19:24: Found interpreter for /Users/kimiguel/.pyenv/versions/3.8.5/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:24: Found interpreter for /Users/kimiguel/.venvs/debug_venv/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Found interpreter for /Users/kimiguel/Documents/16520-demo/something/.venv/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Found interpreter for /Users/kimiguel/.local/share/virtualenvs/15669-pytest-libfaketime--GTL2adt/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Start watching: /Users/kimiguel/.venvs with pattern python using chokidar
Info 2021-07-16 11:19:25: Start watching: /Users/kimiguel/.venvs with pattern */python using chokidar
Info 2021-07-16 11:19:25: Start watching: /Users/kimiguel/.venvs with pattern */bin/python using chokidar
Info 2021-07-16 11:19:25: Start watching: /Users/kimiguel/.local/share/virtualenvs with pattern python using chokidar
Info 2021-07-16 11:19:25: Start watching: /Users/kimiguel/.local/share/virtualenvs with pattern */python using chokidar
Info 2021-07-16 11:19:25: Start watching: /Users/kimiguel/.local/share/virtualenvs with pattern */bin/python using chokidar
Info 2021-07-16 11:19:25: Found interpreter for /Users/kimiguel/.local/share/virtualenvs/github-poem-generator-IKA1dhoo/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Found interpreter for /usr/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Error: Command failed: "/usr/lib/python2.7" "/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py"
/bin/sh: /usr/lib/python2.7: is a directory

    at ChildProcess.exithandler (child_process.js:317:12)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1048:16)
    at Socket.<anonymous> (internal/child_process.js:439:11)
    at Socket.emit (events.js:315:20)
    at Pipe.<anonymous> (net.js:673:12)
    at Pipe.callbackTrampoline (internal/async_hooks.js:131:14) {
  killed: false,
  code: 126,
  signal: null,
  cmd: '"/usr/lib/python2.7" "/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py"'
}
Info 2021-07-16 11:19:25: Found interpreter for /usr/bin/python3,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Found interpreter for /usr/local/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Found interpreter for /Users/kimiguel/.local/share/virtualenvs/hello-pipenv-two-dcBnVr68/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Found interpreter for /usr/local/bin/python3,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Found interpreter for /usr/local/bin/python3.9,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Found interpreter for /Users/kimiguel/.local/share/virtualenvs/pipenv-test--3eDZ0wy/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Error: Command failed: "/Users/kimiguel/.local/share/virtualenvs/pipfile_hello_world-9fihYaKL/bin/python" "/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py"
dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/kimiguel/.local/share/virtualenvs/pipfile_hello_world-9fihYaKL/bin/python
  Reason: image not found

    at ChildProcess.exithandler (child_process.js:317:12)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1048:16)
    at Socket.<anonymous> (internal/child_process.js:439:11)
    at Socket.emit (events.js:315:20)
    at Pipe.<anonymous> (net.js:673:12)
    at Pipe.callbackTrampoline (internal/async_hooks.js:131:14) {
  killed: false,
  code: null,
  signal: 'SIGABRT',
  cmd: '"/Users/kimiguel/.local/share/virtualenvs/pipfile_hello_world-9fihYaKL/bin/python" "/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py"'
}
Info 2021-07-16 11:19:25: Found interpreter for /Users/kimiguel/.local/share/virtualenvs/pipenv-two-KgBt83I1/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Found interpreter for /Users/kimiguel/.local/share/virtualenvs/pytest-libfaketime-ChaRi4Fc/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Found interpreter for /Users/kimiguel/.local/share/virtualenvs/upper_level_project-hGd-hSjF/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Shell path ''
Info 2021-07-16 11:19:25: Shell path identified as shell 'other'
Info 2021-07-16 11:19:25: Terminal name '' identified as shell 'other'
Info 2021-07-16 11:19:25: [object Object]. Shell identified as other (Terminal name is )
Info 2021-07-16 11:19:25: Shell path '/bin/zsh'
Info 2021-07-16 11:19:25: Shell path identified as shell 'zsh'
Info 2021-07-16 11:19:25: Terminal shell path '/bin/zsh' identified as shell 'zsh'
Info 2021-07-16 11:19:25: [object Object]. Shell identified as zsh (Terminal name is )
Info 2021-07-16 11:19:25: Shell identified as 'zsh'
Info 2021-07-16 11:19:25: conda info --json: {
  "GID": 20,
  "UID": 501,
  "active_prefix": null,
  "active_prefix_name": null,
  "channels": [
    "https://repo.anaconda.com/pkgs/main/osx-64",
    "https://repo.anaconda.com/pkgs/main/noarch",
    "https://repo.anaconda.com/pkgs/r/osx-64",
    "https://repo.anaconda.com/pkgs/r/noarch"
  ],
  "conda_build_version": "3.18.9",
  "conda_env_version": "4.9.2",
  "conda_location": "/Users/kimiguel/opt/anaconda3/lib/python3.7/site-packages/conda",
  "conda_prefix": "/Users/kimiguel/opt/anaconda3",
  "conda_private": false,
  "conda_shlvl": -1,
  "conda_version": "4.9.2",
  "config_files": [
    "/Users/kimiguel/.condarc"
  ],
  "default_prefix": "/Users/kimiguel/opt/anaconda3",
  "env_vars": {
    "CIO_TEST": "<not set>",
    "CONDA_ROOT": "/Users/kimiguel/opt/anaconda3",
    "CURL_CA_BUNDLE": "<not set>",
    "PATH": "/Users/kimiguel/.nvm/versions/node/v12.20.0/bin:/Users/kimiguel/.pyenv/shims:/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/sbin:/Users/kimiguel/.poetry/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/fzf/bin",
    "PYTHONIOENCODING": "utf-8",
    "PYTHONUNBUFFERED": "1",
    "REQUESTS_CA_BUNDLE": "<not set>",
    "SSL_CERT_FILE": "<not set>"
  },
  "envs": [
    "/Users/kimiguel/Documents/Sandbox/conda-prefix",
    "/Users/kimiguel/opt/anaconda3",
    "/Users/kimiguel/opt/anaconda3/envs/8148-flask",
    "/Users/kimiguel/opt/anaconda3/envs/myenv",
    "/Users/kimiguel/opt/anaconda3/envs/pyqt5",
    "/Users/kimiguel/opt/anaconda3/envs/test-repo"
  ],
  "envs_dirs": [
    "/Users/kimiguel/opt/anaconda3/envs",
    "/Users/kimiguel/.conda/envs"
  ],
  "netrc_file": null,
  "offline": false,
  "pkgs_dirs": [
    "/Users/kimiguel/opt/anaconda3/pkgs",
    "/Users/kimiguel/.conda/pkgs"
  ],
  "platform": "osx-64",
  "python_version": "3.7.4.final.0",
  "rc_path": "/Users/kimiguel/.condarc",
  "requests_version": "2.22.0",
  "root_prefix": "/Users/kimiguel/opt/anaconda3",
  "root_writable": true,
  "site_dirs": [
    "~/.local/lib/python3.8",
    "~/.local/lib/python3.7"
  ],
  "sys.executable": "/Users/kimiguel/opt/anaconda3/bin/python",
  "sys.prefix": "/Users/kimiguel/opt/anaconda3",
  "sys.version": "3.7.4 (default, Aug 13 2019, 15:17:50) \n[Clang 4.0.1 (tags/RELEASE_401/final)]",
  "sys_rc_path": "/Users/kimiguel/opt/anaconda3/.condarc",
  "user_agent": "conda/4.9.2 requests/2.22.0 CPython/3.7.4 Darwin/20.5.0 OSX/10.16",
  "user_rc_path": "/Users/kimiguel/.condarc",
  "virtual_pkgs": [
    [
      "__osx",
      "10.16",
      "0"
    ],
    [
      "__unix",
      "0",
      "0"
    ],
    [
      "__archspec",
      "1",
      "x86_64"
    ]
  ]
}

Info 2021-07-16 11:19:25: Found conda via filesystem probing: /Users/kimiguel/opt/anaconda3/bin/conda
Info 2021-07-16 11:19:25: Searching for conda environments using /Users/kimiguel/opt/anaconda3/bin/conda
Info 2021-07-16 11:19:25: Found interpreter for /Users/kimiguel/.local/share/virtualenvs/vscode_multi_workspace_bug_repro-mhhNtleX/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:25: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, completed in 1ms, has a falsy return value, , Return Value: undefined
Info 2021-07-16 11:19:25: Hide locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, completed in 0ms, has a falsy return value, , Return Value: undefined
Info 2021-07-16 11:19:26: Cached data exists getEnvironmentVariables, /Users/kimiguel/Documents/16520-demo/something/foo.py
Info 2021-07-16 11:19:26: conda info --json: {
  "GID": 20,
  "UID": 501,
  "active_prefix": null,
  "active_prefix_name": null,
  "channels": [
    "https://repo.anaconda.com/pkgs/main/osx-64",
    "https://repo.anaconda.com/pkgs/main/noarch",
    "https://repo.anaconda.com/pkgs/r/osx-64",
    "https://repo.anaconda.com/pkgs/r/noarch"
  ],
  "conda_build_version": "3.18.9",
  "conda_env_version": "4.9.2",
  "conda_location": "/Users/kimiguel/opt/anaconda3/lib/python3.7/site-packages/conda",
  "conda_prefix": "/Users/kimiguel/opt/anaconda3",
  "conda_private": false,
  "conda_shlvl": -1,
  "conda_version": "4.9.2",
  "config_files": [
    "/Users/kimiguel/.condarc"
  ],
  "default_prefix": "/Users/kimiguel/opt/anaconda3",
  "env_vars": {
    "CIO_TEST": "<not set>",
    "CONDA_ROOT": "/Users/kimiguel/opt/anaconda3",
    "CURL_CA_BUNDLE": "<not set>",
    "PATH": "/Users/kimiguel/.nvm/versions/node/v12.20.0/bin:/Users/kimiguel/.pyenv/shims:/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/sbin:/Users/kimiguel/.poetry/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/fzf/bin",
    "PYTHONIOENCODING": "utf-8",
    "PYTHONUNBUFFERED": "1",
    "REQUESTS_CA_BUNDLE": "<not set>",
    "SSL_CERT_FILE": "<not set>"
  },
  "envs": [
    "/Users/kimiguel/Documents/Sandbox/conda-prefix",
    "/Users/kimiguel/opt/anaconda3",
    "/Users/kimiguel/opt/anaconda3/envs/8148-flask",
    "/Users/kimiguel/opt/anaconda3/envs/myenv",
    "/Users/kimiguel/opt/anaconda3/envs/pyqt5",
    "/Users/kimiguel/opt/anaconda3/envs/test-repo"
  ],
  "envs_dirs": [
    "/Users/kimiguel/opt/anaconda3/envs",
    "/Users/kimiguel/.conda/envs"
  ],
  "netrc_file": null,
  "offline": false,
  "pkgs_dirs": [
    "/Users/kimiguel/opt/anaconda3/pkgs",
    "/Users/kimiguel/.conda/pkgs"
  ],
  "platform": "osx-64",
  "python_version": "3.7.4.final.0",
  "rc_path": "/Users/kimiguel/.condarc",
  "requests_version": "2.22.0",
  "root_prefix": "/Users/kimiguel/opt/anaconda3",
  "root_writable": true,
  "site_dirs": [
    "~/.local/lib/python3.8",
    "~/.local/lib/python3.7"
  ],
  "sys.executable": "/Users/kimiguel/opt/anaconda3/bin/python",
  "sys.prefix": "/Users/kimiguel/opt/anaconda3",
  "sys.version": "3.7.4 (default, Aug 13 2019, 15:17:50) \n[Clang 4.0.1 (tags/RELEASE_401/final)]",
  "sys_rc_path": "/Users/kimiguel/opt/anaconda3/.condarc",
  "user_agent": "conda/4.9.2 requests/2.22.0 CPython/3.7.4 Darwin/20.5.0 OSX/10.16",
  "user_rc_path": "/Users/kimiguel/.condarc",
  "virtual_pkgs": [
    [
      "__osx",
      "10.16",
      "0"
    ],
    [
      "__unix",
      "0",
      "0"
    ],
    [
      "__archspec",
      "1",
      "x86_64"
    ]
  ]
}

Info 2021-07-16 11:19:26: Found conda environment: /Users/kimiguel/Documents/Sandbox/conda-prefix/bin/python
Info 2021-07-16 11:19:26: Searching for conda.
Info 2021-07-16 11:19:26: Cached data exists KeyPrefix=Cache_Method_Output_Conda.getEnvList-Args=
Info 2021-07-16 11:19:26: Found conda environment: /Users/kimiguel/opt/anaconda3/bin/python
Info 2021-07-16 11:19:26: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, completed in 1ms, has a falsy return value, , Return Value: undefined
Info 2021-07-16 11:19:26: Hide locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, completed in 0ms, has a falsy return value, , Return Value: undefined
Info 2021-07-16 11:19:26: Cached data exists getEnvironmentVariables, /Users/kimiguel/Documents/16520-demo/something/foo.py
Info 2021-07-16 11:19:26: Cached data exists getEnvironmentVariables, /Users/kimiguel/Documents/16520-demo/something/foo.py
Info 2021-07-16 11:19:26: Searching for conda.
Info 2021-07-16 11:19:26: Cached data exists KeyPrefix=Cache_Method_Output_Conda.getEnvList-Args=
Info 2021-07-16 11:19:26: Found conda environment: /Users/kimiguel/opt/anaconda3/envs/8148-flask/bin/python
Info 2021-07-16 11:19:26: Searching for conda.
Info 2021-07-16 11:19:26: Cached data exists KeyPrefix=Cache_Method_Output_Conda.getEnvList-Args=
Info 2021-07-16 11:19:26: Found conda environment: /Users/kimiguel/opt/anaconda3/envs/myenv/bin/python
Info 2021-07-16 11:19:26: Searching for conda.
Info 2021-07-16 11:19:26: Cached data exists KeyPrefix=Cache_Method_Output_Conda.getEnvList-Args=
Info 2021-07-16 11:19:26: Found conda environment: /Users/kimiguel/opt/anaconda3/envs/pyqt5/bin/python
Info 2021-07-16 11:19:26: Found interpreter for /Users/kimiguel/Documents/Sandbox/conda-prefix/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:26: Searching for conda.
Info 2021-07-16 11:19:26: Cached data exists KeyPrefix=Cache_Method_Output_Conda.getEnvList-Args=
Info 2021-07-16 11:19:26: Found conda environment: /Users/kimiguel/opt/anaconda3/envs/test-repo/bin/python
Info 2021-07-16 11:19:26: Found interpreter for /Users/kimiguel/opt/anaconda3/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:26: Found interpreter for /Users/kimiguel/opt/anaconda3/envs/8148-flask/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:26: Searching for conda.
Info 2021-07-16 11:19:26: Cached data exists KeyPrefix=Cache_Method_Output_Conda.getEnvList-Args=
Info 2021-07-16 11:19:26: Found interpreter for /Users/kimiguel/opt/anaconda3/envs/myenv/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:26: Found interpreter for /Users/kimiguel/opt/anaconda3/envs/pyqt5/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Info 2021-07-16 11:19:26: Found interpreter for /Users/kimiguel/opt/anaconda3/envs/test-repo/bin/python,/Users/kimiguel/Documents/vscode-python/pythonFiles/interpreterInfo.py
Starting Pylance language server.
Error 2021-07-16 11:19:27: Failed to check if file needs to be fixed EntryNotFound (FileSystemError): Unable to read file '/Users/kimiguel/Documents/16520-demo/something/.vscode/settings.json' (Error: Unable to resolve non-existing file '/Users/kimiguel/Documents/16520-demo/something/.vscode/settings.json')
    at _handleError (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:84:156655)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at RawFileSystem.readText (/Users/kimiguel/Documents/vscode-python/src/client/common/platform/fileSystem.ts:192:24)
    at UpdateTestSettingService.doesFileNeedToBeFixed (/Users/kimiguel/Documents/vscode-python/src/client/testing/common/updateTestSettings.ts:90:30)
    at /Users/kimiguel/Documents/vscode-python/src/client/testing/common/updateTestSettings.ts:48:37
    at async Promise.all (index 1)
    at UpdateTestSettingService.getFilesToBeFixed (/Users/kimiguel/Documents/vscode-python/src/client/testing/common/updateTestSettings.ts:46:24)
    at UpdateTestSettingService.updateTestSettings (/Users/kimiguel/Documents/vscode-python/src/client/testing/common/updateTestSettings.ts:30:32) {
  code: 'FileNotFound'
}
Info 2021-07-16 11:19:27: Cached data exists getEnvironmentVariables, /Users/kimiguel/Documents/16520-demo/something
Info 2021-07-16 11:19:27: Cached data exists getEnvironmentVariables, /Users/kimiguel/Documents/16520-demo/something
Info 2021-07-16 11:19:28: Starting language server, Class name = NodeLanguageServerManager, completed in 1230ms, has a falsy return value, , Return Value: undefined
Info 2021-07-16 11:19:28: Cached data exists getEnvironmentVariables, /Users/kimiguel/Documents/16520-demo/something/foo.py
Info 2021-07-16 11:19:28: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, completed in 0ms, has a falsy return value, , Return Value: undefined
Info 2021-07-16 11:19:28: Cached data exists getEnvironmentVariables, /Users/kimiguel/Documents/16520-demo/something/foo.py
Info 2021-07-16 11:19:28: Hide locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, completed in 0ms, has a falsy return value, , Return Value: undefined
Info 2021-07-16 11:19:28: [object Object]. Shell identified as undefined 
Info 2021-07-16 11:19:28: Shell path '/bin/zsh'
Info 2021-07-16 11:19:28: Shell path identified as shell 'zsh'
Info 2021-07-16 11:19:28: Terminal shell path '/bin/zsh' identified as shell 'zsh'
Info 2021-07-16 11:19:28: [object Object]. Shell identified as zsh 
Info 2021-07-16 11:19:28: Shell identified as 'zsh'
Info 2021-07-16 11:19:28: Cached data exists getEnvironmentVariables, <No Resource>
Info 2021-07-16 11:19:28: Cached data exists getEnvironmentVariables, <No Resource>
Info 2021-07-16 11:19:28: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, completed in 0ms, has a falsy return value, , Return Value: undefined
Info 2021-07-16 11:19:28: Hide locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, completed in 0ms, has a falsy return value, , Return Value: undefined
Info 2021-07-16 11:19:28: Searching for conda.
Info 2021-07-16 11:19:29: conda info --json: {
  "GID": 20,
  "UID": 501,
  "active_prefix": null,
  "active_prefix_name": null,
  "channels": [
    "https://repo.anaconda.com/pkgs/main/osx-64",
    "https://repo.anaconda.com/pkgs/main/noarch",
    "https://repo.anaconda.com/pkgs/r/osx-64",
    "https://repo.anaconda.com/pkgs/r/noarch"
  ],
  "conda_build_version": "3.18.9",
  "conda_env_version": "4.9.2",
  "conda_location": "/Users/kimiguel/opt/anaconda3/lib/python3.7/site-packages/conda",
  "conda_prefix": "/Users/kimiguel/opt/anaconda3",
  "conda_private": false,
  "conda_shlvl": -1,
  "conda_version": "4.9.2",
  "config_files": [
    "/Users/kimiguel/.condarc"
  ],
  "default_prefix": "/Users/kimiguel/opt/anaconda3",
  "env_vars": {
    "CIO_TEST": "<not set>",
    "CONDA_ROOT": "/Users/kimiguel/opt/anaconda3",
    "CURL_CA_BUNDLE": "<not set>",
    "PATH": "/Users/kimiguel/.nvm/versions/node/v12.20.0/bin:/Users/kimiguel/.pyenv/shims:/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/sbin:/Users/kimiguel/.poetry/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/fzf/bin",
    "PYTHONIOENCODING": "utf-8",
    "PYTHONUNBUFFERED": "1",
    "REQUESTS_CA_BUNDLE": "<not set>",
    "SSL_CERT_FILE": "<not set>"
  },
  "envs": [
    "/Users/kimiguel/Documents/Sandbox/conda-prefix",
    "/Users/kimiguel/opt/anaconda3",
    "/Users/kimiguel/opt/anaconda3/envs/8148-flask",
    "/Users/kimiguel/opt/anaconda3/envs/myenv",
    "/Users/kimiguel/opt/anaconda3/envs/pyqt5",
    "/Users/kimiguel/opt/anaconda3/envs/test-repo"
  ],
  "envs_dirs": [
    "/Users/kimiguel/opt/anaconda3/envs",
    "/Users/kimiguel/.conda/envs"
  ],
  "netrc_file": null,
  "offline": false,
  "pkgs_dirs": [
    "/Users/kimiguel/opt/anaconda3/pkgs",
    "/Users/kimiguel/.conda/pkgs"
  ],
  "platform": "osx-64",
  "python_version": "3.7.4.final.0",
  "rc_path": "/Users/kimiguel/.condarc",
  "requests_version": "2.22.0",
  "root_prefix": "/Users/kimiguel/opt/anaconda3",
  "root_writable": true,
  "site_dirs": [
    "~/.local/lib/python3.8",
    "~/.local/lib/python3.7"
  ],
  "sys.executable": "/Users/kimiguel/opt/anaconda3/bin/python",
  "sys.prefix": "/Users/kimiguel/opt/anaconda3",
  "sys.version": "3.7.4 (default, Aug 13 2019, 15:17:50) \n[Clang 4.0.1 (tags/RELEASE_401/final)]",
  "sys_rc_path": "/Users/kimiguel/opt/anaconda3/.condarc",
  "user_agent": "conda/4.9.2 requests/2.22.0 CPython/3.7.4 Darwin/20.5.0 OSX/10.16",
  "user_rc_path": "/Users/kimiguel/.condarc",
  "virtual_pkgs": [
    [
      "__osx",
      "10.16",
      "0"
    ],
    [
      "__unix",
      "0",
      "0"
    ],
    [
      "__archspec",
      "1",
      "x86_64"
    ]
  ]
}

Info 2021-07-16 11:19:29: Current value for rule workspaceEnvs is nothing
Info 2021-07-16 11:19:29: Cached data exists getEnvironmentVariables, tasks
Info 2021-07-16 11:19:33: Cached data exists getEnvironmentVariables, /Users/kimiguel/Documents/16520-demo/something
Info 2021-07-16 11:19:37: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, completed in 1ms, has a falsy return value, , Return Value: undefined
Info 2021-07-16 11:19:37: Hide locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, completed in 0ms, has a falsy return value, , Return Value: undefined
Info 2021-07-16 11:20:07: Cached data exists getEnvironmentVariables, extension-output-ms-python.python-#1

@kimadeline kimadeline added bug Issue identified by VS Code Team member as probable bug regression Bug didn't exist in a previous release area-environments Features relating to handling interpreter environments investigating We are looking into the cause of the issue labels Jul 16, 2021
@kimadeline kimadeline self-assigned this Jul 16, 2021
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jul 16, 2021
@kimadeline kimadeline removed the triage-needed Needs assignment to the proper sub-team label Jul 19, 2021
@kimadeline
Copy link
Author

kimadeline commented Jul 19, 2021

Happens only when python.defaultInterpreterPath is set to something that's not the default value. It's expected behavior, closing the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug investigating We are looking into the cause of the issue regression Bug didn't exist in a previous release
Projects
None yet
Development

No branches or pull requests

1 participant