Skip to content

"Unable to resolve your shell environment in a reasonable time. Please review your shell configuration and restart." #252431

Closed
@conioh

Description

@conioh

Does this issue occur when all extensions are disabled?: Yes

Version: 1.101.2 (user setup)
Commit: 2901c5a
Date: 2025-06-24T20:27:15.391Z
Electron: 35.5.1
ElectronBuildId: 11727614
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.22631

Steps to Reproduce:

  1. Launch VSCode.
  2. Wait a few seconds.
  3. Get the following message:

Unable to resolve your shell environment in a reasonable time. Please review your shell configuration and restart.

  1. I've tried to modify the timeout to the maximum - 120s - and I still get it. I do have a heavy profile that takes 2s-8s to load, according what pwsh reports, but not 120. I don't know why the pwsh you're launching get stuck for 120, but I don't really care and it doesn't really matter because:
  2. I'm not interested in "reviewing" and modifying my pwsh profile just for VSCodes' sake, as the documentation says I should.
    There's no reason I should modify my entire profile just because VSCode does something really weird.
  3. The original reason I could find for this "feature" is basically "some users have one setting for certain environment variables (e.g. TMPDIR) and override that value in their .xyzshrc file, and that breaks all kinds of stuff under certain circumstances". Nice problem, not nice solution. It's so intrusive and causes so many problems that it should really have given pauses to whoever was responsible for that. But regardless of that:
  4. Even if that's the solution that was decided upon, for good reasons or bad or even no reasons at all, there should be a configuration to stop it. Not a command-line argument. Just give me a configuration (that syncs across devices using settings sync) that says "don't ever do that whole "resolve shell environment thing", I want none of that."
    I think it's both easier and more useful than trying to understand why VSCode waits 120s for something that usually takes about 3s on a specific configuration.

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)triage-needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions