dense-analysis / dense-analysis/ale

cppcheck linter fails on Windows due to DOS paths

Open
#2,398 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.