Absolute filepath for error and warnings.
On save file, if the file is in project, open new buffer with bad filepath so the buffer open is empty. Before change: ```gcc -c -x ada -gnats src/principale.adb principale.adb:32:26: missing ";"``` quickfix try to open principale.adb but file is in src/ not in current directory. After change: ```gcc -c -x ada -gnats -gnatef src/principale.adb src/principale.adb:32:26: missing ";"``` quickfix open file src/principale.adb.
This commit is contained in:
parent
6a176a6488
commit
63c0877e2e
@ -32,8 +32,8 @@ function! SyntaxCheckers_ada_gcc_GetLocList() dict
|
||||
\ '%-G%f:%s:,' .
|
||||
\ '%f:%l:%c: %m,' .
|
||||
\ '%f:%l: %m',
|
||||
\ 'main_flags': '-c -x ada -gnats',
|
||||
\ 'header_flags': '-x ada -gnats',
|
||||
\ 'main_flags': '-c -x ada -gnats -gnatef',
|
||||
\ 'header_flags': '-x ada -gnats -gnatef',
|
||||
\ 'header_names': '\.ads$' })
|
||||
endfunction
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user