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

just could not find the shell: program not found #1517

Closed
2-5 opened this issue Jan 18, 2023 · 5 comments
Closed

just could not find the shell: program not found #1517

2-5 opened this issue Jan 18, 2023 · 5 comments

Comments

@2-5
Copy link

2-5 commented Jan 18, 2023

just-1.11.0 stopped working on my Windows 10 machine, but nothing in my just/shell/terminal config changed as far as I'm aware.

hello:
  echo 'This is a recipe!'

Running just fails:

Microsoft Windows [Version 10.0.19045.2486]
(c) Microsoft Corporation. All rights reserved.

H:\Work\issue\just>just --dump
hello:
    echo 'This is a recipe!'

H:\Work\issue\just>just hello
echo 'This is a recipe!'
error: Recipe `hello` could not be run because just could not find the shell: program not found

H:\Work\issue\just>
@2-5
Copy link
Author

2-5 commented Jan 18, 2023

It was because of the emergency git update from yesterday.

@2-5 2-5 closed this as completed Jan 18, 2023
@TreehouseFalcon
Copy link

Ran into this issue and solved it by adding the bin folder containing sh.exe from Git to my system's path.
C:\Program Files\Git\bin

@LY1806620741
Copy link

I encountered the same problem in my windows 11 professional. And I think this solution is too unfriendly...

@LY1806620741
Copy link

LY1806620741 commented Sep 2, 2024

I think just can use where.exe git get git bin path like C:\Program Files\Git\cmd\git.exe,then search sh in C:\Program Files\Git\bin. Any one support It? Can I add the feature to source code?

@LY1806620741
Copy link

You can also add set windows-shell := ["C:\\Program Files\\Git\\bin\\sh.exe","-c"] to your justfile

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