Fabrice Leal
2018-09-18 22:01:57 UTC
I'm having this weird error while trying to compile urweb using
urweb-regex; if I isolate that page in a separate module, it compiles fine
(even though I seem unable to access that page from the browser), so I
assume I'm doing something wrong in my helloworld.ur file.
Would appreciate some pointers; Source file is this one (
https://github.com/fabriceleal/urweb-experiments/blob/doesnt_compile/helloworld.ur#L869)
and I also included the result of -dumpVerboseSource (
https://github.com/fabriceleal/urweb-experiments/blob/doesnt_compile/dumpVerboseSource.txt#L7705
)
That FFI maybe_onload is particularly suspicious ... is the call to
parsePgn being "lifted" to javascript code? Some time ago I had some errors
while trying to use the rpc function in the loadPost page because i was
mixing it with code that uses my canvas library which has a bunch of
clientOnly FFI calls; I reorganized my code and eventually made it work
nicely (
https://github.com/fabriceleal/urweb-experiments/commit/503da7e28f1a05be6e69e9f60c9cd321bfa252ce
IIRC). I tried to isolate the testParse function but seems to not lead
anywhere.
Sorry for the wall of text and thanks in advance :)
urweb-regex; if I isolate that page in a separate module, it compiles fine
(even though I seem unable to access that page from the browser), so I
assume I'm doing something wrong in my helloworld.ur file.
Would appreciate some pointers; Source file is this one (
https://github.com/fabriceleal/urweb-experiments/blob/doesnt_compile/helloworld.ur#L869)
and I also included the result of -dumpVerboseSource (
https://github.com/fabriceleal/urweb-experiments/blob/doesnt_compile/dumpVerboseSource.txt#L7705
)
That FFI maybe_onload is particularly suspicious ... is the call to
parsePgn being "lifted" to javascript code? Some time ago I had some errors
while trying to use the rpc function in the loadPost page because i was
mixing it with code that uses my canvas library which has a bunch of
clientOnly FFI calls; I reorganized my code and eventually made it work
nicely (
https://github.com/fabriceleal/urweb-experiments/commit/503da7e28f1a05be6e69e9f60c9cd321bfa252ce
IIRC). I tried to isolate the testParse function but seems to not lead
anywhere.
Sorry for the wall of text and thanks in advance :)
--
---
Fabrice Leal
---
Fabrice Leal