Skip to content

Add missing cases Feature is not available #4489

Open
@mesudip

Description

@mesudip

Your environment

Which OS do you use?
Ubuntu
Which version of GHC do you use and how did you install it?
ghcup (ghc: 9.4.8)
How is your project built (alternative: link to the project)?

Which LSP client (editor/plugin) do you use?
VsCode
Which version of HLS do you use and how did you install it?

haskell-language-server version: 2.9.0.1 (GHC: 9.4.8) (PATH: /home/sudip/.ghcup/hls/2.9.0.1/lib/haskell-language-server-2.9.0.1/bin/haskell-language-server-9.4.8)

Have you configured HLS in any way (especially: a hie.yaml file)?
no.

What

Not long before in the era of ghc8, I could autocomplete on a case with all the cases . I have heavily relied on this feature. It made possible to work with libraries without understanding everything about a data type. In recent versions this feature has vanished making it compulsary to dive into library code

Current

In this screen all I have is Add EmptyCase It doesn't suggest Add missing cases options at all

Image

Activity

added
type: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..
on Feb 7, 2025
fendor

fendor commented on Feb 7, 2025

@fendor
Collaborator

Hi, thanks for the bug report!

Unfortunately, we had to remove that feature because it became unmaintainable due to GHC API changes. There is a huge paper trail of attempts to salvage it, see #2971, #3382, #3352, #3363, #3338, #3337 and many more.

It needs someone to take the time to essentially re-implement the feature for new GHC versions.

added and removed
type: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..
on Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @fendor@mesudip

        Issue actions

          Add missing cases Feature is not available · Issue #4489 · haskell/haskell-language-server