Skip to content

Environment variables in path are not expanded in integrated terminal or Code-launched command prompt #26048

@rummelsworth

Description

@rummelsworth
  • VSCode Version: 1.12.1
  • OS Version: Windows 10 Pro 1607 14393.969

Steps to reproduce

  1. Have node installed and on your path.
  2. Launch integrated terminal (PowerShell).
  3. Type node, press enter.

The terminal output is node : The term 'node' is not recognized [...].

Recognition of node still fails if I instead first enter cmd (which works and opens a subshell) and try it there.

More details

Also occurs for npm and nvm, but not for git. Built-ins and other standard things (like dir, cmd, notepad, etc) work fine.

I use nvm-windows. It's managing 7.4.0 and 7.9.0 for me. This behavior happens when using either.

Was occurring in non-integrated CMD and PS terminals until I restarted my computer. After restarting my computer, non-integrated terminals do not show this behavior (and so are a workaround for me right now). I had not restarted my computer since initially updating from 1.11 to 1.12.0 a few days ago, and I hadn't tried any of this since before that.

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions