metals icon indicating copy to clipboard operation
metals copied to clipboard

frequent errors on using metals

Open scarf005 opened this issue 2 months ago • 3 comments

  1. try to work with any scala file
  2. metals continuously fails to work

Expected behaviour:

metals doesn't error on single files

Operating system: Linux

Java version: 24.0.1

Editor/extension: Visual Studio Code - Insiders v1.106.0-insider

Metals version: 1.6.3+11-df8101a3-SNAPSHOT

Extra context or search terms:

reports.zip

Workspace information:

  • Scala versions: 3.7.3
  • Build tools: scala-cli
  • Build servers: scala v1.7.0
  • All build tools in workspace:

scarf005 avatar Oct 26 '25 06:10 scarf005

Thanks for reporting! I looks like the errors show up a lot on non-parsing code. That part of the code shouldn't be invoked that often and only really at the start. I haven't seen metals behaving this way, is there anything specific about the codebase?

tgodzik avatar Oct 26 '25 16:10 tgodzik

Also, all those errors are caught and should not cause Metals to fail to work. I think we might need a bit more info about the problem.

tgodzik avatar Oct 26 '25 16:10 tgodzik

is there anything specific about the codebase?

https://github.com/scarf005/leet

it's a simple scala-cli project with project.scala and bunch of isolated scala files

scarf005 avatar Oct 26 '25 16:10 scarf005