Skip to content

[error] Unable to find workspace for given file #25101

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

Open
hunterhogan opened this issue May 22, 2025 · 3 comments
Open

[error] Unable to find workspace for given file #25101

hunterhogan opened this issue May 22, 2025 · 3 comments
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@hunterhogan
Copy link

Type: Bug

Behaviour

pytest Discovery Error

Steps to reproduce:

  1. Uninstall VS Code Insiders.
  2. Delete VS Code Insiders related files in appdata.
  3. Install VS Code Insiders.
  4. Update VS Code Insiders.
  5. Install Python, Pylance, Copilot, and nothing else.
  6. Don't change any settings unless offered in a dialoge box.
  7. Try to use VS Code.

Diagnostic data

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

XXX

Identifier
ms-python.python
Version
2025.6.1
Last Updated
2025-05-21, 19:14:52

Identifier
ms-python.vscode-pylance
Version
2025.5.1
Last Updated
2025-05-21, 19:14:52

Identifier
github.copilot
Version
1.323.0
Last Updated
2025-05-21, 19:27:46

Identifier
github.copilot-chat
Version
0.28.2025052101
Last Updated
2025-05-21, 19:27:46

Version: 1.101.0-insider (user setup)
Commit: 496ebc4723371f29c9ffa0319dcccb2d7bee7ee0
Date: 2025-05-21T05:04:29.987Z
Electron: 35.4.0
ElectronBuildId: 11602177
Chromium: 134.0.6998.205
Node.js: 22.15.0
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.26100

see next comment for logs

Extension version: 2025.6.1
VS Code version: Code - Insiders 1.101.0-insider (496ebc4723371f29c9ffa0319dcccb2d7bee7ee0, 2025-05-21T05:04:29.987Z)
OS version: Windows_NT x64 10.0.26100
Modes:

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


languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

Installed Extensions
Extension Name Extension Id Version
copilot Git 1.323.0
copilot-chat Git 0.28.2025052101
js-debug ms- 1.100.1
js-debug-companion ms- 1.1.3
python ms- 2025.6.1
vscode-js-profile-table ms- 1.0.10
vscode-pylance ms- 2025.5.1
System Info
Item Value
CPUs AMD Ryzen 7 5700U with Radeon Graphics (16 x 1797)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 12.90GB (3.66GB free)
Process Argv --crash-reporter-id 1ffa83f2-6d65-4589-b9e5-f941a87a12e2
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551:31249597
vscod805cf:30301675
c4g48928:30535728
962ge761:30841072
dsvsc014:30777825
dsvsc015:30821418
h48ei257:31000450
pythontbext0:30879054
cppperfnew:30980852
dwnewjupyter:31046869
pythonrstrctxt:31093868
nativeloc1:31118317
e80f6927:31120813
dwcopilot:31158714
5b1c1929:31184661
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
g012b348:31231168
pythoneinst12:31251391
bgtreat:31252123
c7cif404:31309980
pythonpulldiag:31287486
6gi0g917:31259950
61ibe868:31282443
996jf627:31264550
pythonrdcb7:31268811
usemplatestapi:31297334
e6194696:31309975
747dc170:31275146
pythonfullctx:31296836
6518g693:31302842
pylancecolor:31288664
generatesymbolt:31280541
convertfstringf:31280702
gendocf:31280703
pylancequickfixt:31311477
ajf51753:31312179
923gi514:31310909
b99bg931:31306656
a2ijf515:31307742
convertlamdat:31311571

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label May 22, 2025
@hunterhogan
Copy link
Author

every.log

@hunterhogan
Copy link
Author

Image

@hunterhogan
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants