OmniSharp / omnisharp-vim

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

Filepath on Windows #670

Closed ghost closed 3 years ago

ghost commented 3 years ago

SetUp: Vim 8.2 on Windows 10

When I use commands as :OmniSharpFindUsage the usages are found but if I want to open the file it always opens an empty file. My best guess is that the problem is related to the filepath. All the files are shown with the start "/c/User/..." and if I copy past this in the :edit command exatcly the sames happens. If I change it to "C:/Users/..." the correct file is opned. I feel like I oversaw something quite basic but in :help I didn't find any setting to tell what kine of filepath (Windows/Unix) to use.

I hope this was the right place to post such a questions otherwise I am happy to receive any recommendations.

nickspoons commented 3 years ago

I can't completely understand the situation, could you please share some more details?

ghost commented 3 years ago

Thank you for the fast answer. Yesterday I realized, that I took the vimrc from my WSL2 configurations, so I had let g:OmniSharp_translate_cygwin_wsl = 1 in my vimrc.

Sorry for the dirsturbance and happy holidayss!

nickspoons commented 3 years ago

Ok cool, no worries