HaxeFoundation / HaxeFoundation/haxe
'Compiler failure' when hover-inspecting vars in macro debugger
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
```
Failure("Compiler failure
Please submit an issue at https://github.com/HaxeFoundation/haxe/issues/new
Attach the following information:
Haxe: 5.0.0-alpha.1+5e4e368; OS type: unix;
File "src/macro/eval/evalDebugMisc.ml", line 145, characters 22-29
Called from file "src/macro/eval/evalDebugMisc.ml", line 153, characters 12-20
Called from file "src/macro/eval/evalDebugMisc.ml", line 228, characters 12-19
Called from file "src/macro/eval/evalDebugSocket.ml", line 22, characters 3-6
Called from file "src/macro/eval/evalThread.ml", line 96, characters 8-14
Called from file "thread.ml", line 39, characters 8-14
")
```
Occurs on most vars.
~~I also had many errors that TypePath cannot have a `pos`, which was working prior.~~ Unable to repro this part now, likely unrelated.
On 5.0.0-alpha.1+650842 I get a similar error:
```
Globals.Ice("Compiler failure
Please submit an issue at https://github.com/HaxeFoundation/haxe/issues/new
Attach the following information:", "File "src/macro/eval/evalDebugMisc.ml", line 145, characters 22-29
Called from file "src/macro/eval/evalDebugMisc.ml", line 154, characters 12-20
Called from file "src/macro/eval/evalDebugSocket.ml", line 22, characters 3-6
Called from file "src/macro/eval/evalThread.ml", line 96, characters 8-14
Called from file "thread.ml", line 39, characters 8-14
")
```
In case relevant, the macro is:
https://github.com/inert-aesthetic/thinglib/blob/master/com/thinglib/macro/Codegen.hx
Contributor guide
Research direction
Start with src/macro/eval/evalDebugMisc.ml around line 145 and follow the reported calls through evalDebugSocket.ml and evalThread.ml. Reproduce the failure using the linked Codegen.hx macro while hover-inspecting variables; done means macro-debugger variable inspection no longer reports a compiler failure.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100