Try to fix it again
This commit is contained in:
parent
540952ca8e
commit
b6bf6ecdbc
@ -10,7 +10,7 @@ function! s:GetWorkingDirectory(buffer) abort
|
|||||||
return l:working_directory
|
return l:working_directory
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return fnamemodify(bufname(a:buffer), ':p:h')
|
return expand('#' . a:buffer . ':p:h')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale_linters#cs#mcsc#GetCommand(buffer) abort
|
function! ale_linters#cs#mcsc#GetCommand(buffer) abort
|
||||||
|
@ -4,6 +4,7 @@ Before:
|
|||||||
unlet! g:ale_cs_mcsc_source
|
unlet! g:ale_cs_mcsc_source
|
||||||
|
|
||||||
call ale#test#SetDirectory('/testplugin/test/handler')
|
call ale#test#SetDirectory('/testplugin/test/handler')
|
||||||
|
call ale#test#SetFilename('Test.cs')
|
||||||
|
|
||||||
runtime ale_linters/cs/mcsc.vim
|
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'),
|
\ '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',
|
\ 'Test.cs(12,29): error CS1001: ; expected',
|
||||||
\ 'Compilation failed: 2 error(s), 1 warnings',
|
\ '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'),
|
\ '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(12,29): error CS1001: ; expected',
|
||||||
\ 'Test.cs(101,0): error CS1028: Unexpected processor directive (no #if for this #endif)',
|
\ 'Test.cs(101,0): error CS1028: Unexpected processor directive (no #if for this #endif)',
|
||||||
\ 'Test.cs(10,12): warning CS0123: some warning',
|
\ 'Test.cs(10,12): warning CS0123: some warning',
|
||||||
|
Loading…
Reference in New Issue
Block a user