SQLAlchemy intellisense
See original GitHub issueEnvironment 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.
Expected behavior
Steps to reproduce:
File structure
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:
- Created 6 years ago
- Comments:22 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Workaround. If you have the
ms-python.python
installed you actually change the linter frompylint
toflake8
which is a better linter and the problem is gone.To change the linter run the command
Select Linter
from theCommand Palette
.I am using
flake8
on all my projects without any problems so far 😉Let me know if you are ok with this solution !!!
i have almost the same question. ide show E1101:Instance of ‘SQLAlchemy’ has no ‘Column’ member but it works