Skip to content

Implicit cradle failure: /home/user/.cabal: openFile: inappropriate type (is a directory) #417

Closed
Avi-D-coder/implicit-hie-cradle
#3
@georgefst

Description

@georgefst

The implicit cradle support is unfortunately completely broken for me, with an impenetrable error ($HOME/.cabal is indeed a directory...):

haskell-language-server version: 0.4.0.0 (GHC: 8.10.2) (PATH: /home/gthomas/.cabal/bin/haskell-language-server)
(haskell-language-server)Ghcide setup tester in /home/gthomas/Desktop/tmp.
Report bugs at https://github.com/haskell/haskell-language-server/issues

Tool versions found on the $PATH
cabal:          3.2.0.0
stack:          Not found
ghc:            8.10.2


Step 1/4: Finding files to test in /home/gthomas/Desktop/tmp
Found 1 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
[INFO] Consulting the cradle for "Tmp.hs"
NotShowMessage (NotificationMessage {_jsonrpc = "2.0", _method = WindowShowMessage, _params = ShowMessageParams {_xtype = MtWarning, _message = "No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for Tmp.hs.\n Proceeding with [implicit cradle](https://hackage.haskell.org/package/implicit-hie)"}})
File:     /home/gthomas/Desktop/tmp/Tmp.hs
Hidden:   no
Range:    1:0-2:0
Source:   compiler
Severity: DsError
Message:  /home/gthomas/.cabal: openFile: inappropriate type (is a directory)
Files that failed:
 * /home/gthomas/Desktop/tmp/Tmp.hs

Completed (0 files worked, 1 file failed)
[INFO] finish: User TypeCheck (took 0.00s)

This occurs with all cabal projects or standalone files that I've tried.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions