scalameta / metals

Scala language server with rich IDE features 🚀

Home Page:https://scalameta.org/metals/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Metals doesn't import build using Maven or Gradle when using `"metals.defaultBspToBuildTool": true`

carlosedp opened this issue · comments

Describe the bug

I normally use pure Scala projects with Mill so I've set "metals.defaultBspToBuildTool": true on VSCode but I noticed on a project I have which has both Maven and Gradle build configs, Metals doesn't import the project with that setting as true.

If I comment the "metals.defaultBspToBuildTool": true line, both Maven and Gradle projects are imported fine.

image

Expected behavior

Maven and Gradle projects imported normally.

Operating system

macOS

Editor/Extension

VS Code

Version of Metals

v1.3.0+56

Extra context or search terms

No response

Thanks for the report, it does seem this case is incorrectly handled.

Thanks for the crazy fast fix!