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 calling GoTagAdd json #31

Open
Monnoroch opened this issue May 27, 2023 · 2 comments
Open

Error calling GoTagAdd json #31

Monnoroch opened this issue May 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Monnoroch
Copy link

Monnoroch commented May 27, 2023

I'm sometimes getting this error:

E5108: Error executing lua ...l/share/nvim/lazy/gopher.nvim/lua/gopher/struct_tags.lua:62: bad argument #1 to 'concat' (table expected, got nil)
stack traceback:
        [C]: in function 'concat'
        ...l/share/nvim/lazy/gopher.nvim/lua/gopher/struct_tags.lua:62: in function 'modify'
        ...l/share/nvim/lazy/gopher.nvim/lua/gopher/struct_tags.lua:100: in function 'tags_add'
        [string ":lua"]:1: in main chunk

Restarting nvim and trying again helps somehow (I am able to add tags after that, so it's not about binaries not being installed).

Either I have something misconfigured, in which case the error message could be made more helpful, or there is a bug in the script.

@rew1nter
Copy link

You're not saving it with :w before running the command. Thus the error.
I wish this extension did autosave before everyrun.

@olexsmir
Copy link
Owner

Thank you @rew1nter, I don't think that I had noticed that this error could appear because of a non-saved file. I will implement pre-save for it

@olexsmir olexsmir added the bug Something isn't working label Jun 12, 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