Some class mapping is lost over time

Hi! I have a weird problem. I use IDEA Ultimate with PHP plugin and work on project based on Symfony framework. Everything worked fine until last week, when IDEA started to "loose" random classes. For example I have a class A used in class B. At first IDEA sees both and everything is fine. But after few hours it stops seeing class A and code inspection marks all usages of it as "Undefined class" in class B. I also cannot navigate to class by Ctrl+N while Ctrl+Shift+N works just fine. When restarted IDEA sees all classes again.

IDEA+PHP and Symfony plugins on Ubuntu, files accesed via NFS.

I didn't post it at YT because i'm not sure yet how to reproduce the bug.

0

Hi there,

"File | Invalidate Caches..." and restarting IDE should help (the usual medicine for such "suddenly stopped recognizing" cases) -- your indexes/caches may got corrupted somehow.

0
Avatar
Permanently deleted user

Hi! I did it few times when i encountered the problem. But it doesn't solve the problem. Actually the only difference is that it takes some time to rebuild the index.

0

Check idea.log for possible hints then (Help | Show log in XX). Maybe it's some plugin ...

1
Avatar
Permanently deleted user

Thank You!

Disabled some plugins. Will see if it changes some and will check logs if won't help.

0

I'm been seeing the same for a few releases. Invalidating caches fixes it, for a while (sometimes hours, sometimes days), but that means a full restart of all IDEA windows. If invalidating caches could be done without a full restart, and for a single project, it would be quite a bit less annoying... Though not having to do it at all would be preferable.

0

Please update to the version 2021.1.1, then run File > Invalidate Caches ... > turn on Clear file system cache and Local History and Clear downloaded shared indexes, then hit *Invalidate and Restart* and check the issue after that.

The fix should address the problem.

0

Dmitry Tronin That's what I've been doing every time it happened. The 2021.1.1 preview update only seems to mention the find in files issue in IDEA-266391, not actual broken PHP class references. And IDEA-266391 looks like a recent issue, the one I'm seeing with references breaking is older than 2020.1.

Unless you're convinced that it's the same issue, I'm going to wait for the full release. Don't really feel like going in EAP land with an already wonky PHP plugin.

0

I see. The ongoing problem was addressed just recently: https://youtrack.jetbrains.com/issue/WI-54626. I believe the fix will be included in IDE version 2021.1.2 that hopefully will be released this week.

0

I've also seen issues with references between ones own PHP classes being lost before, but perhaps that has already been fixed, because WI-54626 seems exactly like what I saw this last time, after I updated to 2021.1. It's just that the issues looks so alike (things known to exist being reporting as missing) that I considered it the same issue.

Thanks for taking a look :)

0

请先登录再写评论。