Giter VIP home page Giter VIP logo

Comments (13)

yglukhov avatar yglukhov commented on May 28, 2024

This stuff comes with ttf which is among nimx dependencies. Have you installed nimx with nimble install?

from nimx.

c-blake avatar c-blake commented on May 28, 2024

Ok...I was not using nimble and manually setting up the 17 dependencies..Aiee. [ I confused the ttf.nim in sdl2 with the one in the ttf package. ] So, using nimble the package and all its dependencies seem to build fine.

Is there some trick to building the nimx tests from sources besides "cd pkgs/nimx-0.1; nake tests"? Doing that I get

.nimble/pkgs/variant-0.2.0/variant.nim(76) getTypeId
.nimble/pkgs/variant-0.2.0/variant.nim(69) mangledName
.nimble/pkgs/variant-0.2.0/variant.nim(29) mangledName
.nimble/pkgs/nimx-0.1/nimx/image.nim(165, 32) template/generic instantiation from here
.nimble/pkgs/nimx-0.1/nimx/resource.nim(64, 35) template/generic instantiation from here
.nimble/pkgs/variant-0.2.0/variant.nim(140, 17) template/generic instantiation from here
.nimble/pkgs/variant-0.2.0/variant.nim(29, 46) Error: node has no type

from nimx.

yglukhov avatar yglukhov commented on May 28, 2024

Can you try reinstalling variant pls?

nimble install -y variant

from nimx.

yglukhov avatar yglukhov commented on May 28, 2024

Also please make sure you nim is fresh enough.

from nimx.

c-blake avatar c-blake commented on May 28, 2024

I still get the exact same error (ending in "variant.nim(29, 46) Error: node has no type".

My Nim is (and was) at the tip of devel.

$ nim --version
Nim Compiler Version 0.15.3 (2016-12-16) [Linux: amd64]
Copyright (c) 2006-2016 by Andreas Rumpf

git hash: aedafb99787d3613c6776bea625d9a43b2b7a8ea
active boot switches: -d:release -d:useLinenoise -d:nativeStackTrace -d:noCaas

I could rebuild it with only -d:release boot switch (if you think that worthwhile to try).

from nimx.

yglukhov avatar yglukhov commented on May 28, 2024

Ah, ok thats interesting. Looks like a pretty recent Nim regression. Works for me with Nim 9099fdd8f02b83670ae0ca8a5e434499c56c9904 but fails with devel... I'll do some more experiments and report it to Nim tracker. Meanwhile you can use Nim which is not as fresh 😶

from nimx.

c-blake avatar c-blake commented on May 28, 2024

Ok. Thanks.

from nimx.

dom96 avatar dom96 commented on May 28, 2024

I was not using nimble and manually setting up the 17 dependencies..Aiee.

How come? :(

from nimx.

yglukhov avatar yglukhov commented on May 28, 2024

Filed the issue to Nim tracker: nim-lang/Nim#5129

from nimx.

c-blake avatar c-blake commented on May 28, 2024

@dom - I was anticipating perhaps making contributions or at least having .git/ directories around so I could see diffs of edits I may have made. So, I began setting up a tree of git clones of nimx and its dependencies. It didn't seem so crazy at the time, but nimx turned out to have a larger transitive closure of deps than I expected with a module name collision that caught me off guard. ;-) Then I "issued" before thinking much.

I can't be the only one thinking along these lines, though. Maybe nimble can/should/already has a mode to not only install the head/tip of version control but also keep version control meta files/.git/.hg directories around? Just hg/git status/diff add some value. I guess in an ideal world, then a user could fork some package on github, swap out the pkgs/ subdirectory with a clone of the fork for whichever package they might want to push back to github for a PR.

from nimx.

yglukhov avatar yglukhov commented on May 28, 2024

Relevant discussion here: nim-lang/nimble#240

from nimx.

yglukhov avatar yglukhov commented on May 28, 2024

Still blocked by nim-lang/Nim#5131

from nimx.

yglukhov avatar yglukhov commented on May 28, 2024

Fixed as of nim-lang/Nim@2bb4913

from nimx.

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.