vshaxe / hxcpp-debugger

Visual Studio Code Debugger for Haxe/HXCPP applications
MIT License
26 stars 13 forks source link

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

Open EliteMasterEric opened 1 month ago

EliteMasterEric commented 1 month ago

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