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
vcbuild.bat fails with "input line too long" #13765
Running vcbuild.bat appends data to the PATH environment variable. After several runs, the value of the variable becomes so long that VC batch files crash with an error message saying "Input line is too long", which is not really surprising considering the relatively small limit of about 8k for command lines on Windows.
This line calls a number of batch scripts which configure the environment to use the VS2015 toolchain:
call"%VS140COMNTOOLS%\..\..\vc\vcvarsall.bat"
This answer might offer a solution to the problem:
ifnotdefined DevEnvDir (
call vcvarsall.bat
)
However, I am not too familiar with VC-internal batch files and have no idea about side-effects or alternatives, so any insights would be useful here.
@seishun was able to reproduce this on VS2015, but not on VS2017.
Activity
tniessen commentedon Jun 18, 2017
/cc @nodejs/platform-windows
seishun commentedon Jun 18, 2017
cc @refack
refack commentedon Jun 20, 2017
This is a regression introduced in 780acc2.
A fix PR is coming.
build,win: skip `vcvarsall.bat` if env is set
build,win: skip `vcvarsall.bat` if env is set
build,win: skip `vcvarsall.bat` if env is set
build,win: skip `vcvarsall.bat` if env is set