Hi!
Spent some hours trying to get MVCoconut going on Haxe 4 stable.
In case anyone else have the same problems, here’s what I do to get it working.
Please note that this is the state my win-machine 1 november 2019, and things are moving quickly!
/ Jonas
Compiling coconut.vdom project on Haxe stable 4.0.0
In a blank VSCode haxe project with -lib coconut.vdom
added to the build.hxml, I do the standard Lix setup:
> lix scope create
> lix use haxe stable
- sets .haxerc version to “4.0.0”
I then install coconut.vdom using
> lix install gh:MVCoconut/coconut.vdom
If using "4.0.0-rc.3 this now compiles for me. For “4.0.0” stable though, I have to do the following:
> lix install gh:MVCoconut/coconut.ui
Now, compilation complains over not finding tink.csss.Parser
. So I do the following:
Add -lib tink_csss
to the build.hxml, and then run
> lix install gh:haxetink/tink_csss
I also have to run the following to upgrade tink_parse:
> lix install gh:haxetink/tink_parse
Now, a simple coconut hello world app compiles with stable Haxe 4.0.0.
Adding tink_web
As I want to use the excellent tink_web library to my client (the type safe remoting stuff is just awesome), I do the following:
Add -lib tink_web
to the build.hxml, and then run
> lix install gh:haxetink/tink_web
This however downgrades coconut.ui , so I have to run the following once more:
> lix install gh:MVCoconut/coconut.ui
Also, the tink_io library has to be updated:
> lix install gh:haxetink/tink_io
Now I can user tink_web in a coconut client \o/ (Juraj style joy).