Skip to content
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
@Anrock

Description

@Anrock

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 :(

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions