-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
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
json
module incompatible with checked exceptions
#17399
Comments
this PR #16724 attempts to fix this and related issues but is blocked by upgrading csources nim bootstrap version in CI, because bootstrap nim can't support this. links
|
the root cause in this case is that there are unannotated closure functions down the call stack - generally, the standard library doesn't reason about exception safety - just changing the default eh effect to for example, if a function calls a callback that raises, that function needs to be prepared to release resources it allocates (like files) - this rarely happens in the streams modules. |
works on the devel branch |
json
module is broken with regards to checked exceptions (as is most of the std library, this is just one example) -Exception
should no longer be raised per recent changes to the Exception hierarchy, yetjson
and many other modules provide inaccurate exception information in their API.nim 1.2.6, 1.4.4
The text was updated successfully, but these errors were encountered: