bazel-eclipse
bazel-eclipse copied to clipboard
BEF error: 'The method ... from the type ... refers to the missing type String'
Repro (ish):
- have JDK11 installed on your machine
- launch Eclipse with BEF installed
- import a valid Bazel workspace with Java packages
- open any of the Java files
- will see JDT red squiggly errors in the editor (but not Eclipse problems view)
"The method foo(String) from the type XYZ refers to the missing type String"
Workaround:
- right click on project in the Package Explorer
- Build Path -> Configure Build Path
- click on the Libraries tab
- click on the JDK 8 library, and then Remove
- click on the Classpath node, then Add Library...
- JRE, then your system JDK 11, then Finish
- Red squigglies will go away
With #88 already implemented, and #89 on the roadmap, this will eventually happen less. But we may need to do more work if those solutions don't resolve all the cases.