anybox / pylint_flask_sqlalchemy

pylint_flask_sqlalchemy is a Pylint plugin to improve static code analysis of Flask-SQLAlchemy based projects.
MIT License
8 stars 5 forks source link

Two linting errors in every python file (always line 5 and 12) #3

Open mfrey777 opened 3 years ago

mfrey777 commented 3 years ago

I add the "pylint_flask_sqlalchemy" plugin to my VSCODE settings.json file:

 "python.linting.pylintArgs": [
    "--load-plugins",
    "pylint_flask_sqlalchemy",
    "pylint_flask", 
  ],

I then get 2 linting error on every single python file. The errors are always for line 5 and 12:

I get these errors even if I put the following code in a module:

""" module that is doing nothing """
i = 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1
i = i + 1

I am using Python 3.8.6 and the following pylint versions: pylint==2.6.0 pylint-flask==0.6 pylint-flask-sqlalchemy==0.2.0 pylint-plugin-utils==0.6

If I remove the plugin ""pylint_flask_sqlalchemy", then my errors are gone (but I then obviously get all the sqlalchemy" related errors

herrboyer commented 2 years ago

Wow, that's a pretty weird bug :sweat_smile: ! And by looking at the +1 you're not alone...

In the current state of the repository (we made lots of changes this week) I can't reproduce the bug. So I suggest to leave this ticket on hold while waiting for v1 to see if the problem persists, would that be okay with you?

Thanks

timmornYE commented 2 years ago

Any progress on that?

Or a workaround meanwhile?