haskell / haskell/haskell-language-server

When reporting build errors in multiple modules, sort modules either by last modification or dependency graph.

Open
#3,278 1 comment 0 reactions 0 assignees View on GitHub
status: in discussion type: enhancement
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
4d 3h
Merged PRs (30d)
12

Description

## Is your enhancement request related to a problem? Please describe.

Currently the ordering of *Modules* for error reporting can require repeated scrolling.

The situation is as follows:

* A project structure where `Main` depends on `Parser`.
* I change a type in the parser code.
* The change causes a new error in Main while there are still active type errors in the parser.
* HLS in VScode will show me first the type errors in Main (which are transient, and currently useless) before listing the errors in Parser.hs further down.

## Describe the solution you'd like

Ideally we would have a magic oracle that tells us which module a user is currently working on, and errors in that module would be shown first. Usually VSCode is pretty good at this but I think in the combination that a change causes a *new* error in Main but adds no error in Parser it starts showing the error list for Main.

## Describe alternatives you've considered

I usually do refactorings from the root of the dependency graph downwards so this behaviour is'nt helpful to me. But perhaps others find it helpful? I'm also not sure if HLS can even control the ordering.

## Additional context

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.