Skip to content

Commit 8852d4d

Browse files
committed
wip
1 parent c266ee8 commit 8852d4d

File tree

3 files changed

+68796
-0
lines changed

3 files changed

+68796
-0
lines changed

tmp-notes.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
HRK:|OK|FAIL|error
2+
3+
OK|FAIL|error|isEvaluating|queueForEvaluation|unqueueForEvaluation|writeBinCoreFile
4+
5+
6+
(HRK: writeBinCoreFile)|(HRK: linkableType=Just BCOLinkable)|OK|FAIL|error
7+
8+
Theory:
9+
10+
Every test that succeeds has the following sequence:
11+
12+
13+
HRK: linkableType=Just BCOLinkable
14+
HRK: writeCoreFileIfNeeded: guts=modguts
15+
HRK: writeBinCoreFile /tmp/hls-test-root/.cache/ghcide/test-0.1.0.0-inplace-1af041e620a747f3eee9125b6968276b7bf496d0/extra-file-30552027971537-267991-12
16+
17+
18+
19+
20+
21+
22+
23+
24+
In order for `GetLinkable` rule to succeed, the
25+
26+
The core file is written [here](https://github.com/haskell/haskell-language-server/blob/9593d04a76e024942981b1333bfb2558a6ae0dab/ghcide/src/Development/IDE/Core/Compile.hs#L532)
27+
28+
But this core-file-writing code path is only triggered when is called with `linkableType == Just BCOLinkable`.
29+
30+
In the case when we get the `GetLinkable` error, the `linkableType` is always `Nothing`.
31+
32+
33+

0 commit comments

Comments
 (0)