django-stubs icon indicating copy to clipboard operation
django-stubs copied to clipboard

django-stubs package is reason for "Unresolved tag" errors in PyCharm

Open egregors opened this issue 4 years ago • 5 comments

Bug report

What's wrong

Looks like presence django-stubs package breaks PyCharm tag resolving mechanism for Django templates. 2021-01-11_10-58-29

Literally, all Django template tags (built-in or custom) become unresolved and the only way to fix it – remove django-stubs package .

This is a huge thread from JetBrains tech support site about this problem. https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003433179-Pycharm-suddenly-not-detecting-ANY-Django-tags-in-template

How is that should be

I believe, stubs package shouldn't break the base mechanisms for one of the most popular Python IDE.

System information

  • OS: MacOS 11.1
  • python version: 3.9
  • django version: Any
  • mypy version: 0.790
  • django-stubs version: 1.7.0
  • PyCharm version: 2020.3

egregors avatar Jan 11 '21 08:01 egregors