Skip to content

No ClassVar autocomplete #1067

@molozeyWork

Description

@molozeyWork

Describe the bug
Hi! Could you please give me a hint what i'm not understanding.
I have used plugin for a long time, and for one moment i lost ability to see autocomplete class variables at IDE.

Image

Interesting thing is that when i'm invalidate cache, while indexing i can see all ClassVars.
At first i "lost" interpreter (that can show autocomplete for models) at one project, after that i tried to switch interpreter (checked before that i have behavior like in demo) at another project, after switch back i received no autocomplete

To Reproduce
I don't really know how, cause when autocomplete "broken" while switching interpretators i didn't make any other actions. Only thing i got - is IDE error that i cannot find in logs

Screenshots
Image
Image

Environments (please complete the following information):

  • IDE: 2025.1.2 (Release Candidate) / 2025.1.1.1
  • OS: macOS 14.1
  • Plugin version: 0.4.17 / 0.4.18.
annotated-types==0.7.0
pydantic==2.11.5
pydantic_core==2.11.5
SQLAlchemy==2.0.41
sqlmodel==0.0.24
typing-inspection==0.4.1
typing_extensions==4.14.0

Also have tried on another notebook with older PyCharm

  • IDE: 2023.3.5
  • Plugin version: 0.4.13
  • pydantic: 2.11.5
  • sqlmodel: 0.0.24

Additional context
Found same problem here: https://youtrack.jetbrains.com/issue/PY-72886/No-autocomplete-with-SQLModel-when-interpreter-specified

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions