You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
On Windows, a relative command with / is looked up in the PATH instead of the working directory #1896
Since #1693, a command without a path is looked up in the PATH of the working directory's environment. On Windows, a relative command with /, such as bin/server.cmd, also counts as a command without a path, so it can start a file from a PATH directory instead of the one relative to the working directory.
How it happens
CommandUtils.resolveExecutable checks only File.separatorChar, which is \ on Windows:
if (executable.indexOf(File.separatorChar) != -1) {
// A path to the executable, which the platform doesn't look up either
return;
So findInWindowsPath looks up bin/server.cmd in each directory of the PATH, as new File(directory, "bin/server.cmd"). If one of them happens to have a bin\server.cmd, that one starts. An absolute path like C:/tools/node.exe goes the same way, but it isn't found in a PATH directory, so it stays as it is.
The platform's own lookup up to 2026.2 checks File.separatorChar only too, so this isn't new in the lookup itself. The 2026.3 platform checks both characters:
Activity