Skip to content

HLS keeps crashing (exit code -11, segfault, bus error, ..) with plutus pioneer program #1847

@tdiesler

Description

@tdiesler

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: .../.ghcup/bin/haskell-language-server-wrapper-1.1.0) (GIT hash: f1c096927186a93d8e3ccd4fe8385cc1b070350b)
Tool versions found on the $PATH
cabal:		3.4.0.0
stack:		2.5.1
ghc:		8.10.4

Which OS do you use: MacOS

Which lsp-client do you use: Atom

Cardano - Plutus Pioneer Program
https://github.com/tdiesler/plutus-pioneer-program/tree/mystuff/code

Contents of hie.yaml:

cradle:
  cabal:
    - path: "./src"
      component: "lib:plutus-proj01"

Steps to reproduce

Open any file in Atom e.g.
https://github.com/tdiesler/plutus-pioneer-program/blob/mystuff/code/proj01/src/Proj01/Counter1.hs

Actual behaviour

Atom repeatedly reports haskell-language-server crash - then gives up.

Include debug information

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

...
File:     /Users/tdiesler/git/plutus-pioneer-program/code/proj01/src/Proj01/Types.hs
Hidden:   no
Range:    235:12-235:78
Source:   typecheck
Severity: DsWarning
Message: 
  • The constraint ‘HasType
  Plutus.Contract.Effects.WriteTx.TxSymbol
  Plutus.Contract.Effects.WriteTx.WriteTxResponse
  (Plutus.Contract.Schema.Input s)’ matches
  instance forall k (r :: row-types-1.0.1.0:Data.Row.Internal.Row k)
  (l :: ghc-prim-0.6.1:GHC.Types.Symbol) (a :: k).
  ((r row-types-1.0.1.0:Data.Row.Internal..! l)
  row-types-1.0.1.0:Data.Row.Internal.≈ a) =>
  HasType l a r
  -- Defined in ‘row-types-1.0.1.0:Data.Row.Internal’
  This makes type inference for inner bindings fragile;
  either use MonoLocalBinds, or simplify it using the instance
  • In the type signature:
  logMyTx :: (HasBlockchainActions s) =>
  String -> MyTx -> Contract w s Text ()
File:     /Users/tdiesler/git/plutus-pioneer-program/code/proj01/src/Proj01/Types.hs
Hidden:   no
Range:    241:15-241:18
Source:   typecheck
Severity: DsWarning
Message:  Defined but not used: ‘pad’
File:     /Users/tdiesler/git/plutus-pioneer-program/code/proj01/src/Proj01/Types.hs
Hidden:   no
Range:    248:16-248:19
Source:   typecheck
Severity: DsWarning
Message:  Defined but not used: ‘pad’
haskell-language-server-wrapper: callProcess: /Users/tdiesler/.ghcup/bin/haskell-language-server-8.10.4 "--debug" (exit -11): failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    can-workaroundtype: 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