Autoimport breaks when enabling the plugin
See original GitHub issueDescribe the bug
Having the pydantic-pycharm-plugin
enabled breaks autoimports.
To Reproduce Steps to reproduce the behavior:
- Install the pydantic plugin and enable it
- Create a simple file
main.py
with the content:
from typing import Optional
from pydantic import BaseModel
class Item(BaseModel):
name: str
description: Optional[str] = Field()
price: float
tax: Optional[float] = None
- Navigate the caret between
Field
and()
. ctrl
+space
+space
oralt
+enter
- No pydantic import suggested
- Disable pydantic plugin
- Try the same:
Expected behavior Autoimports should work.
Environments (please complete the following information):
- IDE: PyCharm Professional
2021.1
(Edit: Tested in201.1.1
as well. Same issue) - OS: Red Hat Enterprise Linux release 8.3 (Ootpa)
- Pydantic Versio:
1.8.1
- Plugin version:
0.3.0
Additional context I’ve tried recreating the environment, clearing and invalidating cache.
Issue Analytics
- State:
- Created 2 years ago
- Comments:21 (8 by maintainers)
Top Results From Across the Web
Auto Import not working (Typescript ) after latest update #132299
With lit-plugin installed and enabled: No import is added ... As I mentioned above, auto import isn't completely broken for me.
Read more >Broken autoimport in Visual Studio Code - Stack Overflow
json file (in your project root directory) should enable automatic imports now without the need for any separate extensions. Share.
Read more >Auto Import - ES6, TS, JSX, TSX (VSCode Extension)
Extension for Visual Studio Code - Automatically finds, parses and provides code actions and code completion for all available imports.
Read more >New: Bard Free Wordpress Blog Theme - YouTube
New: Bard Free Wordpress Blog Theme - Demo Content Import ( Autoimport with Plugin ) Updated. Watch later. Share. Copy link.
Read more >Import All broken with Auto Import - Pipeline & Plugins
When using auto-import/reimport system, I am presented with the import options dialog for each asset. Pressing either Import or Import All ...
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
I’ll check out both pipx and your poetry plugin, thank you!!
I listened to episode 313 of talkpython.fm. Creator of pydantic gave you some nice words and in the end of the episode he encourages not only sponsoring the huge packages, but also those who make those packages awesome. This is one of them. 😊 So my pleasure.
Tried on Ubuntu 20.04.2 with Pycharm: 2021.1