Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add missing cases Feature is not available #4489

Open
mesudip opened this issue Feb 7, 2025 · 1 comment
Open

Add missing cases Feature is not available #4489

mesudip opened this issue Feb 7, 2025 · 1 comment
Labels
type: enhancement New feature or request

Comments

@mesudip
Copy link

mesudip commented Feb 7, 2025

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
@mesudip mesudip added status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. labels Feb 7, 2025
@fendor
Copy link
Collaborator

fendor commented Feb 7, 2025

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.

@fendor fendor added type: enhancement New feature or request and removed type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. status: needs triage labels Feb 7, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants