-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Windows support running hanami dev
#219
Comments
Hi @kyleplump, thanks for this report! I was unaware of this forking limitation on Windows, so I appreciate you bringing it up. Sounds like we need to adjust Would you be able to help with this? |
It also looks like the |
Hi @timriley, thanks for the response! Happy to help! I opened a PR to provide a default fallback to the Here are the file permissions on the file for a newly generated project: Which looks to be correct. I'd also like to make an update: it does launch using Git Bash (although still gets hung up on the Maybe we could update the documentation to mention this? The alternative is that we could provide an equivalent Thanks! |
I took some time to investigate what's going on. |
Tried to start developing on a windows machine and running into the following error executing:
bundle exec hanami dev
:C:/Ruby33-x64/lib/ruby/3.3.0/open3.rb:534:in
spawn': Exec format error - bin/dev (Errno::ENOEXEC)`It look's like this might have been a bug introduced relatively recently? Or at least reported recently: https://www.reddit.com/r/ruby/comments/1b1c0yp/hanami_21_is_out/
Reproducible Steps
Create a new Hanami app on a windows machine and run the command:
gem install hanami
hanami new win_app
cd win_app
bundle exec hanami dev
It seems like it comes down to windows just not natively supporting bash? Although, even using Git Bash - same issue.
A few things I tried:
hanami server
directly seems to start everything up - but probably don't want to circumvent the procfiledev.sh
todev.bat
half works - the asset command forks a process, where forking isn't supported on non-POSIX (https://ruby-doc.org/core-2.6.2/Process.html#method-c-fork)Any thoughts on Windows support?
The text was updated successfully, but these errors were encountered: