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 opening files after adding basic config #607

Open
4b6169736572 opened this issue Jun 15, 2024 · 2 comments
Open

Error opening files after adding basic config #607

4b6169736572 opened this issue Jun 15, 2024 · 2 comments

Comments

@4b6169736572
Copy link

4b6169736572 commented Jun 15, 2024

Here's the error:

Error executing lua callback: Vim:E474: Error while dumping encode_tv2json() argument, key 'refresh_projects_b4update': attempt to dump function reference
stack traceback:
        [C]: in function 'json_encode'
        ...iser/.local/share/nvim/lazy/harpoon/lua/harpoon/init.lua:174: in function 'save'
        ...iser/.local/share/nvim/lazy/harpoon/lua/harpoon/mark.lua:18: in function 'emit_changed'
        ...iser/.local/share/nvim/lazy/harpoon/lua/harpoon/mark.lua:281: in function 'store_offset'
        ...iser/.local/share/nvim/lazy/harpoon/lua/harpoon/init.lua:20: in function <...iser/.local/share/nvim/lazy/harpoon/lua/harpoon/init.lua:19>

And heres my harpoon.lua:

return { 'theprimeagen/harpoon',
branch = "harpoon2",
config = function()
     local harpoon = require("harpoon")
     harpoon:setup()
end}

I've narrowed it down to just the above code.

Here's my fs if that's any help:
image

@4b6169736572
Copy link
Author

Ignore reopen/close I pressed the wrong issue.

@scanny
Copy link

scanny commented Aug 4, 2024

Yep, same problem. It's triggered by harpoon:setup()

Doesn't happen on v0.9 but does on v0.11.0-dev-573+g58406ab9f-Homebrew (brew install neovim --HEAD).

Sorry, I know that's not much of a bisection but hopefully a start anyway :)

@4b6169736572 what version are you seeing it on?

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

2 participants