question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error "The input line is too long" when running vcvarsall.bat in a conda environment

See original GitHub issue

Hi there,

I’m facing a rather annoying issue trying to compile a C++ program in a conda environment. Usually, I would call vcvarsall.bat with right args to set up the development environment for Visual Studio. However, since I’ve updated from goanpeca/setup-miniconda@v1 to conda-incubator/setup-miniconda@v2 this no longer works and I encounter the following error:

The input line is too long.
The syntax of the command is incorrect.

You can see here a run that illustrates the problem. I’ve tried several things, such as switching to Powershell (but still need to call vcvarsall.bat via cmd), or putting the whole line into quotes, but these did not work. When I comment out the conda env from the github action then things work again, so I think the combination of conda + vcvarsall.bat is exceeding some limit in an env variable somewhere…

Any idea what might have changes between v1 and v2 that would explain the error now?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
bollwyvlcommented, Dec 30, 2020

Huzzah! Maybe we add the prefix thingy anyway, as eventually something is going to need those extra ten characters to not break for other reasons on windows.

0reactions
jaimergpcommented, Jan 2, 2021

I think we need that dir in PATH for mamba

Read more comments on GitHub >

github_iconTop Results From Across the Web

vcvarsall.bat reports "The input line is too long" if run repeatedly
When invoked from a developer command prompt, vcvarsall.bat works for the first few times, and then starts failing. ... The input line is...
Read more >
"Input line is too long" error in BAT File - Stack Overflow
My solution was to add an if defined check on an environment variable which I know is set by vcvarsall.bat... if not defined...
Read more >
vcbuild.bat fails with "input line too long" · Issue #13765 - GitHub
Running vcbuild.bat appends data to the PATH environment variable. After several runs, the value of the variable becomes so long that VC batch ......
Read more >
Python Integration with environment: The input line is too long
If I run the bat via cmd I get the same error as in knime while it takes a long time (30 sec)...
Read more >
Release notes — conda-build 3.23.3+0.g20b08017.dirty ...
Add opt-in environment variable to run conda in isolated mode ( python -I ... rewrite long prefix paths as $PREFIX, etc. for more...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found