You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the addMeta method is registered as a build macro of Injector, meaning that if Injector is cached by the compilation server and no need to be bulit again, minject will fail at runtime because the required metas are absent. (ufront/ufront-mvc#53, HaxeFoundation/haxe#4892)
I have fixed that by moving the onGenerate registration to extraParams.hxml (source). That works well but not optimal, because onGenerate re-processes all types every time. So I further improved it to use tink_syntaxhub, making it process only changed/uncached types. And the source is here.
Please let me know which solution you prefer and I will make the PR correspondingly.
The text was updated successfully, but these errors were encountered:
Because the
addMeta
method is registered as a build macro ofInjector
, meaning that ifInjector
is cached by the compilation server and no need to be bulit again, minject will fail at runtime because the required metas are absent. (ufront/ufront-mvc#53, HaxeFoundation/haxe#4892)I have fixed that by moving the
onGenerate
registration toextraParams.hxml
(source). That works well but not optimal, becauseonGenerate
re-processes all types every time. So I further improved it to use tink_syntaxhub, making it process only changed/uncached types. And the source is here.Please let me know which solution you prefer and I will make the PR correspondingly.
The text was updated successfully, but these errors were encountered: