Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jarrio opened this issue Nov 5, 2022 · 2 comments
Open

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

Jarrio opened this issue Nov 5, 2022 · 2 comments
Milestone

Comments

@Jarrio
Copy link

Jarrio commented Nov 5, 2022

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
Copy link
Member

Simn commented Nov 7, 2022

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

@Jarrio
Copy link
Author

Jarrio commented Nov 8, 2022

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

@Simn Simn added this to the Later milestone Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants