-
Notifications
You must be signed in to change notification settings - Fork 168
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
Highlighting sometimes applied to wrong buffer #496
Comments
@mszyszko I have experienced this error too, but quite rarely, and I haven't been able to reliably reproduce it. Although I haven't seen anything which results in an empty buffer... So, tell me if I have this right:
Is that all correct? What is the output of |
You got it 100% correct.
I also tried with vim and got the same results
I get an info "Loaded server for OmniSharpTest.sln" and then after maybe 1 second the buffer is highlighted properly
Hightlighting does work (Buffer gets highlighed almost instantly after opening the buffer)
Output of a Detailed answer:A. How I open the file:
B. What is displayed in the quickfix after running
C. I select the first file on that list (well, it is actually already preselected) and I hit D. error message gets displayed
E. file is properly highlighted F. I run
G. I run
H. I try:
and I get the correct buffer. |
OK, I can reproduce it with your .vimrc, and with OmniSharp-vim installed at |
@mszyszko this appears to be a bug in Vim's text properties, I have reported it here: vim/vim#4808 In the mean time, try |
@mszyszko Bram has fixed the Vim bug (clearing an unloaded buffer when text property highlights are applied), available in patch 8.1.1844 He has also updated the documentation to make it clear that text properties cannot be applied to unloaded buffers, and when Note that with |
Here is the issue that I am having right now:
OmniSharpFindUsages
whenever I select a usage in a file that is different than the current file:(I am navigated properly, I just get that error message every time)
OmniSharpFindUsages
again (in order to go back to the previous file) I get the `-- No lines in buffer --' and have an empty buffer.Tested on Windows with:
OmniSharpFindUsages
on theClass1
):Program.cs
Class1.cs
.vimrc
(and no other plugins)
Any ideas about what could've caused that unwanted behavior?
Please let me know if there are any other information that would be useful for you.
EDIT
I forgot to add that this problem does not exist if
let g:OmniSharp_highlight_types = 0
.Originally posted by @mszyszko in #468 (comment)
The text was updated successfully, but these errors were encountered: