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

Node process is hanging around after debugging session #191

Closed
theimowski opened this issue Nov 21, 2018 · 16 comments
Closed

Node process is hanging around after debugging session #191

theimowski opened this issue Nov 21, 2018 · 16 comments

Comments

@theimowski
Copy link
Member

After stopping the "Debug SAFE App" configuration, node process is still working in background.
We need to find a way to force stop it.

@isaacabraham already mentioned that issue in the PR

@isaacabraham
Copy link
Member

We can possibly look at post launch tasks in vscode, or something through fake. The trick will be to find the event to hook into.

@theimowski
Copy link
Member Author

Yup, the question is how we can stop dotnet fable webpack-dev-server

@isaacabraham
Copy link
Member

@alfonsogarciacaro ideas?

@isaacabraham
Copy link
Member

@alfonsogarciacaro
Copy link
Contributor

Fable 2.1 will work directly as a child of the Webpack process, not sure if that will fix but I can try.

@alfonsogarciacaro
Copy link
Contributor

Hmm, I gave a quick try but in my case I couldn't even stop the debugging. I guess the issue is FAKE is running Fable no the launch.json. Not sure how it can be fixed, hopefully the VS Code replies to @isaacabraham issue.

@isaacabraham
Copy link
Member

@alfonsogarciacaro hmmm, you should be able to explicitly stop the fake process by going to the terminal window and hitting ctrl + c.

@alfonsogarciacaro
Copy link
Contributor

Yes, sorry, I can do that. What I can't do is stop the debugging by clicking the red button in the VS Code debugger control :)

@theimowski
Copy link
Member Author

any news here?

@isaacabraham
Copy link
Member

Taken from the linked issue:

please file a feature request against vscode since we do not have this functionality at the moment

So no :-( I've raised an issue in VS Code as well to track this.

@alfonsogarciacaro what do you mean by

I guess the issue is FAKE is running Fable no the launch.json

What should we do instead?

@theimowski Am I right that the biggest issue is that people won't realise that node is running if they kill code suddenly?

@theimowski
Copy link
Member Author

well in my case, when I stopped the debugging session, node process was still running meaning you could run neither fake build nor debug session again due to port conflicts etc

@isaacabraham
Copy link
Member

Yeah, same thing. Note in VSCode that if you stop debugging and then hit F5 again, it'll simply re-attach to the same client app (it should start the server again though).

@isaacabraham
Copy link
Member

@theimowski I'm not sure that we'll be able to get this in for v1 given that it's looking like it'll be dependent on a feature being added to Code.

@theimowski
Copy link
Member Author

I'll try to look closer at this issue in spare time and see if there's another possible workaround

@theimowski
Copy link
Member Author

Looking at that now and actually I didn't know one can ctrl+c the task in tasks window to stop node process. Maybe we can treat this as "by design" for now rather than "bug" until there's an option in vs code to get a handle of the "preLaunchTask" somehow.

To emphasise the behaviour I think we should add an explicit note at https://safe-stack.github.io/docs/feature-debugging/ pointing to the troubleshooting section - this can be easily missed as in my case

@theimowski
Copy link
Member Author

Marking as "Blocked" until we have a solution from VS Code

@theimowski theimowski removed this from the 1.0 milestone Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants