[bug] [windows] virtualrunenv: The input line is too long
See original GitHub issueEnvironment Details (include every applicable attribute)
- Operating System+version: Windows
- Compiler+version: MSVC 142
- Conan version: 1.34.1
- Python version: 3.8
Steps to reproduce (Include if Applicable)
Use conanfile with lots of dependencies.
*conanfile.txt*
[requires]
glib/2.68.3
openssl/1.1.1i
aeron/1.31.2
ags/6.0
alac/cci.20121212
andreasbuhr-cppcoro/cci.20210113
argtable3/3.2.0
arcus/4.9.1
argtable2/2.13
arrow/2.0.0
amqp-cpp/4.3.11
atk/2.36.0
assimp/5.0.1
aws-c-event-stream/0.1.5
aws-c-common/0.4.25
backward-cpp/1.5
argon2/20190702
baical-p7/5.6
bdwgc/8.0.4
bliss/0.73
aws-sdk-cpp/1.8.130
box2d/2.4.1
aws-checksums/0.1.5
asmjit/cci.20210306
butteraugli/cci.20190319
asyncplusplus/1.1
botan/2.18.1
brotli/1.0.9
boost/1.76.0
capstone/4.0.2
cargs/1.0.0
c-ares/1.17.1
cgns/3.4.1
chipmunk2d/7.0.3
cassandra-cpp-driver/2.15.3
celero/2.6.0
ccfits/2.5
cgltf/1.9
cfitsio/3.490
cmp/19
ceres-solver/2.0.0
cjson/1.7.14
charls/2.1.0
civetweb/1.14
clipper/6.4.2
cppbenchmark/cci.20201029
cnpy/cci.20180601
cppserver/1.0.0.0
cpp-optparse/cci.20171104
corrade/2020.06
cpu_features/0.6.0
cppunit/1.15.1
cppcommon/cci.20201104
cunit/2.1.3
crc32c/1.1.1
cspice/0066
cpprestsdk/2.10.18
cwalk/1.2.5
cryptopp/8.5.0
dav1d/0.8.1
date/3.0.1
dcmtk/3.6.6
duktape/2.5.0
double-conversion/3.1.5
cpr/1.6.2
docopt.cpp/0.6.3
Install binaries for that conanfile:
> conan install conanfile.txt -if conan-vc142 -s os=Windows -s compiler.version=16 -s build_type=Release -o *:shared=True -g virtualrunenv -r conan-center
Call created environment bat:
> conan-vc142/activate_run.bat
The input line is too long.
The problem is in PATH=
env variable that gets filled with paths to every bin/
directory containing .dll
files from installed libraries. activate_run.ps1
does not have this problem:
PS Y:\> .\conan-vc142\activate_run.ps1
(conanrunenv) PS Y:\>
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (10 by maintainers)
Top Results From Across the Web
What to do with "The input line is too long" error message?
The real solution is to workaround a very old bug in Windows APIs: _popen() and _wpopen(). If you ever use quotes during the...
Read more >Python Integration with environment: The input line is too ...
I can run the script from the a cmd window and it immediately shows a python prompt form the correct environment.
Read more >the input line is too long. Exited with code 255 (1.4.31130.0)
With the new version appending the full path to the command line you may encounter the error message. the input line is too...
Read more >Troubleshooting AWS CLI errors
General troubleshooting to try first. If you receive an error or encounter an issue with the AWS CLI, we suggest the following general...
Read more >Installing packages using pip and virtual environments
virtualenv is used to manage Python packages for different projects. ... As long as your virtual environment is activated pip will install packages...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have not yet, but the mentioned fix was simply about removing extra envvars. The original problem comes from a single envvar being too long - AFAIK this is yet to be changed.
https://github.com/conan-io/conan/pull/9678 this a first step to start reducing this issue impact. Just a start, we will keep trying other strategies to keep reducing this.