expert-lsp / expert-lsp/expert

Saving in non-mix project clears diagnostics

Open
#253 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Elixir
Stars
2.1k
Forks
113
Avg merge
1d 10h
Merged PRs (30d)
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.