Skip to content

Unable to get code completion or other lsp features - stuck type checking the files #1624

Closed
@F15Ky

Description

@F15Ky

Your environment

Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools:

cabal:		3.4.0.0
stack:		2.5.1
ghc:		8.10.4

Which lsp-client do you use:
Doom Emacs
Describe your project (alternative: link to the project):
Contents of cabal file:

cabal-version:       >=1.10
name:                Everything-Manager
version:             0.1.0.0
synopsis:            System used to optimize the efficiency of achieving goals.
bug-reports:         https://github.com/fairy-tale-agi-solutions/Everything-Manager/issues
license:             MIT
license-file:        LICENSE
author:              Răzvan Flavius Panda
maintainer:          [email protected]
category:            Productivity
build-type:          Simple
extra-source-files:  CHANGELOG.md, README.md

executable Everything-Manager
  main-is:             Main.hs
  -- other-modules:       Lib.EverythingManager
  build-depends:       base,
                       containers,
                       generic-lens,
                       lens,
                       text,
                       hedgehog,
                       postgresql-simple,
                       product-profunctors,
                       opaleye,
                       miso,
                       turtle
  default-language:    Haskell2010
  default-extensions:  DataKinds,
                       DeriveGeneric,
                       DuplicateRecordFields,
                       FlexibleContexts,
                       OverloadedStrings,
                       TypeApplications,
                       Arrows,
                       RecordWildCards

library Everything-Manager-Library
  -- other-modules:       Lib.EverythingManager
  build-depends:       base,
                       containers,
                       generic-lens,
                       lens,
                       text,
                       hedgehog,
                       postgresql-simple,
                       product-profunctors,
                       opaleye,
                       miso,
                       turtle

  default-language:    Haskell2010
  default-extensions:  DataKinds,
                       DeriveGeneric,
                       DuplicateRecordFields,
                       FlexibleContexts,
                                            

Steps to reproduce

After setting up haskell language server and lsp-haskell for emacs, I still get no completion.

Expected behaviour

I expect code completion as well as other lsp features.

Actual behaviour

No code completion is given.

Include debug information

Execute in the root of your project the command haskell-language-server --debug . and paste the logs here:

Debug output: haskell-language-server version: 1.0.0.0 (GHC: 8.10.4) (PATH: /home/ben/.local/bin/haskell-language-server) (GIT hash: 8dbeae1) ghcide setup tester in /home/ben/Documents/haskell/Everything-Manager. Report bugs at https://github.com/haskell/haskell-language-server/issues

Step 1/4: Finding files to test in /home/ben/Documents/haskell/Everything-Manager
Found 6 files

Step 2/4: Looking for hie.yaml files that control setup
Found 1 cradle
()

Step 3/4: Initializing the IDE

Step 4/4: Type checking the files
2021-03-26 17:52:59.383441561 [ThreadId 4] DEBUG hls: Set files of interest to: [(NormalizedFilePath "/home/ben/Documents/haskell/Everything-Manager/Setup.hs",OnDisk),(NormalizedFilePath "/home/ben/Documents/haskell/Everything-Manager/Lib/EverythingManager.hs",OnDisk),(NormalizedFilePath "/home/ben/Documents/haskell/Everything-Manager/install.hs",OnDisk),(NormalizedFilePath "/home/ben/Documents/haskell/Everything-Manager/test/TestEverythingManager.hs",OnDisk),(NormalizedFilePath "/home/ben/Documents/haskell/Everything-Manager/Main.hs",OnDisk),(NormalizedFilePath "/home/ben/Documents/haskell/Everything-Manager/Lib/Connection.hs",OnDisk)]

<paste your logs here>

Paste the logs from the lsp-client, e.g. for VS Code

LSP logs: https://gist.github.com/F15Ky/69e242397f60575147460afe9262c7f8
<paste your logs here>

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: 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