ncannasse / templo

Templo is a powerful template engine for Haxe
19 stars 6 forks source link

StringMap access makes an "invalid call" error in haxe 4 #9

Open bablukid opened 5 years ago

bablukid commented 5 years ago

Since I migrated to Haxe 4, I can't get StringMaps values ( myMap.get(key) ) in templates.

This works well with IntMaps.

Any idea ?

ConstNW commented 5 years ago

What's your target?

bablukid commented 5 years ago

neko ... ho I guess I should update to the latest mod_neko ? ( i'm using mod_neko with Apache )

ConstNW commented 5 years ago

I don't find any problem. For me templo working properly with StringMap on Haxe4/neko . Maybe it's related to DCE?

ncannasse commented 5 years ago

Is it fixed with -dce no ?

On Tue, Nov 5, 2019 at 12:25 PM Constantine Teplyakov < notifications@github.com> wrote:

I don't find any problem. For me templo working properly with StringMap on Haxe4/neko . Maybe it's related to DCE?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ncannasse/templo/issues/9?email_source=notifications&email_token=AAHZXQAHRML6WG2CDSZXVG3QSFJ2JA5CNFSM4JJA2R3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDCQHMQ#issuecomment-549782450, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHZXQFVHTOFZ7WQXEBXXNLQSFJ2JANCNFSM4JJA2R3A .

bablukid commented 5 years ago

Wow using dce=no breaks everything

Called from /home/bubar/haxe/versions/4.0.0/std/neko/_std/Date.hx line 126
Uncaught exception - load.c(357) : Primitive not found : std@date_utc_format(2)
ncannasse commented 5 years ago

You need to upgrade to Neko 2.3

Le mer. 6 nov. 2019 à 11:18, François Barbut notifications@github.com a écrit :

Wow using dce=no breaks everything

Called from /home/bubar/haxe/versions/4.0.0/std/neko/_std/Date.hx line 126 Uncaught exception - load.c(357) : Primitive not found : std@date_utc_format(2)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ncannasse/templo/issues/9?email_source=notifications&email_token=AAHZXQFRDOADHM2A5POY4NDQSKKYHA5CNFSM4JJA2R3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDGA3UY#issuecomment-550243795, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHZXQC6ALLGFEUXMYFL3I3QSKKYHANCNFSM4JJA2R3A .

bablukid commented 5 years ago

Thanks I'll try this. I asked @andyli for new Ubuntu PPAs with haxe4 and neko 2.3 https://launchpad.net/~haxe/+archive/ubuntu/releases I'll keep you in touch