mpickering/ghcide

Cannot find PackageName for installed unit-id.

Opened this issue · 1 comments

Reproduce:

git clone https://github.com/kcsongor/generic-lens
cd generic-lens
echo "cradle: { cabal: {}}" > hie.yaml

Opening any file using PackageImports, the following error is shown:

very bad
CallStack (from HasCallStack):
  error, called at src\\Development\\IDE\\Import\\FindImports.hs:87:23 in ghcide-0.1.0-10c2bb614e6777502ff4a3c9565e86a7c68c2766:Development.IDE.Import.FindImports

Which comes from this line: https://github.com/mpickering/ghcide/blob/hls/src/Development/IDE/Import/FindImports.hs#L87

Probably fixed by #40