-
Notifications
You must be signed in to change notification settings - Fork 166
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
Omnisharp server takes 100% CPU #40
Comments
Just tried on Windows.... server sits at 0% when not in use. I'm not at my linux box to try it out. Do you think 56bcb87 could have caused this? |
I cannot be due to 56bcb87, since the while only loops when a line is entered, which doesn't happen generally. |
I didn't think it would be that to be honest... just clutching at straws. Do you know if the 100% cpu usage is a recent issue? I'd be interested to know if anyone else has this problem. |
I just noticed that the problem doesn't occur when starting the server outside vim. Let me dig into this a little more. |
I don't know if its a recent issue, since I could only get it working very recently. Could it have something todo with the way vim-dispatch is called, or with vim-dispatch itself? |
I wouldn't imagine it was vim-dispatch related although I can't explain how starting the server outside vim would change anything. Sorry. |
I found its not vim-dispatch related, since running the server manually by |
I parse the solution in a background thread now since ed19c02. Maybe that is causing the problem. |
As far as I can understand things now, it actually IS related to the while loop in 56bcb87 . Thinking about a solution for this, I think we actually don't want to test stdin for input since that happens to lead to unwanted behaviour on different systems. I think we just want to have NancyHost running forever, until it is given a shutdown signal from port 2000 (or whatever the configured port is). Just like is done with windows forms when the Could something similar be done for nancyhost? That would solve all these problems. |
Not sure about the long term fix yet, but for now a simple Thread.Sleep(500) inside the while loop will sort your problem out. |
Just pushed quick fix. |
I don't know if Omnisharp can be blamed for this, but everytime I start the server, the
cli
process (which is mono runtime) takes up 100% CPU usage.This is certainly an unwanted thing.
I'm on Linux.
The text was updated successfully, but these errors were encountered: