ba0f3 / telebot.nim

Async Telegram Bot API Client implement in @Nim-Lang
MIT License
165 stars 24 forks source link

Compile issue on latest telebot #45

Closed Michal-Szczepaniak closed 4 years ago

Michal-Szczepaniak commented 4 years ago

/telebot/telebot/webhook.nim(66, 33) template/generic instantiation of async from here .choosenim/toolchains/nim-#devel/lib/pure/asyncmacro.nim(272, 31) Error: 'callbackIter' is not GC-safe as it calls 'handleUpdate'

ba0f3 commented 4 years ago

Im still using verison 0.6.9 w/ Nim 1.0.4. whats your Nim version? can you show me your snipet?

Michal-Szczepaniak commented 4 years ago

I had older nim and updated it to latest using choosenim devel and then got lastest telebot using nimble develop telebot. For some reason some examples build fine so i will have to investigate further

Michal-Szczepaniak commented 4 years ago

The issue exists when you enable threads. Can we reopen it @ba0f3?

ba0f3 commented 4 years ago

thank you, I will check it again