Reputation: 131
The red hat java vscode extension randomly started giving me this warning The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
on all my files, I've tried to find out how to fix this but I can't find anything about this problem on vscode. I've only found a solution for this problem for eclipse (here), could anyone tell me what the equivalent of that would be for vscode, or any other way to fix this warning.
Upvotes: 6
Views: 2534
Reputation: 131
Just ran Java: Clean Java Language Server Workspace
and it fixed everything
Upvotes: 7