planety / prologue

Powerful and flexible web framework written in Nim
https://planety.github.io/prologue
Apache License 2.0
1.24k stars 47 forks source link

Error: unhandled exception: cannot read from file #195

Closed Yakumo-Yukari closed 1 year ago

Yakumo-Yukari commented 1 year ago

1

src\Nanako.nim(4) Nanako
.nimble\pkgs\prologue-0.6.2\prologue\core\nativesettings.nim(108) loadSettings
nim\lib\pure\json.nim(1042) parseFile
Error: unhandled exception: cannot read from file: ./config/config.debug.json [IOError]
Error: execution of an external program failed: 'Nanako\src\Nanako.exe '

Why does the code that follows the documentation also report an error?

ITwrx commented 1 year ago

well, idk if there is a bug in the docs/Prologue or not, but your error is dependent on your environment, so that is one possible reason why it would fail even though it is from the docs. IOW, Prologue doesn't necessarily control whether the file exists, or what permissions the file has.

I don't have any Windows machines, and i don't remember how it handles perms all that well, but i would look at those two things if this is still a valid issue. otherwise, perhaps close the issue?