vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

Intellisense breaks for JDK types when certain (scala) libs are on the classpath

Open spangaer opened this issue 8 months ago • 2 comments

When triggering autocomplete (ctrl+space) targeting JDK type java.lang.reflect.Field or java.util.List and certain (scala) libs are on the classpath, expected suggestions are not coming.

I've observed that List and Function are broken by the scala lib itself and Field is broken by Akka HTTP

Environment
  • Operating System: Windows
  • JDK version: 21.0.3 (Adoptium)
  • Visual Studio Code version: 1.90.2
  • Java extension version: 1.32.1
Steps To Reproduce
  1. Attempt auto complete on variable type

Reproducer with dev container: https://github.com/spangaer/vscode-javals-completion-issue (Dev container because SBT generated eclipse files, but my guess is that doesn't matter)

Current Result

image image

Expected Result

image image

Additional info

It looks to be really specific to the code completions. e.g creating a local var using Quick Fix... type inference does find the JDK types.

spangaer avatar Jun 27 '24 19:06 spangaer