bazel-eclipse icon indicating copy to clipboard operation
bazel-eclipse copied to clipboard

BEF error: 'The method ... from the type ... refers to the missing type String'

Open plaird opened this issue 5 years ago • 1 comments

Repro (ish):

  1. have JDK11 installed on your machine
  2. launch Eclipse with BEF installed
  3. import a valid Bazel workspace with Java packages
  4. open any of the Java files
  5. 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:

  1. right click on project in the Package Explorer
  2. Build Path -> Configure Build Path
  3. click on the Libraries tab
  4. click on the JDK 8 library, and then Remove
  5. click on the Classpath node, then Add Library...
  6. JRE, then your system JDK 11, then Finish
  7. Red squigglies will go away

plaird avatar Dec 30 '19 22:12 plaird

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.

plaird avatar Mar 31 '20 07:03 plaird