-
Notifications
You must be signed in to change notification settings - Fork 147
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
modd -> devd communication doesn't work on Windows #80
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Erm... has the separate modd calling devd w/livereload setup ever worked for anyone on Windows? daemon.go calls
🤔 So it seems that go on Windows doesn't handle anything else than SIGKILL... (Which is weird, since, after testing with modd with Looking up the go issues on signal handling on Windows as well as MSDN documentation, it seems that signals basically don't work except for very specific cases. (I'm still confused as to what works and what doesn't, so I'll read up about the situation and add further comments here. I'll also get a go debugger set up.) |
What's the conventional way to tickle a child process on Windows? Do a dummy write on a pipe? |
On my fork, I've given I've also updated devd to be able to consume SIGHUP in that way to cause a livereload. What you think? |
@frou These sound like valuable additions. If you don't mind, could you lodge a PR on the modd project to begin with, and we can get the ball rolling? |
@cortesi - Yep I will when I get a chance. For starters, it needs refined a bit because Go's string representation of the signal values has an odd mix of tenses, e.g. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I wonder if hacking up a custom signalling system for Windows is somewhat obsoleted by WSL now? WSL works very well, and modd + devd can run there with support for native signals. Thoughts, anyone? |
That's probably part of a wider question in Windows developer land. Namely, is the native Windows CLI a lost cause? And is it unreasonable to expect all OSS-aware Windows developers to be WSL users? (AFAIK it's still an optionally-installed feature) |
I might be a luddite but I still use Windows 7 |
I'm trying to get a simple setup for an Elm single page app.
I've got this modd.conf
Any changes to the
elm
files successfully trigger a recompilation intoelm.js
. No problems here. The changes toelm.js
,index.html
andmain.css
are also sucessfully detected by modd:>> sending signal hangup
appears any time I change one of these.My problem is that the
livereload
functionality somehow doesn't work. A breakpoint inside.devd.livereload.js
at theonmessage
callback shows that the websocket code never gets executed.Livewatch does work fine whenever I run devd standalone, and the same breakpoint gets hit without a problem. I also tried a bunch of options for devd, but none changed the result.
Getting the same problem with Chrome and Firefox dev edition. I'm on Windows 7 x64 Pro.
If, however, I run devd in livewatch mode separately from modd (with the
daemon
line removed from the conf), I get whatever I wanted to achieve. But that seems a bit silly.I'd be happy to provide additional info or help debugging. Thanks!
The text was updated successfully, but these errors were encountered: