Why is error checking not working?

已回答

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

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

Does it help?

0

请先登录再写评论。