binhonglee / coco

Code coverage for Nim lang (CLI + library)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[minor] Permission denied when source files under tmp

timotheecour opened this issue · comments

git clone https://github.com/timotheecour/vitanim # probably any repo will be same
cd vitanim/drange

coco --report_path=/tmp/d28
/Users/timothee/.config/nim/config.nims [config.nims used]
[OK] test1
[OK] test1
Permission denied
Permission denied
Permission denied
Permission denied
Permission denied
Permission denied
Permission denied
Permission denied
Permission denied
Permission denied
Permission denied
geninfo: WARNING: gcov did not create any files for /tmp/d20/vitanim/drange/nimcache/test1.nim_0_cov/stdlib_unittest.c.gcda!
  • not sure what generates Permission denied but hopefully using nim apis instead of shelling out (cf #11) and using doAssert instead of discarding error codes should help

Note: this Permission denied doesn't happen when source files aren't under tmp

  • Note: using --verbose didn't help; maybe this command should also show which commands are being run (exec'd)

  • also not sure what the last warning implies...

commented

image

It's working on my side. How did you create your tmp folder?

are you also on osx?

commented

yes also

can't reproduce as of today, closing