ghcide/exe
wz1000 f32f666d2e
Use a global namecache to read .hie files (#677)
* Use global NameCache for reading HIE files

Co-authored-by: Matthew Pickering <matthewtpickering@gmail.com>

* ignore hlint

* redundant imports

* Use hie files as source of truth for name source spans.

Since we started reusing `.hi` files, this exposes a bug where definitions
aren't available since a bad source span from the `.hi` file gets put into
the NameCache. We rectify by ensuring the span in the NameCache always matches
the one from the `.hie` file.

This has surfaced because an interaction between the commit which uses `.hi`
instead of retypechecking and the change to use the shared global NameCache
to read `.hie` files.

* Add test for missing definitions

Co-authored-by: Matthew Pickering <matthewtpickering@gmail.com>
2020-07-09 14:16:50 +02:00
..
Arguments.hs Use stale information if it's available to answer requests quickly (#624) 2020-06-30 11:22:20 +02:00
Main.hs Use a global namecache to read .hie files (#677) 2020-07-09 14:16:50 +02:00
Utils.hs Multi Component (#522) 2020-06-02 14:44:16 +02:00