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

bug: substitution throws error when list has 2 or more files #30

Closed
greyHairChooseLife opened this issue Nov 12, 2024 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@greyHairChooseLife
Copy link

greyHairChooseLife commented Nov 12, 2024

Neovim version (nvim -v)

NVIM v0.10.1

Operating system/version

OS: Manjaro Linux x86_64 , Kernel: 6.1.112-1-MANJARO

Describe the bug

I've tried simple string substitution with this plugin, but it threw error messages below.

As a clue, it works fine if list of qf has a single path.

Error detected while processing BufWriteCmd Autocommands for "<buffer=17>":                                                                                                                                                                                                                                                                   
Error executing lua callback: ...te/pack/packer/start/quicker.nvim/lua/quicker/editor.lua:287: attempt to concatenate a userdata value                                                                                                                                                                                                                 
stack traceback:                                                                                                                                                                                                                                                                                                                                       
        ...te/pack/packer/start/quicker.nvim/lua/quicker/editor.lua:287: in function <...te/pack/packer/start/quicker.nvim/lua/quicker/editor.lua:261>                                                                                                                                                                                                 
        ...te/pack/packer/start/quicker.nvim/lua/quicker/editor.lua:319: in function 'save_changes'                                                                                                                                                                                                                                                    
        ...te/pack/packer/start/quicker.nvim/lua/quicker/editor.lua:467: in function <...te/pack/packer/start/quicker.nvim/lua/quicker/editor.lua:466>                                                                                                                                                                                                 

What is the severity of this bug?

breaking (some functionality is broken)

Steps To Reproduce

  1. grep string with telescope and send them to qf list.
  2. :%s/before/after/g
  3. :w

gets the error

Expected Behavior

It works fine before.

Minimal example file

No response

Minimal init.lua

No response

Additional context

No response

@greyHairChooseLife greyHairChooseLife added the bug Something isn't working label Nov 12, 2024
@stevearc
Copy link
Owner

I was able to repro this once but never after. I think I've found what the issue is, can you update and see if the problem goes away?

@stevearc stevearc added the question Further information is requested label Nov 12, 2024
@greyHairChooseLife
Copy link
Author

@stevearc

After last update #31, the problem went away like magic. Wonderful !!

@github-actions github-actions bot removed the question Further information is requested label Nov 12, 2024
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

2 participants