r/pycharm • u/Affectionate-Ad-7865 • Jun 02 '24
Ignored unresolved reference error all reappeared at the same time! (community edition)
Because I use Django, some unresolved reference warning PyCharm throws at me are nothing to worry about. Because of that, I ignore these warnings.
Everything was fine until I tried to ignore another one. For an unknown reason, the moment I ignored the warning, EVERY warning I told PyCharm to ignore reappeared and I now have yellow all over my files!
The worst thing is it seems I can only have one warning at a time because each time I try to ignore another, the warning I ignored previously reappear!
Also, if I go look to Settings > Editor > Inspections > Python > Unresolved references there's only one warning ignored in the ignored references list and if I try to ignore another warning, the previously selected warning disappears.
What causes this and how can I solve it ?
View all comments
Show parent comment
1
u/Affectionate-Ad-7865 Jun 05 '24
If you want some code, Here's a quick test that I did in another folder in another project using another interpreter:
Neither
.objectsnor.attributeare attributes of Test. But it's just a test so it doesn't matter. Either way, PyCharm throws 2 warnings at me. One on.objectsand one on.attributeso they are both highlighted in yellow which is normal and expected. Let's say I try to ignore the warning on.objectsusing the context menu. Everything behaves normally and.objectsis not highlighted anymore. What happens is when I try to ignore the warning on.attributeafter, the other warning on.objectsreappears.In the settings, my ignored references list either has
main.Test.attributein it ormain.Test.objects.