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

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

Open
zb226 opened this issue Jul 17, 2019 · 2 comments
Open

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

zb226 opened this issue Jul 17, 2019 · 2 comments

Comments

@zb226
Copy link

zb226 commented Jul 17, 2019

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
Copy link
Member

jnthn commented Jul 17, 2019

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
Copy link
Author

zb226 commented Jul 18, 2019

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!

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

2 participants