CudaText: Metals (lsp server for scala) not getting initialized

I installed metals for coursier and the lsp plugin. I made a file named lsp_scala.json This is the content in it

{
  "lexers": {
    "Scala": "scala"
  },
  "cmd_windows": ["C:\Users\User\AppData\Local\Coursier\data\bin\metals.bat"]
}

The message i get when i open a scala file:

Init: cuda_vim_mode
Init: cuda_lsp
ERROR: error on loading json. Log file: D:\Applications\cudatext-win-x64-1.163.4.0\settings\cudax.log
NOTE: LSP: server config error - no associated lexers: D:\Applications\cudatext-win-x64-1.163.4.0\settings\lsp_scala.json
NOTE: LSP: no server configs loaded from "D:\Applications\cudatext-win-x64-1.163.4.0\settings"

How do i resolve this error?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (10 by maintainers)

Most upvoted comments

Or to the directory of the passed editor file.

That’s only sent afterwards when the server is already started, so wouldn’t be much help.

It looks like maybe the server doesn’t start? Are you able to get some logs for that? Or maybe even start it from console to see if some obvious issues are being shown?