-
Notifications
You must be signed in to change notification settings - Fork 215
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
Receiving unexpected tsserver messages in server logs #291
Comments
hey @benjreinhart can you please elaborate how to reproduce this issue? |
@Sanjoy-droid I'm not sure the exact cause, but it happens very regularly for me. If you navigate between a srcbook, the home page, another srcbook, add/delete them, etc, I would expect you to come across this unless there's something unique going on in my environment. |
@benjreinhart it's not your environment. I was able to reproduce it and the cult is "React's StrictMode". Once you disable it, the ts server will stop normally and you won't see those logs. I am still not confident why it's happening. Maybe double invoking messes up with the lifecycle and hence the cleanup effect not running properly. Anyways even with StrictMode enabled, we can just stop the ts server in a separate useEffect. @Sanjoy-droid let me know if this worked. |
@benjreinhart or you can assign the issue to me for a deeper look. |
@benjreinhart @nichochar
I haven't dive deeper into the backend code but I hope we have a server-side timeout mechanism to stop inactive tsserver processes. |
@benjreinhart is PR #338 fixed this issue? |
I have noticed a lot of tsserver messages in the logs recently that indicate we are still connected to a tsserver instance after we should have shut it down. I'm not exactly sure why this is happening but I didn't use to see these.
The text was updated successfully, but these errors were encountered: