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

Can run --watch send ctrl+c on source changes? #711

Closed
armanbilge opened this issue Feb 26, 2022 · 0 comments · Fixed by #747
Closed

Can run --watch send ctrl+c on source changes? #711

armanbilge opened this issue Feb 26, 2022 · 0 comments · Fixed by #747
Assignees

Comments

@armanbilge
Copy link
Contributor

Is your feature request related to a problem? Please describe.
If I'm working on a server, then main starts the server and sleeps indefinitely e.g. until ctrl+c or enter. If I make changes I'd like the server to restart. run --watch would almost work perfectly except it only works if the process is already terminated i.e. it will not kill/restart a currently running process.

Describe the solution you'd like
If run --watch detects changes, it kills the currently running process and restarts it.

Describe alternatives you've considered
For now, I manually terminate my server with enter and then scala-cli starts it again with the changes.

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

Successfully merging a pull request may close this issue.

2 participants