-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
GoRename fails if there is some errors in code #664
Comments
Same here, Would be nice if it was easy to run the equivalent of |
Looks like most (all?) commands' non-success output get eaten in the latest version. |
Continuing the investigation (apologies for the comment trickle/barrage): The problem is here: Line 50 in 056a911
gorename produces failure messages like "gorename: can't find package containing ..." which is not considered an error by the regexp '^(fatal error:.*)$' so it gets swallowed. I think a better approach would to only rely on the code of the exec? Or at least fall back on the original error string if ParseErrors fails to extract anything. |
Ok I figured out what's going on and I think I understand how it's supposed to work based on the other commands. Sending a PR. :) |
I try to rename some variable in my code when there is some errors in it.
After running
:GoRename
command my cursor is moved to first error in code and I cannot even understand what happened. There is any error in status line and Location List with errors is not opened.Only after running
:lopen
I can view list of errors.Variable is not renamed.
The text was updated successfully, but these errors were encountered: