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

Does not work with the compilation server #57

Open
kevinresol opened this issue Jun 24, 2016 · 1 comment
Open

Does not work with the compilation server #57

kevinresol opened this issue Jun 24, 2016 · 1 comment

Comments

@kevinresol
Copy link

kevinresol commented Jun 24, 2016

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.

@cmandlbaur
Copy link

Any update on this?

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