-
Notifications
You must be signed in to change notification settings - Fork 87
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
[Feature] Make Amber work in Git Bash on Windows #490
Comments
what if you compile it on your windows machine, and then run an amber program on that machine with git bash? if its good, then its just a matter of building the releases for windows |
Yep, I intend to try that when I get a chance to set up a GitHub SSH key on that PC. This issue is a placeholder for discussion of any further work that may be necessary. |
Maybe also setup something on the CI it will be useful |
Yeah... I just wanted to avoid all the "the amber compiler compiles to .bat files that don't work" kind of drama. The compiler should work perfectly fine on Windows. We can add windows in CI pretty easily |
Compile to ".bat" files? Shudder. Neither do we want PowerShell. |
I tried compiling and running Amber on Git Bash:
So it looks like the compiler works fine (as expected) but it's unable to find some resource in the file system when it tries to execute the transpiled code. I'll have a go at fixing this; shouldn't be too hard. |
That
PR forthcoming, once I've done a final test on my Windows machine. |
However, note that the unit tests do not run, at least in part because |
Ok. I can either hold off for now, or submit a PR on the understanding that unit tests will not work without further work. Preferences anyone? |
I'm inclined to submit the PR anyway. It's not like it will hurt anything. |
Yes proceed as anyway we are working to remove it. |
we could display a warning message for windows users when they install it |
I'm not even sure if that's necessary. Amber creates Bash output, and advertises itself as a system which does that; if anyone is daft enough to confuse Bash with Batch, that's on them. Though when we write the documentation (after removing |
Is your feature request related to a problem? Please describe.
Amber is officially supported on Linux and Mac systems only. I use Windows in my day job; the Amber website advises me to install WSL, but I use Git Bash as my primary shell.
Describe the solution you'd like
I would like to be able to use Amber in Git Bash on Windows.
Describe alternatives you've considered
The alternative is to install WSL, but that is not an option for me.
Additional context
The Amber source code has only one Windows conditional compilation directive. Nothing I've seen looks like it would break on Windows; and I already fixed the place I found where a file system path was being constructed by hand, rather than using
PathBuf::join()
. I do not see any major reasons why it should not work on Windows.The text was updated successfully, but these errors were encountered: