Try to fix it again
This commit is contained in:
parent
540952ca8e
commit
b6bf6ecdbc
2 changed files with 4 additions and 3 deletions
|
@ -10,7 +10,7 @@ function! s:GetWorkingDirectory(buffer) abort
|
|||
return l:working_directory
|
||||
endif
|
||||
|
||||
return fnamemodify(bufname(a:buffer), ':p:h')
|
||||
return expand('#' . a:buffer . ':p:h')
|
||||
endfunction
|
||||
|
||||
function! ale_linters#cs#mcsc#GetCommand(buffer) abort
|
||||
|
|
|
@ -4,6 +4,7 @@ Before:
|
|||
unlet! g:ale_cs_mcsc_source
|
||||
|
||||
call ale#test#SetDirectory('/testplugin/test/handler')
|
||||
call ale#test#SetFilename('Test.cs')
|
||||
|
||||
runtime ale_linters/cs/mcsc.vim
|
||||
|
||||
|
@ -25,7 +26,7 @@ Execute(The mcs handler should work with the default of the buffer's directory):
|
|||
\ 'filename': ale#path#Simplify(g:dir . '/Test.cs'),
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#cs#mcsc#Handle(347, [
|
||||
\ ale_linters#cs#mcsc#Handle(bufnr(''), [
|
||||
\ 'Test.cs(12,29): error CS1001: ; expected',
|
||||
\ 'Compilation failed: 2 error(s), 1 warnings',
|
||||
\ ])
|
||||
|
@ -60,7 +61,7 @@ Execute(The mcs handler should handle cannot find symbol errors):
|
|||
\ 'filename': ale#path#Simplify('/home/foo/project/bar/Test.cs'),
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#cs#mcsc#Handle(347, [
|
||||
\ ale_linters#cs#mcsc#Handle(bufnr(''), [
|
||||
\ 'Test.cs(12,29): error CS1001: ; expected',
|
||||
\ 'Test.cs(101,0): error CS1028: Unexpected processor directive (no #if for this #endif)',
|
||||
\ 'Test.cs(10,12): warning CS0123: some warning',
|
||||
|
|
Reference in a new issue