Skip to content

Reduction stack overflow error loading ghcide code base #1743

Closed
@berberman

Description

@berberman

Your environment

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

haskell-language-server version: 1.1.0.0 (GHC: 8.10.4) (PATH: /home/berberman/.cabal/store/ghc-8.10.4/haskell-language-server-1.1.0.0-e-haskell-language-server-eb05d8a7d7a91e13040e70afeca109451ba08bb704fbbea7e3581a1a6a883d57/bin/haskell-language-server)
Tool versions found on the $PATH
cabal:          3.4.0.0
stack:          Not found
ghc:            8.10.4

Which OS do you use:
NixOS
Which lsp-client do you use:
VSCode
Describe your project (alternative: link to the project):
ghcide

Steps to reproduce

Open Development.IDE.GHC.ExactPrint module

Expected behaviour

The module can be loaded

Actual behaviour

Typecheck failed at line 298:

• Reduction stack overflow; size = 201
  When simplifying the following type: Outputable SrcSpan
  Use -freduction-depth=0 to disable this check
  (any upper bound you could choose might fail unpredictably with
   minor updates to GHC, so disabling the check is recommended if
   you're sure that type checking should terminate)
• In the expression: annotate dflags needs_space
  In the second argument of ‘($)’, namely
    ‘annotate dflags needs_space $ mk_parens val'’
  In a stmt of a 'do' block:
    (anns, val'') <- hoistTransform (either fail pure)
                       $ annotate dflags needs_space $ mk_parens val'

This function was added in #1721

Metadata

Metadata

Assignees

No one assigned

    Labels

    old_type: metaPlaning and organizing other issuesstatus: needs infoNot actionable, because there's missing informationtype: 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