Open TeachMeTW opened 3 years ago
i'm win10, use python3.9 inatall the cpplint.exe, not working on vscode.
I found the problem, the folder or file opened by VSCode cannot contain Chinese characters...
I met a similar issue:
$ cpplint
Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...] [--counting=total|toplevel|detailed] [--root=subdir] [--linelength=digits]
@BIAOXYZ Is your operating system Windows? If it is, i think your path is wrong, here are my settings:
"cpplint.cpplintPath": "D:\\ProgramFiles\\Python39\\Scripts\\cpplint.exe"
Maybe you can wrapper cpplint.py as a script cpplint.bat, refer to #16 . I have tried this method, it is feasible.
@BIAOXYZ Is your operating system Windows? If it is, i think your path is wrong, here are my settings:
"cpplint.cpplintPath": "D:\\ProgramFiles\\Python39\\Scripts\\cpplint.exe"
Maybe you can wrapper cpplint.py as a script cpplint.bat, refer to #16 . I have tried this method, it is feasible.
@weycen Thanks a lot for your help.
The OS of my development machine (where the project as well as the settings.json
file lies in) is Debian 9. However, I use vscode's remote ssh mode, so the picture is a screenshot from a Mac Book Pro.
I've already tried adding .py
to the end, namely, using this ("/usr/local/bin/cpplint.py"
) as the value of key "cpplint.cpplintPath"
. But vscode immediately prompt this:
@BIAOXYZ Is your operating system Windows? If it is, i think your path is wrong, here are my settings:
"cpplint.cpplintPath": "D:\\ProgramFiles\\Python39\\Scripts\\cpplint.exe"
Maybe you can wrapper cpplint.py as a script cpplint.bat, refer to #16 . I have tried this method, it is feasible.
@weycen Thanks a lot for your help.
The OS of my development machine (where the project as well as the
settings.json
file lies in) is Debian 9. However, I use vscode's remote ssh mode, so the picture is a screenshot from a Mac Book Pro.I've already tried adding
.py
to the end, namely, using this ("/usr/local/bin/cpplint.py"
) as the value of key"cpplint.cpplintPath"
. But vscode immediately prompt this:
Same problem here. Is there any solution?
Basically, cpplint is installed but it is not working on the vscode gui. I can run the command and it shows the problems but does not highlight or do anything to vscode.