jasononeil/dodrugs

Doesn't work with compilation server

Closed this issue · 4 comments

Seems that the injector names are cached and it complains An Injector named "name" was previously created here on second compilation

Running

 haxe --connect 6000 test.hxml && neko bin/test.n
 haxe --connect 6000 test.hxml && neko bin/test.n

Twice in a row works for me. In theory this is supposed to take care of the compiler cache (though I had not tested it until just now): https://github.com/jasononeil/dodrugs/blob/master/src/dodrugs/InjectorMacro.hx#L357

I've just added a travis build file. Is there an easy way to test compiling twice, using the cache, in a travis build?

Hm... Let me inspect it again and see if I can reproduce it reliably

Btw, travix may help you simplify things a bit (your yml can be as simple as this)

This has been working well for me locally, so I'm going to close the issue.

Should definitely set up travis (and travix) soon though