VS code cannot resolve location of FRC dependencies

Our team installed the new 2019 update suite using the Screenstepslive guide. Aften the install, VS code couldn’t resolve location of the WPILib dependencies. When hovering over the imports, it gives the popup “compiler.err.doesnt.exist”. GradleRIO can build without trouble. All project dependencies appear under the “Java Dependencies” section of VS Code. Yet, VS Code still cannot seem to resolve the location of these dependencies. What next steps should we take to resolve this issue?

We’re using macOS 10.14.11 on this machine.

Images here: https://imgur.com/a/E2RqSFG

I experienced the same issue. The solution in this post helped me.

TL;DR

Cmd+Shift+P 
Java: Clean the Java language server workspace
1 Like

Hmm. I tried this. It didn’t work. I spend about 10 hours trying everything. I concluded it was an issue between VS code and the Java compiler. VS code’s compiler must not have been able to construct the proper classpath. JAVA_HOME was set correctly. Switched to IntelliJ. Very happy now.