Description
Your environment
Which OS do you use?
Debian 11.4
Which version of GHC do you use and how did you install it?
GHC 9.0.2 from GHCup 0.1.18.0
How is your project built (alternative: link to the project)?
With Cabal
Which LSP client (editor/plugin) do you use?
VSCode 1.69.2 with extension haskell.haskell 2.2.0
Which version of HLS do you use and how did you install it?
Version 1.7.0.0 from GHCup
Have you configured HLS in any way (especially: a hie.yaml
file)?
Simple Cabal cradle in hie.yaml
, but the problem happens even without it
Steps to reproduce
Put a local tarball as a package in the cabal.project
file. For example:
-- cabal.project
packages:
.
vendor/flow-2.0.0.0.tar.gz
Expected behaviour
The project should load, including the vendored tarball as a dependency.
Actual behaviour
The project fails to load.
Debug information
From the command line:
haskell-language-server-wrapper: .../vendor/vendor/flow-2.0.0.0.tar.gz: getDirectoryContents:openDirStream: inappropriate type (Not a directory)
From the extension:
[Error - 12:36:46 PM] setInitialDynFlags: .../vendor/flow-2.0.0.0.tar.gz: getDirectoryContents:openDirStream: inappropriate type (Not a directory)
Link to documentation about tarballs in cabal.project
: https://cabal.readthedocs.io/en/3.6/cabal-project.html#cfg-field-packages