dense-analysis / dense-analysis/ale
cppcheck linter fails on Windows due to DOS paths
Open
bug
- Dominant language
- Vim Script
- Stars
- 14k
- Forks
- 1.5k
- Avg merge
- 17h 49m
- Merged PRs (30d)
- 1
Description
## Information
**VIM version**
vim 8.1 (2018 may 18)
Operating System: win7
## What went wrong
cppcheck linter doesn't work, gcc linter is ok. I debuged ALELint command, and found:
function! ale#handlers#cppcheck#HandleCppCheckFormat(buffer, lines) abort
...
for l:match in ale#util#GetMatches(a:lines, l:pattern)
if ale#path#IsBufferPath(a:buffer, l:match[1])
IsBufferPath always failed, because tempname() returns "C:\User\ADMINI\~1\AppData\Local\Temp\VIF9297.tmp", but the subdir in buffer name is "Administrator", not ADMINI~1
Contributor guide
Assessment
This issue has not been assessed yet.