nus-cs2103-AY2122S2 / forum

13 stars 1 forks source link

Why does IntelliJ show related problems when methods are not related? #205

Closed Punpun1643 closed 2 years ago

Punpun1643 commented 2 years ago

While trying to implement some methods, I realise IntelliJ sometimes show "related problems" for the methods. An example would be for this hasGroup method.

Screenshot 2022-03-11 at 1 31 22 PM

However, upon inspection, I realise the related problems are in tests that use other methods that are not related. An example is the tests that use hasPerson method.

Screenshot 2022-03-11 at 1 34 15 PM

I'm wondering why this is so. Although I am able to pass all the current test cases so far.

damithc commented 2 years ago

@Punpun1643 See if File -> Invalidate Caches help get rid of the problems indicated by Intellij.

Punpun1643 commented 2 years ago

Hi prof, that works thank you!