Open aumann opened 1 year ago
Thanks for reporting! Looks like we are not setting the correct classpath in the Bloop sbt plugin, this might need a fix upstream in Bloop.
Just FYI there is an upstream issue that we haven't worked on yet https://github.com/scalacenter/bloop/pull/1387
Describe the bug
I've just noticed this with a project using slf4j, with logback being on the runtime classpath.
Now, when I run the program from VS Code I get the "no providers found" message:
Everything works as expected if I execute
sbt run
I've taken a look at the "*.metals-buildtarget" file, and logback isn't there either.
If I add logback to the compile scope everything works as expected. This is mostly a "nice to have" for this project of mine, but there may be cases where this is more surprising and harder to diagnose.
Expected behavior
Runtime dependencies should be on the classpath when the program is run.
Edit: Note that logback is on the test classpath - running tests works as expected
Operating system
Windows
Editor/Extension
VS Code
Version of Metals
0.11.10
Extra context or search terms
Let me know if I should provide a minimized project. I just wanted to open the issue first - maybe it's obvious or known, and there is something I can change on my side.
The doctor shows all green checkboxes for the project.