emacs-lsp / lsp-metals

lsp-mode :heart: metals
https://emacs-lsp.github.io/lsp-metals
GNU General Public License v3.0
58 stars 34 forks source link

Metals Not Loading Correctly for Project #94

Open sdrafahl opened 1 year ago

sdrafahl commented 1 year ago

Describe the bug Today Metals is having problems trying to connect to a local project.

I created a brand new Scala 2.13 project and Metals is failing to load the project. I posted below errors.

It seems it doesn't produce a bloop file. I tried using VS Code with Metals and it does work for the same project so I believe its an Emacs issue.

This started happening today.

To Reproduce Create a brand new Scala 2.13 and try to build import. Emacs 28.1.

Expected behavior The Metals should produce a bloop file and load the project.

Logs

2023.04.06 14:28:50 ERROR Empty build targets. Expected at least one build target identifier.
2023.04.06 14:28:50 ERROR Empty build targets. Expected at least one build target identifier.
2023.04.06 14:28:50 ERROR Empty build targets. Expected at least one build target identifier.
2023.04.06 14:28:50 ERROR Empty build targets. Expected at least one build target identifier.
2023.04.06 14:28:52 INFO  time: indexed workspace in 1.37s
2023.04.06 14:28:52 WARN  no build target for: /Users/shane.drafahl/test123/src/main/scala/example/Hello.scala
2023.04.06 14:28:52 WARN  no build target for: /Users/shane.drafahl/test123/src/main/scala/example/Hello.scala
kurnevsky commented 1 year ago

I don't think this has anything to do with lsp-metals. This looks like an error from metals iteslf.

This started happening today.

Have you tried to install earlier version?