Giter VIP home page Giter VIP logo

Comments (4)

ptaoussanis avatar ptaoussanis commented on June 8, 2024

Hi Alex, thanks for the report! Have just pushed v2.1.1 to address this. Cheers :-)

from carmine.

alexkehayias avatar alexkehayias commented on June 8, 2024

Upgraded and tested. Still causes a problem in the case of multiple key-vars and multiple arg-vars if any key-vars contain any of the arg-vars key name.

(with-pipeline* (car/lua "if redis.call('hget', _:foo-key, _:foo) then redis.call('hget', _:bar-key, _:bar) end" {:foo-key "foo" :bar-key "bar"} {:foo "f" :bar "b"}))

> Exception ERR Error running script (call to f_208d54df12151899d96ab2931a263c0bd5fa669f): user_script:1: Script attempted to access unexisting global variable 'key'   taoensso.carmine.protocol/get-basic-reply (protocol.clj:123)

from carmine.

ptaoussanis avatar ptaoussanis commented on June 8, 2024

Sorry, seems my regex was no good for hyphenated vars. Just pushed v2.1.2 which should do the job (have tested against your example here).

Just shout if you run into any other problems.

from carmine.

alexkehayias avatar alexkehayias commented on June 8, 2024

Looks good thank you!

from carmine.

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.