-
Notifications
You must be signed in to change notification settings - Fork 2
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
"Invalid GoRename parameters" #5
Comments
make sure that when yout type the new variable name there's no more than one word. |
I wasn't able to reproduce this btw, please make sure you have the latest version. |
its seems there is a some weird first time running behavior, after installation try restarting sublime. |
I restarted Sublime several times, every time I'm typing single-word variable. Plugin was installed today from Package Control package manager. There are also some errors when I look at Sublime console:
|
It is some problem with args passing to gorename tool for sure, but I can't see any logs what the plugin really trying to launch. To reproduce the same message just type in console:
This is my gorename --help output:
|
the debug logs would be very useful, to enable them go to |
I found the issue - plugin does not support spaces in file path. For example:
When I try to run this in terminal:
As soon as I renamed "my proj" to "my_proj" everything worked great. I never use spaces in directory names, but I was using symlink, which was automatically named "Link to blahblah" and that was the problem. The gorename tool does not support quotation marks for file path, but it is possible to resolve this by escaping space character. I was able to do this in terminal without any problem:
|
thanks mkleina ! Any contributions to fix this issue are welcome, currently I don't have the time, somehow the solution should be fairly trivial now that we are aware of the specifics. |
I have gorename tool installed, it works great it Atom editor. When I press Ctrl+Alt+R, ESC, then type new variable name and press Enter, console shows part of code and "Press ENTER to continue" message. After pressing Enter again, console shows "gorename: surplus arguments" message and "Invalid GoRename parameters" popup appears. Code is not modified after that, so plugin doesn't work at all for me. I am using Ubuntu 16.04 and Sublime Text 3 build 3103.
The text was updated successfully, but these errors were encountered: