Repository navigation
Pylance crash at making .env directory #994
Description
Activity
github-actions commented
on Jul 24, 2025 on Jul 24, 2025 – with GitHub Actions · Hidden as off-topicshow commentMore actionsあいうえお (@aiueo-1234), I wasn't able to reproduce this with the instructions you provided above. Are you able to reproduce this issue on demand? If so, can you please reproduce it and then provide the contents of your "Python Language Server" log from the VS Code Output tab?
I'd also be curious to know if setting
python.useEnvironmentsExtensionto false fixes the behavior you are seeing.Yes, I can do that. "Python Language Server" log is below.
2025-07-25 15:09:48.307 [info] Error: Request workspace/configuration failed with message: Error: EISDIR: illegal operation on a directory, read at bI (/home/aiueo-1234/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1744971) at sI (/home/aiueo-1234/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1743129) at Immediate.<anonymous> (/home/aiueo-1234/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1739415) at processImmediate (node:internal/timers:485:21) 2025-07-25 15:09:48.452 [info] [Error - 3:09:48 PM] Server process exited with code 1. 2025-07-25 15:09:48.455 [info] [Error - 3:09:48 PM] Pylance has crashed 5 times in the last 3 minutes. Pylance will not be restarted. Please check [this link](https://aka.ms/AApf7ox) for more details.Also, as you said, if I set
python.useEnvironmentsExtensionto false, the error no longer occurs.Reacted by Erik De Bonte- addedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
on Jul 25, 2025 Eleanor Boyd (@eleanorjboyd), FYI. I'm not sure if this should be transferred to https://github.com/microsoft/vscode-python-environments, or if this is a Pylance issue.
- addedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
on Nov 14, 2025 transferring now as behavior changes with changes to the setting. あいうえお (@aiueo-1234) are you still facing problems? We have upgraded a lot of behavior on the extension since this point in July. Let me know and I can investigate further if you are still having problems!
- addedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Nov 14, 2025 I have now confirmed that this issue no longer occurs if I set
python.useEnvironmentsExtensionto true. Thank you.Reacted by Eleanor Boyd- removedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Nov 17, 2025 - locked as resolved and limited conversation to collaborators
on Apr 29, 2026
Type: Bug
.envdirectory at workspace root directoryExtension version: 2025.6.2
VS Code version: Code 1.102.2 (c306e94f98122556ca081f527b466015e1bc37b0, 2025-07-22T12:15:48.520Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Remote OS version: Linux x64 6.6.87.2-microsoft-standard-WSL2
System Info
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
A/B Experiments