OmniSharp / omnisharp-vim

Vim omnicompletion (intellisense) and more for C#
http://www.omnisharp.net
MIT License
1.72k stars 168 forks source link

OmniSharpDebugTest throws error relative to number of parameters the first time it is run #850

Closed Melandel closed 1 year ago

Melandel commented 1 year ago

Systematically, on any test (example: any test from https://github.com/Melandel/Zuc.Tests.SourceCodeExperiments), on the first run, OmniSharpDebugTest will throw the following error:

Error detected while processing function OmniSharp#proc#vimOutHandler[11]..OmniSharp#stdio#HandleResponse[42]..<SNR>135_ProjectRH:
line    9:
E118: Too many arguments for function: <SNR>136_BindTest

due to the line call a:Callback(v:true), while the callback itself requires 2 parameters (a buffer number, and a callback) on the first call.

Note: debugging the test will work as expected on later executions, so functionally everything is OK except the user experience

nickspoons commented 1 year ago

This issue has been resolved in PR #789, which I realise is over a year old and has never been merged. For the record I always run the testrunner branch and I use it a lot. I've just never quite found the time to finish it off, but I really have to.