Iron-E / nvim-libmodal

Create new "modes" for Neovim!
Other
118 stars 7 forks source link

Error encountered: Expected lua string #21

Closed chardskarth closed 1 year ago

chardskarth commented 1 year ago

Error message:

E5108: Error executing lua: ...k/packer/start/nvim-libmodal/lua/libmodal/utils/Help.lua:41: Expected lua string
stack traceback:
        [C]: in function 'nvim_strwidth'
        ...k/packer/start/nvim-libmodal/lua/libmodal/utils/Help.lua:41: in function 'new'
        ...te/pack/packer/start/nvim-libmodal/lua/libmodal/Mode.lua:217: in function 'new'
        ...te/pack/packer/start/nvim-libmodal/lua/libmodal/init.lua:35: in function 'enter'
        /Users/rgdpro/.config/nvim/lua/my/whichkey-functions.lua:38: in function 'windowlayer'
        ...g/nvim/lua/plugins/windows-splits-tabs-buffer-motion.lua:71: in function <...g/nvim/lua/plugins/windows-splits-tabs-buffer-motion.lua:70>

Part of the stack trace is when Help message was constructed?

It's trying to get "nvim_strwidth" of a function? Here's my libmodal.mode.enter. image

AlexKurisu commented 1 year ago

Same issue, no idea what's happening

Iron-E commented 1 year ago

Did this mode previously work, and now it is broken? Or is this something new that never worked?

AlexKurisu commented 1 year ago

Just tested this - works fine on tag v3.3.0

Iron-E commented 1 year ago

Thanks for testing. Use that version for now and I'll work on this as soon as I can

chardskarth commented 1 year ago

Thanks! Using v3.3.0 and its working for me.

Iron-E commented 1 year ago

Sorry for the delay, I've been busy with another project.

I can reproduce. I will issue a fix soon