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

Undefined variable after recent update #9

Open
jakereps opened this issue Jul 21, 2022 · 1 comment · May be fixed by #10
Open

Undefined variable after recent update #9

jakereps opened this issue Jul 21, 2022 · 1 comment · May be fixed by #10

Comments

@jakereps
Copy link

jakereps commented Jul 21, 2022

Hey 👋! I recently updated this plugin, and am experiencing an error when trying to generate tests - seemingly related to this change. I'm not sure if this is a bug, or if there's something I need to do on my end to fix it to be able to generate tests now.

Error in nvim:

Error detected while processing function gotests#alltests:                                                                                                                                            │
line   10:                                                                                                                                                                                            │
E121: Undefined variable: g:gotests_template                                                                                                                                                          │
E116: Invalid arguments for function empty                                                                                                                                                            │
Press ENTER or type command to continue                                                                                                                                                               │

I've tried modifying locally to change the newly introduced tabs to spaces to see if that helped (as the entire file uses spaces except for the 4 new lines now use tabs), but it didn't seem to change the outcome.

jakereps added a commit to jakereps/gotests-vim that referenced this issue Jul 21, 2022
@jakereps jakereps linked a pull request Jul 21, 2022 that will close this issue
@jakereps
Copy link
Author

Figured it out, and the changes work locally - PR with a fix submitted 👍

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

Successfully merging a pull request may close this issue.

1 participant