Scala metals workspace error
Hey folks,
How are u doing?
I've been trying to use this template using scala metals as my "IDE" and it always returns me the same error when trying to import the build.
Build server currently being used is Bloop v1.4.12.
These are the installed build targets for this workspace. One build target corresponds to one classpath. For example, normally one sbt project maps to two build targets: main and test.
Build target | Type | Diagnostics | Interactive | Semanticdb | Debugging | Java support | Recommendation
-- | -- | -- | -- | -- | -- | -- | --
root | Scala 3.1.0 | ✅ | ✅ | ✅ | ✅ | ✅ |
root-test | Scala 3.1.0 | ✅ | ✅ | ✅ | ✅ | ✅ |
gitpod-g8-build | sbt 1.6.1 | ⚠️ | ✅ | ✅ | ❌ | ✅ | Diagnostics and debugging for sbt are not supported currently.
What should I do?
Does Metals work for you for any Scala 2 or Scala 3 projects at all? Is it only projects made using this template that fail...?
The error line mentions Gitpod. I'm wondering how that's entering into this. Are you using Gitpod?
(I'm trying to figure out whether there is actually something wrong with this template, or whether the problem is elsewhere, in order to figure out where to direct you for help. If there's something in this template that needs fixing, this issue tracker is the right place. If not, we need to send you to https://users.scala-lang.org — which is always a suitable starting point when you're having trouble with something Scala related — or to Metals-specific community support.)
Just jumping in here to say that this should be addressed with newer versions of Metals. You're seeing a few different messages:
- The X on java support for the
*-buildtarget. This is expected as your actual sbt build doesn't support Java. The warning since this has been fixed however. - Same with debugging, debugging in supported in Scala/Java targets, but not your actual sbt build target.
- The Diagnostics message should also be fixed Please do try the latest Metals and report any problems you might be experiencing over there.