Giter Club home page Giter Club logo

Comments (4)

jgouly avatar jgouly commented on June 9, 2024

No idea why, but the DEBUG= environment variable plays a part here.
make test DEBUG= passes, but 'make test' fails.

$ DEBUG= ./bin/potion test/tutorial/07_subclass.pn
My name is nil and I'm a Constable.

vs

$ ./bin/potion test/tutorial/07_subclass.pn
Policeman

But the travis-ci fails for DEBUG=1 and DEBUG=0..

from potion.

jgouly avatar jgouly commented on June 9, 2024

This has nothing to do with DEBUG either!

$ ./bin/potion test/tutorial/07_subclass.pn
Policeman

$ ./bin/potion test/tutorial/07_subclass.pn WILL_THIS_WORK
My name is nil and I'm a Constable.

$ MAKE_IT_WORK=1 ./s.pn otion test/tutorial/07_subclass
My name is nil and I'm a Constable.

from potion.

jgouly avatar jgouly commented on June 9, 2024
$ ./bin/potion -V test/tutorial/07_subclass.pn &> broken.txt
$ WORKS=1 ./bin/potion -V test/tutorial/07_subclass.pn &> works.txt
$ diff works.txt broken.txt
6c6
< -- jit returned 0x1100ab000 (fixed=79960, actual=143928, reserved=262144, time=0ms 0x/0m/0i) --
---
> -- jit returned 0x1005c7000 (fixed=79936, actual=143528, reserved=262144, time=0ms 0x/0m/0i) --
108c108
< [25] msg      0 1
---
> [25] bind     0 1
119c119
< My name is nil and I'm a Constable.
---
> Policeman

So in the working version, a 'msg' instruction is used instead of 'bind'. Still no idea why that's happening though.

from potion.

jgouly avatar jgouly commented on June 9, 2024

When I restarted my shell.. this disappeared. So I have no idea.

from potion.

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.