Why is error checking not working?

Answered

I have two separate projects where error checking isn't working, both were cloned from previous repos. 

 

In the first case, it *should* be flagging an error but it doesn't. I'm trying to assign an int to a String property. But it doesn't show anything wrong. (The compiler complains though when I run the project):

 

In the second case, it's complaining that there's no such thing as a Long, when that's built in to Java and the compiler runs everthing fine:

How do I debug these problems? They seem to be related.

Thanks.

 

0
4 comments
Avatar
Yaroslav Bedrov

Hello,

Have you tried to run "File | Invalidate Caches"? Does IDE  show any items in "Project Structure | Problems"?

 

1

Thanks. Didn't know that existed.

0
Avatar
Yaroslav Bedrov

Does it help?

0

Yes, thank you!

0

Please sign in to leave a comment.