Code Monkey home page Code Monkey logo

Comments (10)

flyx avatar flyx commented on May 27, 2024

Seems to be a duplicate of #19 sigh. I have not yet found the root cause of that.

from nimyaml.

andreaferretti avatar andreaferretti commented on May 27, 2024

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.

flyx avatar flyx commented on May 27, 2024

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.

andreaferretti avatar andreaferretti commented on May 27, 2024

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.

flyx avatar flyx commented on May 27, 2024

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.

andreaferretti avatar andreaferretti commented on May 27, 2024

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.

flyx avatar flyx commented on May 27, 2024

Okay, I will dig into it. Thanks for the infos.

from nimyaml.

flyx avatar flyx commented on May 27, 2024

Okay, I was on the wrong branch earlier, shame on me. I reported this to Nim:

nim-lang/Nim#4462

from nimyaml.

andreaferretti avatar andreaferretti commented on May 27, 2024

Seems fixed upstream, so I can close this now

from nimyaml.

flyx avatar flyx commented on May 27, 2024

\o/

from nimyaml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.