-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
Just trying out the haskell-hie indexer. I feel like something like this should work but no luck:
# in the tests dir
$ pwd
/home/dons/Glean/glean/lang/haskell/tests/code
# make some .hie files
$ ghc --make -fwrite-ide-info B.hs
Loaded package environment from /home/dons/.ghc/x86_64-linux-8.10.7/environments/default
[1 of 2] Compiling A ( A.hs, A.o )
[2 of 2] Compiling B ( B.hs, B.o )
$ ls
A.hi A.hie A.hs A.o B.hi B.hie B.hs B.o
$ cd
$ cd Glean/
$ glean-shell
Glean Shell, built on 2022-06-09 02:22:49.685202174 UTC, from rev b5af6c875a448322c83bfa50c2148428450e735a
type :help for help.
> :index haskell-hie Glean/glean/lang/haskell/tests/code
I0609 04:20:54.879848 2594231 DefaultMain.hs:44] BEGIN buildXrefMapFiles
I0609 04:20:54.880440 2594231 Builder.hs:93] Path of hiedb = /tmp/extra-file-46386356845652-2594231-0
I0609 04:20:54.880554 2594231 Builder.hs:94] Repo path = .
I0609 04:20:54.880653 2594231 Builder.hs:453] BEGIN getDefsVertices
I0609 04:20:54.880975 2594231 Builder.hs:453] END getDefsVertices
I0609 04:20:54.881105 2594231 Builder.hs:99] Number of vertices in the graph = 0
I0609 04:20:54.881202 2594231 Builder.hs:155] BEGIN mkFileLinesMap
I0609 04:20:54.881250 2594231 Builder.hs:155] END mkFileLinesMap
I0609 04:20:54.881429 2594231 DefaultMain.hs:44] FAILED buildXrefMapFiles: File line map is empty!!
CallStack (from HasCallStack):
error, called at glean/lang/haskell/HieDBIndexer/Builder.hs:133:7 in main:HieDBIndexer.Builder
hiedb-indexer: File line map is empty!!
CallStack (from HasCallStack):
error, called at glean/lang/haskell/HieDBIndexer/Builder.hs:133:7 in main:HieDBIndexer.Builder
E0609 04:20:54.888273 2594178 Work.hs:281] code/5: database failed in parcel 0 of task '': callCommand: /home/dons/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/x/hiedb-indexer/build/hiedb-indexer/hiedb-indexer '--service' 'localhost:41303' '--repo-name' 'code' '--repo-hash' '5' '--repo-path' '.' '--dont-create-db' 'Glean/glean/lang/haskell/tests/code' '' (exit 1): failed
*** Exception: callCommand: /home/dons/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/x/hiedb-indexer/build/hiedb-indexer/hiedb-indexer '--service' 'localhost:41303' '--repo-name' 'code' '--repo-hash' '5' '--repo-path' '.' '--dont-create-db' 'Glean/glean/lang/haskell/tests/code' '' (exit 1): failed
Metadata
Metadata
Assignees
Labels
No labels