scalameta / metals

Scala language server with rich IDE features 🚀

Home Page:https://scalameta.org/metals/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bazel: no error diagnostics

susliko opened this issue · comments

Describe the bug

Steps to reproduce:

  1. Import project into editor
  2. Write any code that should not compile
  3. Diagnostics are missing, but there is a compilation error in logs:
image

Expected behavior

Error diagnostics in editor

Operating system

macOS

Editor/Extension

Nvim (nvim-metals)

Version of Metals

v1.2.2

Extra context or search terms

bazel

Double checked and it seems that we get wrong diagnostics with non-existing URIs

"textDocument": {
    "uri": "file:///home/tgodzik/Documents/workspaces/metals-bazel/%3Cunknown%3E"
  },