This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Unexpected bogus error diagnostic when exporting non-existant identifier #1498
Open
Description
Given following Test.hs
:
module Test (nonExistant) where
HIE produces:
"diagnostics": [
{
"severity": 1,
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 1,
"character": 0
}
},
"source": "bios",
"message": ""
},
{
"severity": 1,
"range": {
"start": {
"line": 0,
"character": 13
},
"end": {
"line": 0,
"character": 24
}
},
"source": "bios",
"message": "Not in scope: ‘nonExistant’"
}
]
See first diagnostic object. Looks redundant and useless but worse than that it highlights whole line in my neovim setup and shadows real useful diagnostic. I had no idea wtf is going on until I examined output of HIE in verbose mode :(