Comments (10)
Seems to be a duplicate of #19 sigh. I have not yet found the root cause of that.
from nimyaml.
It does not seem to be a duplicate. I only got this error since this morning; moreover it happens on types not containing tables, unlike #19. Finally, it gives a different error message (node has no type
). It seems more plausible that Nim has broken something in the way types are handled in macros
from nimyaml.
Can you please give the complete error message and stacktrace that you get from the code? I get
lib/pure/collections/queues.nim(70, 7) Error: can raise an unlisted exception: ref IndexError
With Nim devel updated just half an hour ago.
from nimyaml.
I get
stack trace: (most recent call last)
/home/papillon/.nimble/pkgs/yaml-0.6.1/private/serialization.nim(462)
/home/papillon/.nimble/pkgs/yaml-0.6.1/private/serialization.nim(462)(450) isVariantObject
test.nim(9, 5) template/generic instantiation from here
/home/papillon/.nimble/pkgs/yaml-0.6.1/private/serialization.nim(462)(450) isVariantObject(823, 17) template/generic instantiation from here
/home/papillon/.nimble/pkgs/yaml-0.6.1/private/serialization.nim(462)(450) isVariantObject(804, 19) template/generic instantiation from here
/home/papillon/.nimble/pkgs/yaml-0.6.1/private/serialization.nim(462)(450) isVariantObject(648, 20) template/generic instantiation from here
/home/papillon/.nimble/pkgs/yaml-0.6.1/private/serialization.nim(462)(450) isVariantObject(450, 22) Error: node has no type
with latest nim devel. I am not sure why you get a different error
from nimyaml.
Interesting. Can you test whether nim tests
runs in NimYAML for you? For me, that raises the same error as I get here.
from nimyaml.
Doint nim tests
on the repo I still get
stack trace: (most recent call last)
private/serialization.nim(462)
private/serialization.nim(450) isVariantObject
test/serializing.nim(78, 7) template/generic instantiation from here
test/serializing.nim(190, 8) template/generic instantiation from here
test/serializing.nim(193, 9) template/generic instantiation from here
private/serialization.nim(823, 17) template/generic instantiation from here
private/serialization.nim(804, 19) template/generic instantiation from here
private/serialization.nim(648, 20) template/generic instantiation from here
private/serialization.nim(361, 19) template/generic instantiation from here
private/serialization.nim(648, 20) template/generic instantiation from here
private/serialization.nim(450, 22) Error: node has no type
from nimyaml.
Okay, I will dig into it. Thanks for the infos.
from nimyaml.
Okay, I was on the wrong branch earlier, shame on me. I reported this to Nim:
from nimyaml.
Seems fixed upstream, so I can close this now
from nimyaml.
\o/
from nimyaml.
Related Issues (20)
- loadDom SIGSEGV: Illegal storage access. HOT 7
- [Documentation] Simple example for loading a simple .yml file? HOT 3
- broken enum HOT 3
- Compilation hint: 'dump' cannot raise 'YamlSerializationError' [XCannotRaiseY] HOT 5
- dumping leaves part of string on same line as >- making the file unable to be loaded from HOT 8
- `| >` wrapping functionality can generate invalid YAML HOT 1
- Fails to parse a triple dot in string lit
- defaultVal is not observed on stropped names HOT 2
- Anchor in ignored tag HOT 5
- Feature: Let user choose/disable maximum line length for presentation HOT 4
- BUG: loading zero to unsigned integer generates a YamlConstructionError
- BUG: loading to float32 generates an error HOT 3
- Can't get optional fields to work HOT 3
- ignore pragma doesn't work on nested maps HOT 1
- nimble install yaml fails on devel version of Nim (needs new release) HOT 1
- Crashes on incorrect YAML HOT 2
- Raise an unlisted exception HOT 13
- Parent fields cause failure when deserializing child object HOT 3
- Catchable exception warnings HOT 2
- Seemingly pointless proc HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nimyaml.