enthus1ast/nimja

hcr example no longer compiles

sainttttt opened this issue · 2 comments

Hi! After updating nimja and relevant packages after nim 2.0, the HCR example no longer compiles:

~/code/nimja/examples/hcr> nim c -r hcrex.nim
Hint: used config file '/Users/saint/.choosenim/toolchains/nim-2.0.0/config/nim.cfg' [Conf]
Hint: used config file '/Users/saint/.choosenim/toolchains/nim-2.0.0/config/config.nims' [Conf]
Hint: used config file '/Users/saint/.config/nim/config.nims' [Conf]
..................................................................................................................................................................................
/Users/saint/.nimble/pkgs2/jester-0.6.0-4834f85e61ae39f6b6acfb74d3bbba62d8779b66/jester.nim(1345, 9) Hint: Asynchronous route: match. [User]
/Users/saint/code/nimja/examples/hcr/hcrex.nim(19, 1) template/generic instantiation of `routes` from here
/Users/saint/.nimble/pkgs2/jester-0.6.0-4834f85e61ae39f6b6acfb74d3bbba62d8779b66/jester.nim(1351, 35) template/generic instantiation of `async` from here
/Users/saint/.choosenim/toolchains/nim-2.0.0/lib/pure/asyncmacro.nim(250, 31) Error: 'matchMatcher (Async)' is not GC-safe as it accesses 'to' which is a global using GC'ed memory
~/code/nimja/examples/hcr>

Thanks!

Thank you, will have a look at it.

The example builds again.
I think the Hot Code Reloading in general needs some love.
If someone uses it and finds some better implementation/improvements please pr.