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

[Haxe 5] Cannot use this API from initialization macros #37

Open
EliteMasterEric opened this issue Sep 17, 2024 · 0 comments
Open

[Haxe 5] Cannot use this API from initialization macros #37

EliteMasterEric opened this issue Sep 17, 2024 · 0 comments

Comments

@EliteMasterEric
Copy link
Contributor

hxcpp-debug-server/git/hxcpp-debug-server/hxcpp/debug/jsonrpc/Macro.hx:9: characters 4-49
9 | Context.getType("hxcpp.debug.jsonrpc.Server");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Cannot use this API from initialization macros.
| Use Context.onAfterInitMacros to register a callback to run when context is ready.

https://github.com/vshaxe/hxcpp-debugger/blob/master/hxcpp-debug-server/hxcpp/debug/jsonrpc/Macro.hx#L9

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

1 participant