Closed
Description
- From discod user mallory
- os and ghc: linux kernel 4.4.0-21-generic and installed ghc with ghcup using the deb9 download
- Output of calling hls in the cli
~/.config/Code/User/globalStorage/haskell.haskell/haskell-language-server-1.3.0-linux-9.0.1 --logfile=./log.txt
haskell-language-server version: 1.3.0.0 (GHC: 9.0.1) (PATH: /home/foo/.config/Code/User/globalStorage/haskell.haskell/haskell-language-server-1.3.0-linux-9.0.1) (GIT hash: e7c5e90b6df5dff2760d76169eddaea3bdd6a831)
ghcide setup tester in /home/foo/Documents/git/haskell/project.
Report bugs at https://github.com/haskell/haskell-language-server/issues
Step 1/4: Finding files to test in /home/foo/Documents/git/haskell/project
Found 2 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
Output from setting up the cradle Cradle {cradleRootDir = "/home/foo/Documents/git/haskell/project", cradleOptsProg = CradleAction: Cabal}
Output from setting up the cradle Cradle {cradleRootDir = "/home/foo/Documents/git/haskell/project", cradleOptsProg = CradleAction: Cabal}
> Build profile: -w ghc-9.0.1 -O1
> In order, the following will be built (use -v for more details):
> - git-backup-0.1.0.0 (exe:git-backup) (first run)
> Preprocessing executable 'git-backup' for git-backup-0.1.0.0..
Output from setting up the cradle Cradle {cradleRootDir = "/home/foo/Documents/git/haskell/project", cradleOptsProg = CradleAction: Cabal}
Segmentation fault
- lsp output
2021-07-31 12:45:26.767378645 [ThreadId 24] INFO hls: Consulting the cradle for "Setup.hs"
2021-07-31 12:45:26.767525619 [ThreadId 24] WARNING hls: No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for Setup.hs.
Proceeding with [implicit cradle](https://hackage.haskell.org/package/implicit-hie).
You should ignore this message, unless you see a 'Multi Cradle: No prefixes matched' error.
2021-07-31 12:45:26.775157013 [ThreadId 21] INFO hls: File: /home/foo/Documents/git/haskell/project/Setup.hs
Hidden: no
Range: 1:1-2:1
Source: cradle
Severity: DsError
Message:
�[0;91mMulti Cradle: No prefixes matched
pwd: /home/foo/Documents/git/haskell/project
filepath: /home/foo/Documents/git/haskell/project/Setup.hs
prefixes:
("./Main.hs",Cabal {component = Just "project:exe:project"})�[0m
2021-07-31 12:45:26.775771921 [ThreadId 26] INFO hls: Consulting the cradle for "Main.hs"
2021-07-31 12:45:26.775869639 [ThreadId 26] WARNING hls: No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for Main.hs.
Proceeding with [implicit cradle](https://hackage.haskell.org/package/implicit-hie).
You should ignore this message, unless you see a 'Multi Cradle: No prefixes matched' error.
2021-07-31 12:45:27.391583164 [ThreadId 26] INFO hls: Using interface files cache dir: /home/foo/.cache/ghcide/main-1e96f7f938b8e41aea62c1acec06786020a2cbc7
2021-07-31 12:45:27.391889268 [ThreadId 26] INFO hls: Making new HscEnv[main]
2021-07-31 12:45:27.408326901 [ThreadId 53] INFO hls: Consulting the cradle for "Setup.hs"
2021-07-31 12:45:27.408397278 [ThreadId 53] WARNING hls: No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for Setup.hs.
Proceeding with [implicit cradle](https://hackage.haskell.org/package/implicit-hie).
You should ignore this message, unless you see a 'Multi Cradle: No prefixes matched' error.
- User reports hls works fin in a new simple project and this one has template haskell which works with 8.10