question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SQLAlchemy intellisense

See original GitHub issue

Environment data

VS Code version: 1.18.1 Python Extension version: 0.8.0 Python Version: 3.6.3 OS and version: 10.13.1

Actual behavior

code is not prompting with intellisense for sqlalchemy. screen shot 2017-11-25 at 2 13 26 pm

Expected behavior

Steps to reproduce:

File structure

screen shot 2017-11-25 at 2 14 57 pm

In ./__init__.py

"""Blog main module"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy


app = Flask(__name__)
app.config.from_object('settings')
db = SQLAlchemy(app)

from blog import views
from author import views

In author/models.py

from flask_blog_code import db

class Author(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    fullname = db.Column(db.string(80))
    email = db.Column(db.String(35), unique=True)
    username = db.Column(db.String(80), unique=True)
    password = db.Column(db.String(80))
    is_author = db.Column(db.Boolean)
    test = db.Co

User Settings

{
    "workbench.colorTheme": "Solarized Dark",
    "editor.fontFamily": "Operator Mono, Menlo, Monaco, 'Courier New', monospace",
    "editor.fontSize": 16,
    "editor.minimap.enabled": false,
    "workbench.startupEditor": "newUntitledFile",
    "python.pythonPath": "${wordspaceRoot}/venv/bin/python",
    "python.linting.flake8Path": "${workspaceRoot}/venv/bin/flake8",
    "python.linting.flake8Enabled": true,
    "python.linting.pylintEnabled": false,
    "python.linting.flake8Args": [
        "--disable=E402",
        "--max-line-length=120"
    ]
}

Logs

Output from Python output panel

Output from Console window (Help->Developer Tools menu)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:22 (5 by maintainers)

github_iconTop GitHub Comments

12reactions
anselalcommented, Jun 6, 2018

Workaround. If you have the ms-python.python installed you actually change the linter from pylint to flake8 which is a better linter and the problem is gone.

To change the linter run the command Select Linter from the Command Palette.

I am using flake8 on all my projects without any problems so far 😉

Let me know if you are ok with this solution !!!

6reactions
seven-sharecommented, Feb 1, 2018

i have almost the same question. ide show E1101:Instance of ‘SQLAlchemy’ has no ‘Column’ member but it works

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQLAlchemy intellisense does not autocomplete for ORM. For ...
Hello, This issue appears occurs in the latest version of VSCode on Win10. Vscode does not appear to autocomplete methods from SQLAlchemy ......
Read more >
Why Flask-SQLAlchemy doesn't have intellisense support?
And why a lot of functionality has to be imported from SQLAlchemy itself (for e.g. UUID)? ... “flask sqlalchemy session intellisense”.
Read more >
flask-sqlalchemy intellisense/autocomplete - Stack Overflow
I'm searching for a way to actually get intellisense for flask-sqlalchemy. All the answers I have found online seem to tell us how...
Read more >
How do I get code completion to work for SQLAlchemy?
Is there a working example of SQLAlchemy in PyCharm? I am trying to get code completion to work, but it only seems to...
Read more >
SQLACODEGEN + VSCODE + Intellisense not working.
to sqlalchemy. I have some code in VS Code... jobrow = session.query(Jobmst).filter(Jobmst.jobmst_id==job['jobmst_id']).first().
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found