terdong
terdong

Reputation: 43

The quick fix feature for importing classes from other packages in Scala doesn't work in vscode and metals

I used the quick fix that provided by vscode to automatically import the package, but it doesn't work. how can i solve it? enter image description here

And this is my metals doctor in this project. enter image description here

Maybe metals doesn't support the quick fix feature?

I installed an old version of vscode. Metals also installed an older version. Also, I changed JDK 11 and 17 versions. I also installed only metals extension to avoid conflicts with other vscode extensions.

If I click quick fix, it should expect to be entered at the top of the file like "import seed.model.Person"

Upvotes: 2

Views: 618

Answers (0)

Related Questions