metals-vscode icon indicating copy to clipboard operation
metals-vscode copied to clipboard

Sbt bloopInstall

Open tsxjsx opened this issue 11 months ago • 3 comments

Sbt bloopInstall take long time Screenshot from 2024-02-28 10-21-54

tsxjsx avatar Feb 28 '24 04:02 tsxjsx

Thanks for reporting, but if the code compiles long and uses generated source then it will take that much time. I would need more actionable data to do anything about it.

I would ask you to try provide a bit more information in your issue and maybe use the template provided to get us some basic information. You should try to put yourself in our shoes, would you be able to fix anything if provided a single screenshot?

tgodzik avatar Feb 28 '24 11:02 tgodzik

thanks for reply You should try to put yourself in our shoes, would you be able to fix anything if provided a single screenshot? i agree tgodzik

How to Reproduce?:- 1->clone this sample project :- https://github.com/abdheshkumar/scala-examples.git 2->note that In the first time metals not automatically compile the project we manually execute the start the scala cli command. 3->once you compiled plz execute the import build command manually or vscode popup through

setup:- fallback scala version:- 2.12.17 metals version :- 1.2.2 javaHome :- openjdk11

tsxjsx avatar Feb 28 '24 12:02 tsxjsx

Your project seems to use sbt version 0.13.16, which is not supported by metals, and importing the build will not work. If you upgrade your sbt version and used Scala version the project should work as expected.

Note also that start the scala cli command will start a scala-cli build server and use it for compiling, this will completely ignore build information coming from build.sbt and shouldn't be used for sbt projects.

Hope this helps.

kasiaMarek avatar Mar 05 '24 12:03 kasiaMarek