haskell-ide-engine icon indicating copy to clipboard operation
haskell-ide-engine copied to clipboard

GHC8.8+ HIE File Compatibility

Open ProofOfKeags opened this issue 4 years ago • 5 comments

https://gitlab.haskell.org/ghc/ghc/wikis/hie-files#making-use-of-hie-files-as-a-tooling-developer

As a partially informed observer, this seems to be a major helper for things like the IDE engine. Currently the performance of HIE makes it unusable for all but the smallest of projects. However, I expect a lot of that can be alleviated by taking advantage of GHC emitting these files. How much of the core architecture needs to be changed in order to take advantage of this?

ProofOfKeags avatar Aug 09 '19 23:08 ProofOfKeags

When was the last time you tried h-i-e? The performance has got a lot better in recent releases (but is still not perfect). I can use it on GHC's code base for example, which is over 500 modules.

mpickering avatar Aug 10 '19 07:08 mpickering

Still falls over a bunch for me with extensions in .cabal files and quasi-quoters.

ilyakooo0 avatar Aug 27 '19 18:08 ilyakooo0

I haven't determined the cause but I just compiled 0.12.0.0 and it is eating all the available memory on my machine.

ProofOfKeags avatar Sep 30 '19 18:09 ProofOfKeags

From the above discussion it seems like this isn't a goal? Would it not be more performant? Maybe there's some caveats I don't know about?

codygman avatar Apr 12 '20 05:04 codygman

It is a goal, e.g. in ghcide (I think it is already implemented there) which hls is built on top of, and hls will be the successor to hie.

fendor avatar Apr 12 '20 08:04 fendor