-
Notifications
You must be signed in to change notification settings - Fork 165
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
winpty: error: cannot start 'mvn': Not found in PATH #138
Comments
How about executing with the |
Yes it does work, thanks! Can someone explain why mvn.cmd works but mvn and mvn.exe don't? |
Under cygwin, the same behavior occurs with node.js components
There's probably no
|
I see, thanks for the explanation. It's still kinda weird behaviour and perhaps not so intuitive, what do you think should be done about this ticket @wulph111 ? Close as a non-bug? |
I'd leave it open for @rprichard to decide.. it's confusing behavior but maybe necessary. I don't know enough to say if it can be "fixed" -- I'm only here because I had the same problem :) |
Shouldn't winpty respect the PATH_EXT environment variable?
|
A bit silly, but does anyone know what is going on here:
miha@DESKTOP-CEC4TIT MINGW64 ~
$ mvn --version
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T09:58:13+02:00)
Maven home: C:\Users\miha\Dev\maven\3.5.2
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_161\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
miha@DESKTOP-CEC4TIT MINGW64 ~
$ winpty mvn --version
winpty: error: cannot start 'mvn': Not found in PATH
miha@DESKTOP-CEC4TIT MINGW64 ~
$ winpty which mvn
/c/Users/miha/Dev/maven/3.5.2/bin/mvn
Quite obviously mvn is on the path, works with Command Prompt and Git Bash (but cannot be interrupted), but when used via winpty it's apparently not on the path? Does winpty use a different path variable or something?
The text was updated successfully, but these errors were encountered: