OmniSharp / omnisharp-vim

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

omnisharp can't run tests #852

Closed nikasept closed 11 months ago

nikasept commented 11 months ago

Hey;

I'm having this problem: whenever I try to OmniSharpRunTest it gives me the error: Error detected while processing function OmniSharp#proc#neovimOutHandler[21]..OmniSharp#stdio#HandleResponse[42]..<SNR>47_ProjectRH: If I retry it then I get: No test found;

everything else that I have tried seems to be working just fine (completion;FixUsings;.etc.)

Additional info: I'm using .NET 6 sdk and runtime;

this is my omnisharp configuration:

" OmniSharp: {{{                                                                    
let g:OmniSharp_popup_position = 'peek'                                             
if has('nvim')                                                                      
  let g:OmniSharp_popup_options = {                                                 
  \ 'winblend': 30,                                                                 
  \ 'winhl': 'Normal:Normal,FloatBorder:ModeMsg',                                   
  \ 'border': 'rounded'                                                             
  \}                                                                                
else                                                                                
  let g:OmniSharp_popup_options = {                                                 
  \ 'highlight': 'Normal',                                                          
  \ 'padding': [0],                                                                 
  \ 'border': [1],                                                                  
  \ 'borderchars': ['─', '│', '─', '│', '╭', '╮', '╯', '╰'],                        
  \ 'borderhighlight': ['ModeMsg']                                                  
  \}                                                                                
endif                                                                               
let g:OmniSharp_popup_mappings = {                                                  
\ 'sigNext': '<C-n>',                                                               
\ 'sigPrev': '<C-p>',                                                               
\ 'pageDown': ['<C-f>', '<PageDown>'],                                              
\ 'pageUp': ['<C-b>', '<PageUp>']                                                   
\}                                                                                  

let g:OmniSharp_highlight_groups = {                                                
\ 'ExcludedCode': 'NonText'                                                         
\}                                                                                  

let g:OmniSharp_server_use_net6 = 1                                                 
" }}}         

OmniSharpOpenLog contains nothing informative; info is a min loglevel;

nickspoons commented 11 months ago

Hi @ni-sgn, this should be resolved with #853

nikasept commented 11 months ago

@nickspoons it works; thanks.

nickspoons commented 11 months ago

No problem. If you feel like being adventurous, try out PR #789 which is an integrated test runner, with nicer test outputs and management