Comments (11)
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?
from omnisharp-vim.
I cannot be due to 56bcb87, since the while only loops when a line is entered, which doesn't happen generally.
from omnisharp-vim.
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.
from omnisharp-vim.
I just noticed that the problem doesn't occur when starting the server outside vim. Let me dig into this a little more.
from omnisharp-vim.
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?
from omnisharp-vim.
I wouldn't imagine it was vim-dispatch related although I can't explain how starting the server outside vim would change anything. Sorry.
from omnisharp-vim.
I found its not vim-dispatch related, since running the server manually by :!Omnisharp.exe -s mysolution.sln &
results in 100% CPU usage as well.
from omnisharp-vim.
I parse the solution in a background thread now since ed19c02. Maybe that is causing the problem.
from omnisharp-vim.
As far as I can understand things now, it actually IS related to the while loop in 56bcb87 .
What happens (I guess) is that starting the server from within vim causes Console.ReadLine()
to pass immediately, making the while statement loop very fast.
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 Appliction.Run()
method is invoked.
Could something similar be done for nancyhost? That would solve all these problems.
from omnisharp-vim.
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.
from omnisharp-vim.
Just pushed quick fix.
from omnisharp-vim.
Related Issues (20)
- Can't use out-of-box because of MSBuild HOT 6
- Omnisharp server doesnt start HOT 5
- Building the project HOT 2
- How do I stop OmniSharp from creating '~/.omnisharp' directory? HOT 3
- There is a bug when I use vim-omnisharp in termux with mono HOT 7
- Need Help - Mac OS M2 - No Popups HOT 1
- ddc-ultisnips error HOT 1
- [Bug] Poor Performance in Some Unity Projects HOT 3
- Poor syntax highlighting and server load time after a minimal NVIM setup HOT 19
- Limited OmniSharp Commands (failing to properly call/start rosylin server?) HOT 64
- Not an editor command: OmniSharp* HOT 2
- OmniSharpDebugTest throws error relative to number of parameters the first time it is run HOT 1
- omnisharp can't run tests HOT 3
- Unable to get custom types using omnisharp-vim HOT 5
- Silently failing HOT 3
- When several solutions for a given cs file, solution selection prompts block the UI by being spammed
- No hover or go to definition on larger solution HOT 2
- Omnisharp doesn't autocomplete with .razor files for blazorwasm app HOT 8
- How to use Omnisharp with Dotnet SDK 8? HOT 2
- Should I use this plugin at the same time as lspconfig? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omnisharp-vim.