-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
Import bug, suggestion PRAGMA's not submodules #3617
Comments
Not sure if this would constitute a different ticket, but I get similar behaviour after any The adjustment I would recommend (and I understand it may not be easy at all) is to completely disallow pragma completion unless it's in a pragma context, by which I mean |
This should definitely not happen, and I don't think it used to 🤔 |
I will work on this during ZuriHac. |
@akshaymankar I believe @fendor is working on it? he can correct me if not :) |
I am not working on it, I was just adding the zurihac label, so this is free for the taking :) |
Closed by #3647 |
Thanks @fendor and @akshaymankar |
Your environment
Which OS do you use?
MacOS M1 Pro Ventura 13.2
Which version of GHC do you use and how did you install it?
Via GHCUP
GHC 9.6.1 (base-4.18.0.0) happens with 9.2.7 also
Cabal 3.6.20
Stack 2.9.3
How is your project built (alternative: link to the project)?
Cabal
Which LSP client (editor/plugin) do you use?
Neovim with Coc
gist example of the language server setup
Which version of HLS do you use and how did you install it?
HLS 2.0.0.0 from GHCUP, also happens with 1.10.0.0
Have you configured HLS in any way (especially: a
hie.yaml
file)?Only Coc setup
Steps to reproduce
Create a project via cabal init, go to app/Main.hs, proceed to import a module, such as
Data.List
orControl.Concurrent
Expected behaviour
Provide only suggestions for submodules
Actual behaviour
Whilst pressing . to access the submodule, PRAGMA's are suggested, such as, LANGUAGE, OPTIONS_GHC, then the submodules are at the bottom of the suggestion list
The text was updated successfully, but these errors were encountered: