Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple errors when running init.bat #2049

Closed
1 of 3 tasks
TristanCottam opened this issue Feb 25, 2019 · 10 comments
Closed
1 of 3 tasks

Multiple errors when running init.bat #2049

TristanCottam opened this issue Feb 25, 2019 · 10 comments

Comments

@TristanCottam
Copy link

Purpose of the issue

  • 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.
@daxgames
Copy link
Member

daxgames commented Mar 1, 2019

Did you follow our VSCode Wiki

@TristanCottam
Copy link
Author

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

@daxgames
Copy link
Member

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

@TristanCottam
Copy link
Author

I'm running version 1.3.6.678 on Windows 10

@daxgames
Copy link
Member

@happy-sadan have you tried the latest release?

@TristanCottam
Copy link
Author

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.

@daxgames
Copy link
Member

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.

@TristanCottam
Copy link
Author

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.

@daxgames
Copy link
Member

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

@RoyLarson
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants