Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
As a long term user, I've been suffering from a serious bug of Console2:
Despite the fact that Win Vista/7 have significantly longer string length for environment variables,
Console keeps using 1024. And this has caused various problems e.g., truncation of %PATH%.
Can someone find a way to fix it?
I tried to rebuild Console myself, but I keep getting this missing FreeImagePlus.dll issue even though
I've had that dll under the exe folder…
I cannot find 1024 limitation anywhere in Console's code. Could you please provide a scenario that would show 1024 limit?
For me the limit is 1070 which is a really annoying as I have a lot of things in my path which I need to use.
I too can't see anything in the code which would be limiting the path so I am quite confused as to what's wrong.
Have a look here:
In normal cmd my full path is shown, it's just inside Console2 that it isn't so unfortunately I don't think the article can't help this problem.
Is only PATH shortened, or does the limit apply to other environment variables as well?
I've just created a variable TMPVAR and stuck my path in it and it's not being shortened so it's only the PATH variable.
In this case, the interesting question is not, why it is shortened under Console, but why it is NOT shortened when running in a normal command Window. If I understand your original posting correct, you are using Vista or 7. Now Microsoft says that shortening the PATH is the expected behaviour. From http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/how-to-make-the-path-enviornment-variable-longer/fa1a19ad-4e66-446f-ad97-cc35fdcb8641?auth=1 :
The PATH environment variable has a fixed limit of 1023 usable characters. There does not appear to be a way to extend this.
This was responded by a Microsoft Support Engineer. Hence, how unfortunate this silly restriction might be, it is not something where Console could help….
What is odd is how Console sees it as 1070 characters and not 1023 and cmd sees it as >1070…
Strange… Cant reproduce the problem in my Windows 7 x64.
Path var is 2310 chars long on my system
and cmd.exe, started in Console or ConEmu, shows full variable length.
Are you using a x64 bit build by any chance?
I wonder if it's the fact I'm using 32bit Console2…
No. Checked both 32 and 64 bit versions. Works fine.
That's really bizzare…
I wonder what is causing this for the OP and me…
To add to this post, I have recently noticed my path is now working properly (over 1024) characters in console2 too.
I think the fix was to manually edit my path and just click OK. No idea why *shrugs*.