{"action":"created","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/9247","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/9247/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/9247/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/9247/events","html_url":"https://github.com/nim-lang/Nim/issues/9247","id":367698564,"node_id":"MDU6SXNzdWUzNjc2OTg1NjQ=","number":9247,"title":"Cannot 'importc' variable at compile time with times library.","user":{"login":"ajm113","id":9935420,"node_id":"MDQ6VXNlcjk5MzU0MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/9935420?v=4","gravatar_id":"","url":"https://api.github.com/users/ajm113","html_url":"https://github.com/ajm113","followers_url":"https://api.github.com/users/ajm113/followers","following_url":"https://api.github.com/users/ajm113/following{/other_user}","gists_url":"https://api.github.com/users/ajm113/gists{/gist_id}","starred_url":"https://api.github.com/users/ajm113/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajm113/subscriptions","organizations_url":"https://api.github.com/users/ajm113/orgs","repos_url":"https://api.github.com/users/ajm113/repos","events_url":"https://api.github.com/users/ajm113/events{/privacy}","received_events_url":"https://api.github.com/users/ajm113/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-08T09:11:54Z","updated_at":"2018-10-09T12:42:27Z","closed_at":null,"author_association":"NONE","body":"Hi, trying out Nim for the first time. Definitely loving everything, up until now, it seems like I'm experiencing an issue building my project the moment I started using `times` library.\r\n\r\n### Code:\r\n\r\n```\r\nimport times\r\n\r\nproc getSafeUnixTime*(): int64 =\r\n  result = toUnix(getTime())\r\n```\r\n\r\n### Build Command:\r\n\r\n`nim c -d:ssl --app:console -o:bin/app --nimcache:./nimcache src/app`\r\n\r\n### Error:\r\n\r\n`lib/nim/pure/times.nim(1325, 5) Error: cannot 'importc' variable at compile time`\r\n\r\n### Environment:\r\n\r\nNim Version: `0.18.0` -- Yes, I know I'm a version behind, but I didn't see any commits regarding this issue exactly in the change log as I'm aware of. (Using pacman atm)\r\n\r\n- OS: Arch Linux x86_64\r\n- Kernel: 4.18.12-arch1-1-ARCH\r\n- CPU: Intel i7 950 (8) @ 3.068GHz\r\n- Memory: 24094MiB\r\n\r\n### What I tried:\r\n\r\n- `sudo mv /usr/lib/nim/compiler.nimble /usr/lib/nim/compiler/`\r\n- Skipping default configs when compiling.\r\n- Delete nim cache.\r\n- Reading issues that had a somewhat similar issue, but no success.\r\n\r\nP.S: Any eta regarding the latest update to the Arch repo?\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/comments/428176569","html_url":"https://github.com/nim-lang/Nim/issues/9247#issuecomment-428176569","issue_url":"https://api.github.com/repos/nim-lang/Nim/issues/9247","id":428176569,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODE3NjU2OQ==","user":{"login":"Araq","id":287816,"node_id":"MDQ6VXNlcjI4NzgxNg==","avatar_url":"https://avatars1.githubusercontent.com/u/287816?v=4","gravatar_id":"","url":"https://api.github.com/users/Araq","html_url":"https://github.com/Araq","followers_url":"https://api.github.com/users/Araq/followers","following_url":"https://api.github.com/users/Araq/following{/other_user}","gists_url":"https://api.github.com/users/Araq/gists{/gist_id}","starred_url":"https://api.github.com/users/Araq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Araq/subscriptions","organizations_url":"https://api.github.com/users/Araq/orgs","repos_url":"https://api.github.com/users/Araq/repos","events_url":"https://api.github.com/users/Araq/events{/privacy}","received_events_url":"https://api.github.com/users/Araq/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T12:42:27Z","updated_at":"2018-10-09T12:42:27Z","author_association":"MEMBER","body":"For now, can't reproduce."}}
{"actor":{"display_login":"Araq"}}