miniredis icon indicating copy to clipboard operation
miniredis copied to clipboard

miniredis seems not support lua library bitop?

Open pelejorwa123 opened this issue 3 years ago • 2 comments

I used lua libary "bitop" in my lua script like this: "bit.band(score, ARGV[3])>ARGV[4]" but miniredis report err msg: "ERR Error compiling script (new function): :8: attempt to index a non-table object(nil) with key 'band' stack traceback: :8: in main chunk [G]: ?" miniredis did not recognize bitop library.

pelejorwa123 avatar Dec 12 '21 09:12 pelejorwa123

I used lua libary "bitop" in my lua script like this:

Hi,

Thanks for your issue report. Is the bitop library available for https://github.com/yuin/gopher-lua ? If so we can add it. These seem to be the default supported ones in gopher-lua:

  • Base
  • Channel
  • Coroutine
  • Debug
  • Io
  • Math
  • Os
  • Package
  • String
  • Table

alicebob avatar Dec 12 '21 10:12 alicebob

Thanks for your reply~ I just now tried gopher-lua in my computer, it doesn't support bitop library.

pelejorwa123 avatar Dec 12 '21 10:12 pelejorwa123