haxetink / tink_macro

The macro toolkit
MIT License
57 stars 17 forks source link

Which version (haxelib or github repo) do I use for the current version of Haxe (3.2.1) #4

Closed dionjwa closed 8 years ago

dionjwa commented 8 years ago

I'm getting some compile errors on very simple examples, e.g. from the github repo:

server/common/lib/tinkerbell/src/tink/macro/tools/ExprTools.hx:53: characters 8-27 : Class has no field getPosInfos

The haxelib version documentation seems out of date. So which version do you recommend for the current version of Haxe (3.2.1)?

Thanks!

back2dos commented 8 years ago

The git and haxelib versions are currently in sync. Can you please elaborate on what exactly seems out of date?

The problem itself would seem to come from the fact that you have tink_macro classes leak out of the macro context, where they don't compile, because Context.getPosInfos is not available outside macro context. You need to put your imports between #if macro and it should work.

back2dos commented 8 years ago

I assume this is no longer an issue. Otherwise please get back to me with more details ;)