-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Default bash tasks in ConEmu don't work in mini installations #1497
Comments
%GIT_INSTALL_ROOT% is not set at that time though :/ |
@Stanzilla is |
Yeah, we set it in init.bat |
@Stanzilla @daxgames How about not specifying anything, and launch I mean should the user have installed any other bash (WSL, msys2, Cygwin) without a Git, it should run that too. |
The default bash task is designed to work with vendored git. So the path is correct and required. We can't launch a get that we have not discovered yet and so far the only Discovery we have is in the Annette. Bat for command sessions so I don't know what to say. |
why don't the users that want to use mini just edit the task to point to their own Bash |
@daxgames We should devise a plan on Cmder first launch:
How about it? |
That would mean we have to change the file during the build process and make that way more complex, no? |
@Stanzilla not necessary on build time, it can be done on runtime. On each startup, if bash is not found in the predefined path, the item should disappear. I personally prefer not to have unnecessary changes between the full and minimal version, and keep the differences to a minimal. |
Yeah agree |
@drdavidsoft I think that all sounds great but how do intend on making this first launch magic happen? And it does not have to be done each time under starts, just the first time. |
@daxgames It can easily be made from a sample file, if the user file does not exist then make a user config from the sample. However, I do strongly recommend checking before each startup, or at least giving the user an option to rebuild it manually. Think of a scenario when user installs Cmder mini then proceeds to install WSL or msys2. (P.S. my username is DR S David Soft) |
@DRSDavidSoft That means maintaining two different 'default' conemu.xml files. One for cmder and one for cmder mini. It's already a pain to maintain one copy of a change is needed. I think we just need to add a section to the readme.md explaining the task is there for the full cmder but can be altered or added to in the case a user has a prior installed bash shell. I think were trying to fix something that does not need fixing but might need documenting. Another option is another command line art for the launcher where a user can specify a git install root but I'm not real hip on the idea because as you have said there are many different bash shells that can be installed and not all Will launch exactly the same way. Maybe we even rename the vendored menu option to |
@daxgames While documenting this issue in README is an acceptable alternative to fixing a problem that we're sure not a lot of people might occur, I think it's still a better solution to try and fix it IF a) the fix is easy and b) it doesn't break other parts of Cmder. Regarding in naming it This is acceptable behavior to many users of Cmder, and this issue can be closed. However, I'd like to ask to write a fix for it, by changing a small portion of Cmder logic: creating the |
@DRSDavidSoft. PRs are always welcome and no permission required. Just understand the only time the default conemu.xml is used or references is on initial install. Just don't break the current handling of the conemu.xml after that initial install. |
Why not build the problem into the error message? If it says "CMDER Shell Initialization has Failed, are you trying to use bash in cmder_mini?" Or something like that, it should be pretty clear? |
@Stanzilla that'd also make sense,
That way we'd avoid this issue on fresh installs, and won't introduce breaking changes to previous installs by displaying an appropriate message. |
I have exactly the same issue. |
How exactly did 1.3.5 do this? Because it's actually a regression |
This is a regression indeed. It's not exclusively related to bash. I have the same error in all my tasks: |
@jods4. What error? |
@jods4. You say you get this error in all shells not just a cmder shell? |
@daxgames I mean in all kind of tasks inside Cmder. |
The latest ConEmu build (https://conemu.github.io/blog/2018/04/16/Build-180416.html) has an interesting bug fix:
maybe that was the reason why I could not make it work before. Edit: nope. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contribution. |
This issue has been automatically closed due to it not having any activity since it was marked as stale. Thank you for your contribution. |
The default
bash::*
tasks try to launch%ConEmuDir%\..\git-for-windows\bin\bash
cmder/config/ConEmu.xml
Line 558 in a5eb4d7
I suggest changing the default tasks to use
GIT_INSTALL_ROOT
as it should point to the user's preferred git installation.The text was updated successfully, but these errors were encountered: