{"action":"created","issue":{"url":"https://api.github.com/repos/dom96/jester/issues/188","repository_url":"https://api.github.com/repos/dom96/jester","labels_url":"https://api.github.com/repos/dom96/jester/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/dom96/jester/issues/188/comments","events_url":"https://api.github.com/repos/dom96/jester/issues/188/events","html_url":"https://github.com/dom96/jester/issues/188","id":416463541,"node_id":"MDU6SXNzdWU0MTY0NjM1NDE=","number":188,"title":"Jester says expects a GC-safe OnRequest closure on latest devel with or without --threads:on","user":{"login":"gogolxdong","id":6716643,"node_id":"MDQ6VXNlcjY3MTY2NDM=","avatar_url":"https://avatars1.githubusercontent.com/u/6716643?v=4","gravatar_id":"","url":"https://api.github.com/users/gogolxdong","html_url":"https://github.com/gogolxdong","followers_url":"https://api.github.com/users/gogolxdong/followers","following_url":"https://api.github.com/users/gogolxdong/following{/other_user}","gists_url":"https://api.github.com/users/gogolxdong/gists{/gist_id}","starred_url":"https://api.github.com/users/gogolxdong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogolxdong/subscriptions","organizations_url":"https://api.github.com/users/gogolxdong/orgs","repos_url":"https://api.github.com/users/gogolxdong/repos","events_url":"https://api.github.com/users/gogolxdong/events{/privacy}","received_events_url":"https://api.github.com/users/gogolxdong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-03-03T01:51:39Z","updated_at":"2019-03-03T14:32:22Z","closed_at":null,"author_association":"NONE","body":"```nim\r\n../../c/Users/lxdong/.nimble/pkgs/jester-0.4.1/jester.nim(473, 8) Error: type mismatch: got <proc (req: Request): Future[system.void]{.closure, locks: <unknown>.}, Settings>\r\nbut expected one of:\r\nproc run(onRequest: OnRequest; settings: Settings)\r\n  first type mismatch at position: 1\r\n  required type: OnRequest\r\n  but expression 'proc (req: httpbeast.Request): Future[void] = result = handleRequest(jes, req)' is of type: proc (req:\r\nRequest): Future[system.void]{.closure, locks: <unknown>.}\r\n  This expression is not GC-safe. Annotate the proc with {.gcsafe.} to get extended error information.\r\nproc run(onRequest: OnRequest)\r\n  first type mismatch at position: 1\r\n  required type: OnRequest\r\n  but expression 'proc (req: httpbeast.Request): Future[void] = result = handleRequest(jes, req)' is of type: proc (req:\r\nRequest): Future[system.void]{.closure, locks: <unknown>.}\r\n  This expression is not GC-safe. Annotate the proc with {.gcsafe.} to get extended error information.\r\n\r\nexpression: run(proc (req: httpbeast.Request): Future[void] = result = handleRequest(jes, req),\r\n    initSettings(self.settings.port, self.settings.bindAddr))"},"comment":{"url":"https://api.github.com/repos/dom96/jester/issues/comments/469028800","html_url":"https://github.com/dom96/jester/issues/188#issuecomment-469028800","issue_url":"https://api.github.com/repos/dom96/jester/issues/188","id":469028800,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2OTAyODgwMA==","user":{"login":"gogolxdong","id":6716643,"node_id":"MDQ6VXNlcjY3MTY2NDM=","avatar_url":"https://avatars1.githubusercontent.com/u/6716643?v=4","gravatar_id":"","url":"https://api.github.com/users/gogolxdong","html_url":"https://github.com/gogolxdong","followers_url":"https://api.github.com/users/gogolxdong/followers","following_url":"https://api.github.com/users/gogolxdong/following{/other_user}","gists_url":"https://api.github.com/users/gogolxdong/gists{/gist_id}","starred_url":"https://api.github.com/users/gogolxdong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogolxdong/subscriptions","organizations_url":"https://api.github.com/users/gogolxdong/orgs","repos_url":"https://api.github.com/users/gogolxdong/repos","events_url":"https://api.github.com/users/gogolxdong/events{/privacy}","received_events_url":"https://api.github.com/users/gogolxdong/received_events","type":"User","site_admin":false},"created_at":"2019-03-03T14:32:22Z","updated_at":"2019-03-03T14:32:22Z","author_association":"NONE","body":"```nim \r\n  when useHttpBeast:\r\n    run(\r\n      proc (req: httpbeast.Request): Future[void] =\r\n        {.gcsafe.}:\r\n          result = handleRequest(jes, req),\r\n      httpbeast.initSettings(self.settings.port, self.settings.bindAddr)\r\n    )\r\ngcsafe enforcement works."}}
{"actor":{"display_login":"gogolxdong"}}