expert-lsp / expert-lsp/expert

Saving in non-mix project clears diagnostics

Ouverte
#253 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Elixir
Étoiles
2.1k
Forks
113
Merge moyen
1 j 10 h
PR mergées (30 j)
26

Description

**Expert version (expert -v)**
Expert v0.1.0-b237fd5

**Steps to reproduce**

`min.lua`
```lua
vim.lsp.config('expert', {
cmd = { '/path/to/expert', '--stdio' },
root_markers = { 'mix.exs', '.git' },
filetypes = { 'elixir', 'eelixir', 'heex' },
})

vim.lsp.enable 'expert'
```

1. In a git repo, open elixir file with `nvim -u min.lua` containing:

```elixir
defmodule Test do
def execute() do
:foo + 1
end
end
```

Notice the diagnostic:

```
evaluation of operator '+'/2 will fail with a 'badarith' exception
```

2. Save in neovim with `:w`.
3. The dianostic then disappears.

The described behavior isn't observed with other LS.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.