You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perflint works on the command line against the file below, but crashes when run via VS Code.
Here's the command line output:
>perflint src\CursesRenderer.py
************* Module CursesRenderer
src\CursesRenderer.py:57:46: W8201: Consider moving this expression outside of the loop. (loop-invariant-statement)
-----------------------------------
Your code has been rated at 9.75/10
And here's the output I see in the Python log when opening the file in VS Code:
> .\.venv\Scripts\python.exe ~\.vscode\extensions\ms-python.python-2022.5.10891003\pythonFiles\linter.py -m pylint --load-plugins perflint --rcfile ./.pylintrc .\src\CursesRenderer.py
cwd: .
> ./.venv/Scripts/activate.bat && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2022.5.10891003/pythonFiles/printEnvVariables.py
##########Linting Output - pylint##########
[ERROR 2022-2-30 15:2:44.986]: Linter 'pylint' failed to parse the output '. SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at s.parseMessages (c:\Users\erikd\.vscode\extensions\ms-python.python-2022.5.10891003\out\client\extension.js:2:526510)
at s.run (c:\Users\erikd\.vscode\extensions\ms-python.python-2022.5.10891003\out\client\extension.js:2:507944)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at s.runLinter (c:\Users\erikd\.vscode\extensions\ms-python.python-2022.5.10891003\out\client\extension.js:2:526025)
Perflint works on the command line against the file below, but crashes when run via VS Code.
Here's the command line output:
And here's the output I see in the Python log when opening the file in VS Code:
The text was updated successfully, but these errors were encountered: