AtomLinter / linter-pylint

Atom linter plugin for Python, using pylint.
60 stars 48 forks source link

Error when using pylint-django #240

Open stavlocker opened 6 years ago

stavlocker commented 6 years ago

Hi all. I'm trying to use linter-pylint with pylint-django and I get the following error everytime I save a file:

[Linter] Error running Pylint Error: Using config file C:\Users\<myuser>\.pylintrc
    at Object.<anonymous> (main.js:161)
    at Generator.next (<anonymous>)
    at step (C:\Users\<myuser>\.atom\packages\linter-pylint\lib\main.js:7)
    at process._tickCallback (internal/process/next_tick.js:103)

I produced a .pylintrc using pylint --generate-rcfile, and added pylint_django as a plugin.

...
load-plugins=pylint_django
...

I'm using the latest pylint version:

> pylint --version
Using config file C:\Users\stavl\.pylintrc
pylint 1.8.1,
astroid 1.6.0
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)]

And linter-pylint version 2.1.0.

ddaanet commented 6 years ago

Looks like an issue with your setup, not an issue with linter-pylint.

I guess the issue is something like the pylint command executed by Atom does not belong to the environment where you installed pylint_django.

dreamalligator commented 3 years ago

Looks like an issue with your setup, not an issue with linter-pylint.

I guess the issue is something like the pylint command executed by Atom does not belong to the environment where you installed pylint_django.

I believe this is good clue for my current issue. I'm spawning atom via atom . in a Pipenv virtual env shell with the hope of linter-pylint picking up the plugins installed and referenced in the project's .pylintrc file without any luck.