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

${env:path} not evaluted in "terminal.integrated.env.windows" if ${workspaceFolder} doesn’t exist #233495

Open
Fred-Vatin opened this issue Nov 9, 2024 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug confirmation-pending terminal-process Problems launching processes, managing ptys, exiting, process leaks, etc.
Milestone

Comments

@Fred-Vatin
Copy link

Fred-Vatin commented Nov 9, 2024

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

  • VS Code Version: 1.95.2
  • OS Version: Windows 10 22H2

Steps to Reproduce:

Using this settings when opening VSCode with no folder opened in it.

  "terminal.integrated.defaultProfile.windows": "PowerShell",
  "terminal.integrated.env.windows": {    
    "PATH": "${workspaceFolder}\\node_modules\\.bin;${env:path}"
  },

will result:
Image
because ${workspaceFolder} doesn’t exist.

Using something like "PATH": "c:\\any\\other\\path\\bin;${env:PATH}" will work fine.

Suggestion

If ${workspaceFolder} can not be evaluated, pass it as a string and continue to try to evaluate other variables in "PATH".

@meganrogge meganrogge added bug Issue identified by VS Code Team member as probable bug confirmation-pending labels Nov 12, 2024
@meganrogge meganrogge added terminal-process Problems launching processes, managing ptys, exiting, process leaks, etc. and removed confirmation-pending labels Dec 11, 2024
@meganrogge meganrogge removed their assignment Dec 11, 2024
@Tyriar Tyriar added this to the Backlog milestone Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug confirmation-pending terminal-process Problems launching processes, managing ptys, exiting, process leaks, etc.
Projects
None yet
Development

No branches or pull requests

3 participants