You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to have been broken by this commit. Note that the stacktrace is only produced if go-guru-build-tags is a non-empty string, which explains why this bug was not immediately noticed.
I see a few possible solutions.
Change the following line in go-guru--command from
If choosing this solution it would probably be good to expand the docstring for go-guru-build-tags to indicate that the value must be comma-separated when including multiple build tags.
Change the declaration for go-guru-build-tags to a list of strings
and leave go-guru--command as it currently is. This solution seems better except that it would break anyone currently setting go-guru-build-tags as a string. Therefore, I'm not sure which one should be preferred.
@nwidger Want to send a patch to https://github.com/dominikh/go-mode.el? That's the new home of the Emacs guru integration. In either case the issue should be refiled there, and this one closed.
Please answer these questions before submitting your issue. Thanks!
go version
)?go env
)?I'm using
go-guru
with Emacs 24.5.1 from emacsformacosx.com, here's myM-x version RET
output:If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
go-guru.el
from this commit loadedM-x customize-group RET go-guru RET
M-x eval-expression RET (setq go-guru-build-tags "one") RET
M-x toggle-debug-on-error RET
go-guru--command
Normal
guru
output.The following stacktrace is produced:
This seems to have been broken by this commit. Note that the stacktrace is only produced if
go-guru-build-tags
is a non-empty string, which explains why this bug was not immediately noticed.I see a few possible solutions.
go-guru--command
fromback to just
If choosing this solution it would probably be good to expand the docstring for
go-guru-build-tags
to indicate that the value must be comma-separated when including multiple build tags.go-guru-build-tags
to a list of stringsand leave
go-guru--command
as it currently is. This solution seems better except that it would break anyone currently settinggo-guru-build-tags
as a string. Therefore, I'm not sure which one should be preferred./cc @alandonovan, @dominikh
The text was updated successfully, but these errors were encountered: