-
Hi, I wanted to "un-import" build.sbt from one of my project submodules, because its dependencies are declared inside the root project's build.sbt. And since I had Metals import build.sbt from the submodule, it seems to not recognize its dependencies, so all of the imports are being marked as not recognized. For example:
I tried running |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In this scenario if the wrong root was originally detected you'll want to just blow away the |
Beta Was this translation helpful? Give feedback.
In this scenario if the wrong root was originally detected you'll want to just blow away the
.metals/
,.bloop/
, and.bsp/
directories that were created in the incorrect way. Then re-open the project from the rootbuild.sbt
and let it re-detect it. nvim-metals has some logic to traverse down and find the rootbuild.sbt
, but if there are situations where there are directories inbetween or something like that, then it might have issues.