-
Notifications
You must be signed in to change notification settings - Fork 8
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
Another typedesc issue, manifesting at runtime #5
Comments
The simple change from proc parseTests*(jsonPath: string): ShufflingTests =
result = Json.loadFile(jsonPath, ShufflingTests) to proc parseTests*(jsonPath: string, T: typedesc = ShufflingTests): ShufflingTests =
result = Json.loadFile(jsonPath, ShufflingTests) will change the test from a pass to a stacktrace:
And generics instead of typedesc also fails |
zah
added a commit
to status-im/nimbus-eth2
that referenced
this issue
May 16, 2019
This is the same issue, Mamy. |
mratsim
added a commit
to status-im/nimbus-eth2
that referenced
this issue
May 28, 2019
mratsim
added a commit
to status-im/nimbus-eth2
that referenced
this issue
Jun 13, 2019
tersec
pushed a commit
to status-im/nimbus-eth2
that referenced
this issue
Jun 17, 2019
* Generics over tests (status-im/nim-serialization#4, status-im/nim-serialization#5, nim-lang/Nim#11225) * Skeleton of SSZ uint tests * Check all primitive uint types * Add deserialization test. "wrong length" skipped due to #280 * Move test types to their specific test files * Stint also sometimes throws an AssertionError for invalid ranges * Add debug path for Access denied issue in Appveyor 64-bit (https://ci.appveyor.com/project/nimbus/nim-beacon-chain/builds/25278666/job/fs8q0bcluvj2gdor#L866) * indent the Appveyor debug info
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a followup on #4.
Last week the fix worked on my machine (I'm like 99% sure). This week it doesn't, I have a runtime exception when parsing.
This exception only happen when the type is passed as typedesc.
The branch is the same as before: https://github.com/status-im/nim-beacon-chain/tree/serialization_typedesc
Commit: status-im/nimbus-eth2@1f4c4e8
Travis: https://travis-ci.org/status-im/nim-beacon-chain/jobs/533372351#L1268-L1271
And screenshots:
Working
Failing
The text was updated successfully, but these errors were encountered: