Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

hls-cabal-plugin: autogen-module completion is missing #4526

Open
fendor opened this issue Mar 24, 2025 · 1 comment · May be fixed by #4534
Open

hls-cabal-plugin: autogen-module completion is missing #4526

fendor opened this issue Mar 24, 2025 · 1 comment · May be fixed by #4534
Labels
component: hls-cabal-plugin Issues related to the hls-cabal-plugin level: easy The issue is suited for beginners type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@fendor
Copy link
Collaborator

fendor commented Mar 24, 2025

Image

The completion doesn't seem to include autogen-modules.

Your environment

HLS 2.9.0.1

Which OS do you use?
Arch Linux
Which version of GHC do you use and how did you install it?
9.6.6
How is your project built (alternative: link to the project)?
cabal

Steps to reproduce

In any correct .cabal file stanza, write:

library my-lib
  autogen

Expected behaviour

Should offer completion for the autogen-modules key

Note: I don't expect completions for the modules within a autogen-modules field. That's probably impossible.

Actual behaviour

Does not offer the completion

@fendor fendor added status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. level: easy The issue is suited for beginners component: hls-cabal-plugin Issues related to the hls-cabal-plugin and removed status: needs triage labels Mar 24, 2025
@fendor
Copy link
Collaborator Author

fendor commented Mar 24, 2025

Same issue for autogen-includes

@rm41339 rm41339 linked a pull request Apr 1, 2025 that will close this issue
Sid1005 added a commit to Sid1005/haskell-language-server that referenced this issue Apr 1, 2025
Sid1005 added a commit to Sid1005/haskell-language-server that referenced this issue Apr 2, 2025
Sid1005 added a commit to Sid1005/haskell-language-server that referenced this issue Apr 2, 2025
Sid1005 added a commit to Sid1005/haskell-language-server that referenced this issue Apr 2, 2025
…e stanzas (haskell#4526)

This adds completions for the `autogen-modules:` and `autogen-includes:` fields across
library, executable, test-suite, and benchmark stanzas in Cabal files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: hls-cabal-plugin Issues related to the hls-cabal-plugin level: easy The issue is suited for beginners type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant