-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
vcbuild.bat fails with "input line too long" #13765
Copy link
Copy link
Closed
Labels
buildIssues and PRs related to Node.js builds or CI infrastructure.Issues and PRs related to Node.js builds or CI infrastructure.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
Activity
Metadata
Metadata
Assignees
Labels
buildIssues and PRs related to Node.js builds or CI infrastructure.Issues and PRs related to Node.js builds or CI infrastructure.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Running
vcbuild.batappends data to thePATHenvironment 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:
This answer might offer a solution to the problem:
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.