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.

Manage initial module loading UI process #460

Open

Description

@alanz

At the moment, when a file is opened, we request diagnostics on it as usual, and return a "Module not Loaded" error message.

Once the compilation is complete, if it succeeds, then we start getting hover info etc.
If the compilation fails, we continue to get the "Module not Loaded" warning.

We need to manage UI messaging better.

  1. Initial "Loading module" message rather than an error
  2. Return a message when the loading process completes, with the outcome
  3. If the module load fails due to errors in the current module, send those as diagnostics
  4. What if the load fails for errors in another module?

Activity

  1. nponeccop commented on Feb 4, 2018

    @nponeccop
    Contributor

    See also the monotonicity considerations of #416. Essentially it is

    1. What if module compilation fails, but we have stale compilation results for it?

    Especially in the case 4.

  2. alanz commented on Feb 21, 2018

    @alanz
    CollaboratorAuthor

    There is also case 0, hie GHC version does not match project GHC version

  3. alanz commented on Aug 18, 2018

    @alanz
    CollaboratorAuthor

    We need to revisit this, based on real world feedback.

    cc @reactormonk

  4. added this to the 2019-01 milestone on Dec 24, 2018
  5. modified the milestones: 2019-01, 2019-02 on Feb 2, 2019
  6. modified the milestones: 2019-02, 2019-03 on Mar 2, 2019
  7. modified the milestones: 2019-03, 2019-04 on Apr 6, 2019
  8. modified the milestones: 2019-04, 2019-05 on May 4, 2019
  9. modified the milestones: 2019-05, 2019-06 on Jun 1, 2019
  10. modified the milestones: 2019-06, Some time on Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions