Skip to content

Import/export errors block import/export re-scanning #2897

@deemp

Description

@deemp

Your environment

Which OS do you use:
Ubuntu 20.04
Which LSP client (editor/plugin) do you use:
VS Code+Haskell+enabled autosave there
Describe your project (alternative: link to the project):
link

Steps to reproduce

  1. Clone the project's repo and switch to the second commit (link). In module A, module B will be highlighted red.
    image
  2. Create B.hs as in the third commit (link). Though B does export b, in module A, module B will still be highlighted red.
    image
    And there will be an error
    image

Expected behaviour

When a module exports a function, the errors for modules which expected such function should be re-checked.

Actual behaviour

Instead, if there happens an error, HLS blocks further export/import checks, and there is no way to make checks start again without restarting the HLS

Include debug information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions