Cmder: Multiple errors when running init.bat

Created on 25 Feb 2019  ·  10Comments  ·  Source: cmderdev/cmder

Purpose of the issue

  • [x] Bug report (encountered problems/errors)
  • [ ] Feature request (request for new functionality)
  • [ ] Question

Description of the issue


I was trying to make Visual Studio Code use Cmder as its terminal, which requires running vendor\init.bat.

At first I wasn't having any issues, but soon enough, every time I tried running vendor\init.bat, whether in VS Code or in Command Prompt, I got the following errors :

The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
'debug-output' is not recognized as an internal or external command,
operable program or batch file.
'debug-output' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
'debug-output' is not recognized as an internal or external command,
operable program or batch file.
'read_version' is not recognized as an internal or external command,
operable program or batch file.
'validate_version' is not recognized as an internal or external command,
operable program or batch file.
'enhance_path_recursive' is not recognized as an internal or external command,
operable program or batch file.
'enhance_path' is not recognized as an internal or external command,
operable program or batch file.
'run_profile_d' is not recognized as an internal or external command,
operable program or batch file.
Creating initial user-aliases store in "C:\Users\trist\Google^ Drive\Software\cmder\config\user-aliases.cmd"...
The system cannot find the path specified.
The system cannot find the path specified.
'debug-output' is not recognized as an internal or external command,
operable program or batch file.
Creating user startup file: "C:\Users\trist\Google^ Drive\Software\cmder\config\user-profile.cmd"
The system cannot find the path specified.

Most helpful comment

Another program overwrote a setting for me that took a little while to find and I am hoping this helps someone else.
In the Settings->Integration->ComSpec
at the bottom section there was a value in
image
when I cleared that value all of the "The system cannot find the path specified" error disappeared.

All 10 comments

Did you follow our VSCode Wiki

Yes, but it doesn't matter, as I said I get the same error whether I use VS Code or a terminal

What version of Cmder. I just opened cmd.exe changed to the Cmder folder and ran vendor\init.bat. All works as expected.

I'm running version 1.3.6.678 on Windows 10

@happy-sadan have you tried the latest release?

I have now, same problem. But the last error message, i.e. "Creating user startup file", seems to be pointing to where I first installed Cmder, not it's current directory.

I don't see how that's possible its portable software it should work on any windows system the same way for everyone.

Do you have an environment variable called cmder_root set outside Cmder in Windows?

Open cmd.exe and type set cmder if anything comes back set each to nothing like:

set cmder_root=
set cmder[whatever]=

Then change to path you expanded Cmder to and type vendor\init.bat.

If the above works delete the environment variables from Windows. If you don't know how Google setting environment variables windows 10.

I kept trying to find a fix without success, until Windows forced an update on me, which apparently made it work. The only difference I could notice from before was that the CMDER_ROOT user variable was finally pointing to the current Cmder directory, as opposed to the old one (which I forgot to mention before, sorry about that), which was seemingly causing the error.

The reason I couldn't fix this earlier was that when I tried to edit the CMDER_ROOT user variable, then restarted my system, it would reset to the old path where I installed Cmder, which contained a space.

Glad its working FWIW the space in the path shouldn't matter I use it that way every day.

Another program overwrote a setting for me that took a little while to find and I am hoping this helps someone else.
In the Settings->Integration->ComSpec
at the bottom section there was a value in
image
when I cleared that value all of the "The system cannot find the path specified" error disappeared.

Was this page helpful?
0 / 5 - 0 ratings