HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.12k stars 650 forks source link

Compiler failure: Cannot run Haxe code in a non-Haxe thread #10838

Open Jarrio opened 1 year ago

Jarrio commented 1 year ago
Haxe: 4.2.5; OS type: windows;
File "src/macro/eval/evalContext.ml", line 332, characters 51-58

Context: Breakpoint debugging on a build macro in vscode interp target

Simn commented 1 year ago

I'm going to need a bit more information here...

Jarrio commented 1 year ago

Ahh, I thought it was a global issue with breakpoint debugging. Sorry, had to figure out what was going wrong.

    public macro function testMacro(self:Expr, components:Array<Expr>) {
        var arr = [];
        for (comp in components) {
            arr.push(macro $comp);
        }
        return macro $b{arr};
    }

It seems to be an issue with checking the expr property specifically gif