Replies: 18 comments
-
|
I think it's a PyCharm issue https://youtrack.jetbrains.com/issue/PY-30187 |
Beta Was this translation helpful? Give feedback.
-
|
The same issue exist in Pydantic and they made a plugin for it in PyCharm. I tried it in the hopes that it might fix this issue but sadly it only worked on pydantic models. |
Beta Was this translation helpful? Give feedback.
-
|
I found a fix here: koxudaxi/pydantic-pycharm-plugin#344. Relevant provided you've installed the Pydantic plugin. tldr: Add the following lines to your pyproject.yaml. [tool.pydantic-pycharm-plugin]
ignore-init-method-arguments = trueI had to restart Pycharm to get it working. |
Beta Was this translation helpful? Give feedback.
-
|
@white54503 solution didn't work for me, I still only get autocomplete on instantiated objects, not on the sqlmodel table class itself for example when writing queries: |
Beta Was this translation helpful? Give feedback.
-
|
This is still an issue with PyCharm 2022.2.1, any workaround? Pydantic's plugin doesn't help with the query's columns autocompletion. |
Beta Was this translation helpful? Give feedback.
-
|
Installing the pydantic plugin worked for me, am running Pycharm 2022.2.1 Build #PY-222.3739.56 |
Beta Was this translation helpful? Give feedback.
-
It does work for me when creating new instances, but it doesn't when making queries with SQLModel. Does that work for you? |
Beta Was this translation helpful? Give feedback.
-
Yeah only works for creating new instances, I also tried doing the toml file config, still doesn't work as expected l |
Beta Was this translation helpful? Give feedback.
-
|
No news about this issue ? |
Beta Was this translation helpful? Give feedback.
-
|
I'm also having this issue in pycharm 2023.1. |
Beta Was this translation helpful? Give feedback.
-
|
In my experience, the most effective solution for flask sqlalchemy autocomplete is by installing flask-sqlalchemy-stubs package, a method I've found to be particularly insightful. If this resolves your issue, feel free to explore concise solutions through my book https://pythonalliance.gumroad.com/l/ayuze where you can uncover efficient one line fixes. |
Beta Was this translation helpful? Give feedback.
-
|
Still an issue with PyCharm 2023.3.2 (Professional Edition). |
Beta Was this translation helpful? Give feedback.
-
|
Still an issue with PyCharm 2024.1.1 (Professional Edition). |
Beta Was this translation helpful? Give feedback.
-
|
Still an issue with PyCharm 2024.2.3 (Professional Edition). |
Beta Was this translation helpful? Give feedback.
-
|
Still an issue with PyCharm 2024.3.3 (Professional Edition).
|
Beta Was this translation helpful? Give feedback.
-
|
need install pydantic plugin |
Beta Was this translation helpful? Give feedback.
-
|
Look here #1416 (comment) |
Beta Was this translation helpful? Give feedback.
-
|
Any updates or workaround for this issue? except manually changing |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.4
Python Version
3.8
Additional Context
No autocompletion in PyCharm when creating new instance. (only when fetching an instance from db)
Beta Was this translation helpful? Give feedback.
All reactions