croservices / cro

Development tools for building services and distributed systems in Raku using the Cro libraries.
https://cro.services/
Artistic License 2.0
88 stars 35 forks source link

cro run does not restart on source file changes (Windows only) #94

Open zb226 opened 5 years ago

zb226 commented 5 years ago

I'm running Rakudo Star 2019.03.1 on Windows 7. cro run is supposed to restart the server whenever it detects source file changes (as per the Getting Started section):

"The cro run command will start your service (and automatically restart the service if you change a file): cro run"

Source file changes are correctly detected on Linux:

cro_linux

But unfortunately not on Windows:

cro_windows

jnthn commented 5 years ago

Windows porting is still on the Cro roadmap; I'm glad to see it already at least gets this close to working without a concerted effort on that!

I'm curious if the issue is with the Cro runner, or a more general Perl 6 issue with file watching on Windows. Please could you try:

perl6 -e "react whenever '.'.IO.watch { .say }"

And then try changing or creating a file in the directory that you are running that command in?

zb226 commented 5 years ago

First off, Jonathan, let me thank you and the team for all the work on perl6!

So I tested this and it seems to work:

perl6_win_file_watch

Let me know if I can further assist with Windows testing!