Comments (18)
For me, PyLint linting started working only once I had these settings in my coc-settings.json
{
"python.analysis.diagnosticEnabled": true,
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.jediEnabled": false
}
from coc-python.
Relatedly, the linter only seems to work once files are :w in vim, is it possible to lint 'on the spot'?
Using flake8, see, it doesn't mention the top STOP unless I :w the file:
from coc-python.
I notice the same thing as well, I thought the linting was async and no :w was needed.
from coc-python.
MPLS requries saved file to run diagnostic, that's because VSCode always create file before edit.
from coc-python.
However, flake8/pylint is separate from MPLS though. Does that mean MPLS is blocking it?
from coc-python.
@esn89 When your're using MPLS, the linting is done by MPLS instead of flake8 & pylint.
from coc-python.
aaah, i see. so it gets "stolen" and there is no way to turn off MPLS linting?
from coc-python.
there is no way to turn off MPLS linting?
There're settings.
from coc-python.
I currently do not use Language server ("python.jediEnabled": true
) but linter also only update when :w
.
Did I miss anything?
from coc-python.
When you have "python.jediEnabled": false
, MPLS is used instead of python files, so python.linting.enabled
which only has affect when python files are enabled would not works.
To disable diagnostics of MPLS, you need use"python.analysis.diagnosticEnabled": false
.
from coc-python.
@chemzqm so to clarify, if I'm using coc-python
and I want linting to happen automatically, without having to write the buffer first, I need to add the following to my coc-settings.json
:
"python.analysis.diagnosticEnabled": false,
"python.linting.enabled": true,
"python.jediEnabled": true,
?
from coc-python.
So to clarify, there is no linting possible when MPLS is used? I have now
"python.analysis.diagnosticEnabled": true,
"python.linting.enabled": true,
"python.jediEnabled": false
and I would like linting to happen without Jedi. Is that possible?
The setting python.enableLinting
is "off" and I cannot enable it, it always stays "off".
from coc-python.
There is linting possible when MPLS is used, but not as-you-type. The only way is on save. Unless someone managed to get linting without saving, please tell me :D
from coc-python.
There is linting possible when MPLS is used, but not as-you-type. The only way is on save. Unless someone managed to get linting without saving, please tell me :D
I'd be happy to have it working even on saving. Could you share a working config?
from coc-python.
Sure thing:
https://pastebin.com/QyHrk5A7
from coc-python.
Thanks a bunch! I was missing some settings. Pylint now shows messages in location list, however it finds a considerably smaller amount of errors than ALE for example. With your settings I also got formatting on save working! Do you know if it is possible to have formatting messages also in the location list or side bar?
from coc-python.
Glad to hear that. The messages such as "Line char more than 80" will not appear on the side.
You can have a little font-icon by the gutter though, here's mine for example:
https://i.imgur.com/INBytwp.png
from coc-python.
@esn89
I still use coc-pyls
which is deprecated but at least works as you type
from coc-python.
Related Issues (20)
- yarn install --frozen-lockfile fails HOT 2
- Intellisense low on offers HOT 1
- Cannot disable linting HOT 1
- Wrong Pyright errors. HOT 1
- python.createTerminal not activating virtual env
- iPython as interpreter
- How to make reappear the info of a function
- Why did this happen whenever I opened a python file HOT 1
- "Linter pylint is not installed." Even though it is.
- coc formatter deleting lines when formatting sometimes HOT 1
- Black does not support the "Format Selection" command
- Modified the wrong code, but the underline still exists. HOT 1
- Can't get out of the terminal one interacted with HOT 1
- Uncaught Exception Error on Windows!
- Default ctags exclude list is unconfigurable HOT 1
- Jedi error raised on python completion HOT 2
- Silence [coc.nvim]: Uncaught exception: spawn python2 ENOENT HOT 4
- Autocompletion through Coc vs VS Code HOT 2
- Settings
- Error float window hangs and then not able to get completion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-python.