Skip to content

Regression: Extension hangs at startup at "reactivating terminal message", spinner loops indefinitely #23982

Closed
@corneliusroemer

Description

@corneliusroemer

Type: Bug

Unfortunately the issue #23968 #23963 has come back, version: v2024.13.2024082001 (pre-release)

Locator is set to native. The workaround with js works but only after a relatively long load time this time (5-10 seconds)

When starting vscode, Python extension never finishes loading, gets stuck at "Reactivating terminals".

image
Python log
2024-08-21 11:54:57.593 [info] Experiment 'pythonaacf' is active
2024-08-21 11:54:57.593 [info] Experiment 'pythonCreateEnvOnPipInstall' is active
2024-08-21 11:54:57.593 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-08-21 11:54:57.593 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-08-21 11:54:57.593 [info] Experiment 'pythonTestAdapter' is active
2024-08-21 11:54:57.593 [info] Native locator: Refresh started
2024-08-21 11:54:57.593 [info] Default formatter is set to charliermarsh.ruff for workspace /Users/corneliusromer/code/loculus
2024-08-21 11:54:57.647 [info] > pyenv which python
2024-08-21 11:54:57.647 [info] cwd: .
2024-08-21 11:54:57.956 [warning] Unknown environment manager: Poetry
2024-08-21 11:54:57.960 [error] [
  'Failed to check whether to display prompt for conda inherit env setting, Class name = v, completed in 206ms, has a falsy return value, Arg 1: <Uri:/Users/corneliusromer/code/loculus>, Return Value: undefined',
  [s [Error]: Failed to resolve env "/Users/corneliusromer/micromamba/envs/py12"
  	at ae (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1966677)
  	at oe (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1964637)
  	at Immediate.<anonymous> (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1960931)
  	at process.processImmediate (node:internal/timers:478:21)] {
    code: -4,
    data: undefined
  }
]
2024-08-21 11:54:57.960 [error] [
  'getActivatedEnvironmentVariables, Class name = D, completed in 206ms, has a falsy return value, Arg 1: <Uri:/Users/corneliusromer/code/loculus>, Arg 2: undefined, Arg 3: undefined, Arg 4: "/bin/zsh"',
  [s [Error]: Failed to resolve env "/Users/corneliusromer/micromamba/envs/py12"
  	at ae (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1966677)
  	at oe (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1964637)
  	at Immediate.<anonymous> (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1960931)
  	at process.processImmediate (node:internal/timers:478:21)] {
    code: -4,
    data: undefined
  }
]
2024-08-21 11:54:57.960 [error] Failed to apply terminal env vars undefined [s [Error]: Failed to resolve env "/Users/corneliusromer/micromamba/envs/py12"
	at ae (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1966677)
	at oe (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1964637)
	at Immediate.<anonymous> (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1960931)
	at process.processImmediate (node:internal/timers:478:21)] {
  code: -4,
  data: undefined
}
2024-08-21 11:54:57.960 [error] Python Extension: interpreterManager.refresh [s [Error]: Failed to resolve env "/Users/corneliusromer/micromamba/envs/py12"
	at ae (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1966677)
	at oe (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1964637)
	at Immediate.<anonymous> (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1960931)
	at process.processImmediate (node:internal/timers:478:21)] {
  code: -4,
  data: undefined
}
2024-08-21 11:54:57.960 [error] [
  'Failed to intialize conda inherit env prompt, Class name = v, completed in 207ms, has a falsy return value, Arg 1: <Uri:/Users/corneliusromer/code/loculus>, Return Value: undefined',
  [s [Error]: Failed to resolve env "/Users/corneliusromer/micromamba/envs/py12"
  	at ae (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1966677)
  	at oe (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1964637)
  	at Immediate.<anonymous> (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1960931)
  	at process.processImmediate (node:internal/timers:478:21)] {
    code: -4,
    data: undefined
  }
]
2024-08-21 11:54:57.960 [error] [
  'Failed to activate a workspace, Class name = m, completed in 389ms, has a falsy return value, Arg 1: <Uri:/Users/corneliusromer/code/loculus>, Arg 2: {"started":1724234097480}, Return Value: undefined',
  [s [Error]: Failed to resolve env "/Users/corneliusromer/micromamba/envs/py12"
  	at ae (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1966677)
  	at oe (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1964637)
  	at Immediate.<anonymous> (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1960931)
  	at process.processImmediate (node:internal/timers:478:21)] {
    code: -4,
    data: undefined
  }
]
2024-08-21 11:54:57.960 [error] Failure during activation. [s [Error]: Failed to resolve env "/Users/corneliusromer/micromamba/envs/py12"
	at ae (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1966677)
	at oe (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1964637)
	at Immediate.<anonymous> (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1960931)
	at process.processImmediate (node:internal/timers:478:21)] {
  code: -4,
  data: undefined
}
2024-08-21 11:54:57.960 [error] sendStartupTelemetry() failed. [s [Error]: Failed to resolve env "/Users/corneliusromer/micromamba/envs/py12"
	at ae (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1966677)
	at oe (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1964637)
	at Immediate.<anonymous> (/Users/corneliusromer/.vscode/extensions/ms-python.python-2024.13.2024082001-darwin-arm64/out/client/extension.js:2:1960931)
	at process.processImmediate (node:internal/timers:478:21)] {
  code: -4,
  data: undefined
}
2024-08-21 11:54:58.054 [info] Conda environment manager found at: /opt/homebrew/Caskroom/miniforge/base/bin/conda
2024-08-21 11:54:58.575 [info] Conda environment manager found at: /opt/homebrew/Caskroom/miniforge/base/envs/mambabug/bin/conda
2024-08-21 11:54:58.688 [info] Conda environment manager found at: /opt/homebrew/Caskroom/miniforge/base/envs/pangolin/bin/conda
2024-08-21 11:54:58.748 [info] Conda environment manager found at: /opt/homebrew/Caskroom/miniforge/base/envs/mamba-dev/bin/conda
2024-08-21 11:54:58.751 [info] Conda environment manager found at: /Users/corneliusromer/miniforge3/bin/conda
2024-08-21 11:54:58.753 [info] Conda environment manager found at: /Users/corneliusromer/Miniforge3/bin/conda
2024-08-21 11:54:58.757 [info] Conda environment manager found at: /Users/corneliusromer/micromamba/envs/smithy/bin/conda
2024-08-21 11:54:58.769 [info] Conda environment manager found at: /opt/homebrew/Caskroom/miniforge/base/envs/py11-64/bin/conda
2024-08-21 11:54:58.769 [info] Conda environment manager found at: /Users/corneliusromer/code/tsv-utils-feedstock/miniforge3/bin/conda
2024-08-21 11:54:58.772 [info] Conda environment manager found at: /opt/homebrew/Caskroom/miniforge/base/envs/general/bin/conda
2024-08-21 11:54:58.777 [info] Conda environment manager found at: /Users/corneliusromer/micromamba/envs/pango3116/bin/conda
2024-08-21 11:54:58.779 [info] Conda environment manager found at: /Users/corneliusromer/micromamba/envs/snakemake-test/bin/conda
2024-08-21 11:54:58.783 [info] Conda environment manager found at: /Users/corneliusromer/micromamba/envs/pango402/bin/conda
2024-08-21 11:54:58.784 [info] Conda environment manager found at: /Users/corneliusromer/micromamba/envs/vcftools-build/bin/conda
2024-08-21 11:54:58.785 [info] Conda environment manager found at: /Users/corneliusromer/micromamba/envs/bioconda/bin/conda
2024-08-21 11:54:58.786 [info] Conda environment manager found at: /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain-base/bin/conda
2024-08-21 11:54:58.787 [info] Conda environment manager found at: /Users/corneliusromer/micromamba/envs/bioconda-utils/bin/conda
2024-08-21 11:54:58.799 [info] Conda environment manager found at: /Users/corneliusromer/code/conda-base/.dev-env/bin/conda
2024-08-21 11:54:58.804 [info] Conda environment manager found at: /opt/homebrew/Caskroom/miniforge/base/envs/nextstrain/bin/conda
2024-08-21 11:54:58.829 [info] Conda environment manager found at: /opt/homebrew/Caskroom/miniforge/base/envs/py11/bin/conda
2024-08-21 11:54:58.833 [info] Native locator: Refresh finished in 1313 ms

Metadata

Metadata

Assignees

Labels

area-native-locatorIssues with Rust based python locatorbugIssue identified by VS Code Team member as probable bugexperimentingFeature is part of an experimentregressionBug didn't exist in a previous releasetriage-neededNeeds assignment to the proper sub-teamverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions