cmderdev/cmder

Aliases not recognized + system can't find path specified

hesammoosapour opened this issue ยท 14 comments

Version Information

Cmder version:1.3.24.236
Operating system:Windows 11

Cmder Edition

Cmder Mini

Description of the issue

  1. When I open a new bash console, it throws error, that system can't find path specified!

I deleted the Autorun in here:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor
I also added CMDER_ROOT for my user and in path as well:

But it still shows the same error!

2)In addition source is not recognized as a command!!

Please tell me how to fix them.๐Ÿ™

How to reproduce

No response

Additional context

image

Checklist

  • I have read the documentation.
  • I have searched for similar issues and found none that describe my issue.
  • I have reproduced the issue on the latest version of Cmder.
  • I am certain my issues are not related to ConEmu, Clink, or other third-party tools that Cmder uses.

There is not a lot to go on here. I don't understand the screenshot you provided.

%cmder_root% is not required in the path unless you want it in the path for some reason.

Can you provide a screenshot of the actual error?

@daxgames When I am trying to open a new bash, this error comes up:
image

I don't know what that is it looks like you're running something that you created that's throwing an error

Can you download a new zip file from the cmder GitHub releases and expand it into a different folder and run it without modifying it any way.

It looks like the Cmder init is done and it's trying to run your profile that you've specified.

Also, that error is not coming from bash. But you said your intent was to start bash. So it looks like something is wrong about your configuration, or about how you're starting bash (you haven't shared any information about how you're trying to start bash, and those details can be very important).

So I wonder: did you add some bash commands into a cmd startup script by mistake? Cmd and bash are very different shells, and they can't be treated interchangably.

If you share more specific details about what you're doing, how you're doing it, and what configuration you've performed then that could enable to people to quickly help, without needing to spent a lot of their personal time trying to make guesses and ask questions. The easier you make it for people to help, the more likely it is that they may try.

Here is an article that helped me learn how to make it easy for people to help me when I need help:
http://www.catb.org/~esr/faqs/smart-questions.html

This is newest version that I downloaded from cmder site.
https://hesammoosapour.ir/cmder.mp4

Are you using cmder mini? Or cmder full?

I think you must be using cmder mini, which does not include bash.
UPDATE: Ah, I see in the original report that you stated you are using Cmder Mini.
That is the cause of the problem -- bash is not included in Cmder Mini.

The {bash::bash} task (and all the bash tasks) only work in cmder full.

Go to Settings > Startup > Tasks > {bash::bash}, and look in the bottom right text box.
It tries to run %ConEmuDir%\..\git-for-windows\git-cmd.exe, which only exists in cmder full.

set "PATH=%ConEmuDir%\..\git-for-windows\usr\bin;%PATH%" & %ConEmuDir%\..\git-for-windows\git-cmd.exe --no-cd --command=%ConEmuBaseDirShort%\conemu-msys2-64.exe "%ConEmuDir%\..\git-for-windows\usr\bin\bash.exe" --login -i

Good catch - I didn't see it either.

Future versions of Cmder Mini will be able to launch external git bash.

The problem is even when I am working with cmder full, I still get the same error:
image

Also it doesn't recognizes commands like : source
image

@hesammoosapour The screenshots you have shown of running consoles do not come from the screenshots of the Cmder bash tasks you have shown. The running xonsoles are ALL cmd.exe.

The only Task that matches the running Console is the custom one you created and even it is not bash it is cmd.exe so commands like source would not work since source is a bash command.

bash sessions will NEVER have C:\ in the prompt path. bash prompt paths begin with /.

What is out putting the 'Hello to the creator of these aliases...'?

What is running from the %cmder_root%/config/profile.d that is producing an error we can't see it because your ConEmu Settings window covers it?

NONE of that came with the Cmder you downloaded.

I assure you the bash tasks wor[ as configured. I use them regularly.

We cannot fix what is wrong in your config. We cannot even assist without accurrate and complete data from you.

Do you have git installed outside cmder? If so how was it installed?

Output of where git?

I installed the full version again, and now it is working awesomly.

Here are my snippets for my custom bash admin:

  • -cur_console:d:"F:\Old Drive C\xampp\htdocs\StockDesign" -cur_console:t:MainBelfi -cur_console:C:C:\cmder\icons\cmder.ico set "PATH=%ConEmuDir%..\git-for-windows\usr\bin;%PATH%" & %ConEmuDir%..\git-for-windows\git-cmd.exe --no-cd --command=%ConEmuBaseDirShort%\conemu-msys2-64.exe "%ConEmuDir%..\git-for-windows\usr\bin\bash.exe" --login -i

Thanks to everyone specially @daxgames ๐Ÿค—๐Ÿ˜๐Ÿ™

Glad to hear it.