status-im / nim-chronos

Chronos - An efficient library for asynchronous programming
https://status-im.github.io/nim-chronos/docs/chronos
Apache License 2.0
352 stars 51 forks source link

Compilation error `invalid pragma: stackTrace: off` #552

Open MrQubo opened 1 week ago

MrQubo commented 1 week ago
import chronos

proc callProc[T](f: proc (): T): T =
  f()

proc foo() {.async.} =
  callProc do {.async.}:
    discard

Compiled with nim c -d:asyncBackend=chronos

nim: 2.0.8 chronos: 4.0.2

The same code works with asyncdispatch.

MrQubo commented 1 week ago

Maybe related? https://github.com/status-im/nim-chronos/issues/367