Skip to content

MetalsResetWorkspace command doesn't seem to do anything (+ How do I "un-import" a sbt workspace?) #582

Answered by ckipp01
JL102 asked this question in Q&A
Discussion options

You must be logged in to vote

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 root build.sbt and let it re-detect it. nvim-metals has some logic to traverse down and find the root build.sbt, but if there are situations where there are directories inbetween or something like that, then it might have issues.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JL102
Comment options

Answer selected by JL102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants