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

E5108: "Error executing lua" > E490: "no fold found" when loading a project #133

Open
jeroenvermunt opened this issue Jun 29, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@jeroenvermunt
Copy link

Bug description
When I open a my project located in ~/.config/nvim, I get an error. After the error, the open buffer of the project loads correctly, but it is located in the wrong working directory.

This error appears for every project, but other project DO load in the right directory. For some reason, it seems the working directory of this one project is corrupted, but I want to resolve the error first because I suspect it might resolve the issues

Steps to reproduce
Select any project project to open.

Expected behavior
The project to load in the right directory

Screenshots
image

Environment

  • OS: Ubuntu 22.4
  • Nvim: 0.9.5
@jeroenvermunt jeroenvermunt added the bug Something isn't working label Jun 29, 2024
@Shatur
Copy link
Owner

Shatur commented Jun 29, 2024

You need to update to 0.10.

@Shatur Shatur closed this as completed Jun 29, 2024
@avegancafe
Copy link

I'm getting this on nvim v0.11.0-dev-519+gd131c48c8-Homebrew as well @Shatur, any ideas as to why?

@Shatur
Copy link
Owner

Shatur commented Aug 7, 2024

Not sure

@viperML
Copy link

viperML commented Aug 14, 2024

I also get this issue on neovim 0.10.

@Shatur
Copy link
Owner

Shatur commented Aug 14, 2024

Strange, I can't reproduce on my side.

@viperML
Copy link

viperML commented Aug 14, 2024

It might be some race condition or weird interaction with the configuration of tree-sitter's foldexpr: https://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#folding

Disabling these two lines from my configuration fixes the issue.

I will try this: neovim/neovim#28692 (comment) as soon as I fix other stuff...

@avegancafe
Copy link

For what it's worth @Shatur I was able to help at least avoid this issue by adding set sessionoptions-=folds to my config, this removes folds from being saved to sessions

@Shatur Shatur reopened this Aug 16, 2024
@Shatur
Copy link
Owner

Shatur commented Aug 16, 2024

Let's keep it open. I still unsure what causes it, but at least we have a workaround.

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

4 participants