HaxeFoundation / HaxeFoundation/haxe
[eval] exception when stepping over to end of function
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
```haxe
class Main {
static function main() {
foo();
}
static macro function foo()
return macro {};
}
```
- set a breakpoint in the macro's body
- step over once
This crashes with the following:
```
Thread 1 killed on uncaught exception Option.No_value
Raised at file "option.ml", line 44, characters 18-26
Called from file "_build/src/macro/eval/evalDebugSocket.ml", line 750, characters 35-43
Called from file "_build/src/core/json/jsonRpc.ml", line 45, characters 5-9
Called from file "_build/src/core/json/jsonRpc.ml", line 45, characters 5-9
Called from file "_build/src/core/json/jsonRpc.ml", line 45, characters 5-9
Called from file "_build/src/core/json/jsonRpc.ml", line 45, characters 5-9
Called from file "_build/src/core/json/jsonRpc.ml", line 45, characters 5-9
Called from file "_build/src/core/json/jsonRpc.ml", line 45, characters 5-9
Called from file "_build/src/core/json/jsonRpc.ml", line 45, characters 5-9
Called from file "_build/src/core/json/jsonRpc.ml", line 45, characters 5-9
Called from file "_build/src/core/json/jsonRpc.ml", line 45, characters 5-9
Called from file "_build/src/core/json/jsonRpc.ml", line 45, characters 5-9
Called from file "_build/src/core/json/jsonRpc.ml", line 45, characters 5-9
Called from file "_build/src/macro/eval/evalDebugSocket.ml", line 754, characters 3-10
Called from file "thread.ml", line 39, characters 8-14
```
This worked in rc.1.
Contributor guide
Assessment
This issue has not been assessed yet.