Skip to content

Import bug, suggestion PRAGMA's not submodules #3617

Closed
@sixfourtwelve

Description

@sixfourtwelve

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 or Control.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

image

Metadata

Metadata

Assignees

Labels

HackathonThis issue is suitable for hackathon sessionstype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions