ghcide/test
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
..
cabal/Development/IDE/Test Enable more warnings for the ghcide codebase (#75) 2019-09-17 08:50:20 +02:00
data Fix spaninfo Haddocks for local modules (#678) 2020-07-01 09:20:51 +02:00
exe Use a global namecache to read .hie files (#677) 2020-07-09 14:16:50 +02:00
manual/lhs added unlit stage for literate Haskell source files 2019-09-11 11:56:26 +02:00
preprocessor #279, support preprocessors (#282) 2019-12-19 12:06:03 +01:00
src/Development/IDE Interface file fixes (#645) 2020-06-23 11:01:52 +02:00