Closed samuelchassot closed 5 months ago
Thanks for reporting! Does it work on the latest nightly, it uses newer version 4.0.4. @adpi2 any idea what might going on, or is it something fixed in later release?
any idea what might going on, or is it something fixed in later release?
I need to investigate this further.
Thanks for the reply! I'll test with the nightly, I'll keep you posted!
I'll test with the nightly, I'll keep you posted!
I think I know what's wrong and it should not work in the nightly. stainless
uses ghProject
and those projects don't have the DebugAdapterPlugin
enabled, hence the missing settings. I can fix this bug by filtering out the projects with missing settings.
that'd be great! :)
Describe the bug
When opening a project with metals, the plugin
sbt-adapter
is added to themetals.sbt
file (addSbtPlugin("ch.epfl.scala" % "sbt-debug-adapter" % "4.0.2")
). When the version 4.x is used, sbt crashes when loading the project with the following error message:The problem disappears when using the version 3.x of the plugin.
Expected behavior
The project should be loaded by sbt without crashing even when using metals.
Operating system
macOS
Editor/Extension
VS Code
Version of Metals
v1.31.0
Extra context or search terms
This can be reproduced with this project: https://github.com/epfl-lara/stainless