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 while renaming #68

Open
Muizzyranking opened this issue Dec 10, 2024 · 2 comments
Open

Error while renaming #68

Muizzyranking opened this issue Dec 10, 2024 · 2 comments

Comments

@Muizzyranking
Copy link

This issue has been going on for a while and I did not report it because I am unable to reproduce, I still can't. I thought it was a vtsls issue but it happens with basedpyright and lua_ls.

I cannot point out where the issue is coming from per say but I get this

  Error  02:09:49 PM notify.error       "[inc-rename] An error occurred in the preview function. Please report this error here: https://github.com/smjonas/inc-rename.nvim/issues:
Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/treesitter/_fold.lua:275: invalid top
stack traceback:
	[C]: in function '_foldupdate'
	/usr/share/nvim/runtime/lua/vim/treesitter/_fold.lua:275: in function 'do_foldupdate'
	/usr/share/nvim/runtime/lua/vim/treesitter/_fold.lua:266: in function 'foldupdate'
	/usr/share/nvim/runtime/lua/vim/treesitter/_fold.lua:322: in function 'fn'
	/usr/share/nvim/runtime/lua/vim/treesitter/_fold.lua:293: in function </usr/share/nvim/runtime/lua/vim/treesitter/_fold.lua:289>
Active language servers: { "vtsls" }
Buffer name: /home/muizzyranking/Practice/react/my-react-app/src/component.jsx

Sometimes, it works, sometimes, it shows this errors.

I have toggled inccommand to split and no split and I still get this issue. I have gone back to using builtin lsp rename but the notify feature keeps bringing me back.

@Muizzyranking
Copy link
Author

I found out what was wrong, the problem was when I search with / and I didn't clear highlight before searching, I get this error.
So clearing highlights before renaming fix the issue.

@Muizzyranking
Copy link
Author

Turns out I was wrong
I have been trying to recreate this issues for weeks now, but I can't.
I get this when I just tried to rename

                           "[inc-rename] An error occurred in the preview function. Please report this error here: https://github.com/smjonas/inc-rename.nvim/issues:
E216: No such group or event: FileExplorer *
Active language servers: { "lua_ls", "copilot" }
Buffer name: /home/muizzyranking/dot-files/config/nvim/lua/plugins/lsp/lspconfig/init.lua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant