-
Notifications
You must be signed in to change notification settings - Fork 11
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
Uncaught exception: Header must contain a Content-Length property #44
Comments
After completely ruining my computer today I've fixed it but I have absolutely no idea what could it be... Thins I've done:
|
Perhaps this. The latest version will not even start... |
I really hope the upstream can test the lsp use cases more thoroughly before a release. |
I've tried multiple versions before and it happened with all 1.37.x versions that work. It has to be something else, |
I'm seeing this too. The behavior seems to be sporadic, but it makes coc-omnisharp unusable. I'm using .NET 5 and omnisharp 1.37.3.
EDIT: EDIT AGAIN: |
I can relate to what addison said. It's extremely spontaneous. |
I thinks its bug in omnisharp. It print some errors in stdout. For me its Probably its related to OmniSharp/omnisharp-vim#631 and OmniSharp/omnisharp-roslyn#1942 |
Also running into this error. Started happening out of nowhere, with no change in configuration. |
But it seems to me that even though this error is happening, code completion continues to work. It is really hard to use it because the error keeps popping at the bottom of my editor. Is it perhaps possible to simply suppress the error somehow, and see what happens? |
@ennmichael I just encountered this and fixed mine by running |
Thank you, cleaning between builds has fixed this for me too. That seems like the answer. Is ignoring build files possible from the plugin? |
dotnet clean removed the error from spawning during the running session, however it doesn't fix the problem that you have no intellisense because there was no connection established to the language server. Looking at the code, I don't see anywhere this package can fix the issue of not providing proper headers required by the language server API. |
The same problem. I can't fix this issue. I've done with:
absolutely no success. As somene said above, it started happening out of nowhere, with no change in configuration. |
I've fixed this with some strange solution. As it happened with the Unity project I've done this: |
I have a similar workaround as @ProgrammingLife in that I quit Vim, then run |
+1 This is plugin is effectively useless so long as this issue exists. Have the devs abandoned this repo? |
No need to restart VIM - as long as you do a nnoremap <Leader>R :!dotnet clean<CR>:CocRestart<CR> But it's still only a workaround. It would really help if this could be fixed - I've searched a bit and I do believe this is related to using stdio as protocol instead of http, but I relly couldn't dig enough to test it with http (and apparently stdio was supposed to be better than http for that). |
I've been a bit frustrated with this error since months at this point. I can't find a proper way to reproduce and logs do not help: maybe someone here knows better than I do.
This causes the plugin to completely stop working, vim becomes slow and I get a ton of error messages:
CocInfo output:
After 5 seconds of opening the solution I already have a log with +5000 lines of the previous exception with a difference of 1 to 200 milliseconds between each.
It works fine in some projects (specially small ones) and currently breaks in 2 of my company projects. It used to work originally in both of them but now it's completely dead.
What do these projects share that others do not?
The text was updated successfully, but these errors were encountered: