How to use metals to debug scala project with off-line (without internet) #1426
-
Hi,while using theia(the browser-based vscode like IDE) to develop the scala project,i met an issue as below: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Thanks for the question, we do download a bunch of thing on demand, which is why you are seeing those issues. We would need to prepare the workspace before like we do in https://github.com/scalameta/metals-gitpod-sample There might be more things needed like expression evaluator, which is only downloaded if needed for a specific version of Scala. We also have a special main class that can used (though expression eval is not added there due to omission): One might doubt if having everything on demand is actually a good model, but we haven't thought of anything better currently since there is way to many different Scala versions we support and putting it all into a single place to download, would be quite heavy, though it's not totally out of the question if needed. Do let us know your use case, maybe we can help out. |
Beta Was this translation helpful? Give feedback.
Maven shouldn't be an issue really. Do you see any logs in
.metals/metals.log
actually? We don't really download anything new when running debug, but by an off chance maybe there some logs that don't get to the metals output.You could also potentially set environment variable
COURSIER_MODE=offline
which should make things fail right away if it's not available locally.