Skip to content

is parsing scala-cli .bsp directory out of scope for metals? #5479

Closed Answered by tgodzik
ag91 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the question, Metals does use .bsp but the dependency is not contained there. Those are available for Metals in .scala-build directory. Trying out your examples doesn't cause any issues. os-lib is available within Metals and can run there.

My workflow was:

mkdir test
cd test
echo "@main def run = println(os.pwd)" > main-test.scala
scala-cli setup-ide . --dep com.lihaoyi::os-lib:0.9.0
code .

and then everything worked fine in Metals.

Although I would suggest using directives for dependencies since you wouldn't need to add the dependency in the terminal each time.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ag91
Comment options

You must be logged in to vote
0 replies
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