We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to docs, calling walkDir with the parameter checkDir=true should raise an error if the directory doesn't exist.
walkDir
checkDir=true
This does not happen in a static block.
static
# foo.nim static: walkDir("nonexistantdirectory), checkDir=true) $ nim c foo # compile successful, no error raised
Nim Compiler Version 2.2.0 [Linux: amd64] Compiled at 2024-10-02 Copyright (c) 2006-2024 by Andreas Rumpf
git hash: 78983f1 active boot switches: -d:release
No outputError: unhandled exception: No such file or directory Additional info: this-should-not-exist [OSError]
Error: unhandled exception: No such file or directory Additional info: nonexistantdirectory [OSError]
Check manually
No response
The text was updated successfully, but these errors were encountered:
capocasa
No branches or pull requests
Description
According to docs, calling
walkDir
with the parametercheckDir=true
should raise an error if the directory doesn't exist.This does not happen in a
static
block.Nim Version
Nim Compiler Version 2.2.0 [Linux: amd64]
Compiled at 2024-10-02
Copyright (c) 2006-2024 by Andreas Rumpf
git hash: 78983f1
active boot switches: -d:release
Current Output
Expected Output
Known Workarounds
Check manually
Additional Information
No response
The text was updated successfully, but these errors were encountered: