Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error encountered: Expected lua string #21

Closed
chardskarth opened this issue Apr 24, 2023 · 6 comments
Closed

Error encountered: Expected lua string #21

chardskarth opened this issue Apr 24, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@chardskarth
Copy link

chardskarth commented Apr 24, 2023

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
Copy link

Same issue, no idea what's happening

@Iron-E
Copy link
Owner

Iron-E commented Apr 25, 2023

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

@Iron-E Iron-E added the bug Something isn't working label Apr 25, 2023
@Iron-E Iron-E self-assigned this Apr 25, 2023
@AlexKurisu
Copy link

AlexKurisu commented Apr 25, 2023

Just tested this - works fine on tag v3.3.0

@Iron-E
Copy link
Owner

Iron-E commented Apr 25, 2023

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

@chardskarth
Copy link
Author

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

@Iron-E
Copy link
Owner

Iron-E commented Apr 28, 2023

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

I can reproduce. I will issue a fix soon

@Iron-E Iron-E closed this as completed in 1f402f9 Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants