Closed ashb closed 3 weeks ago
/cc @alandonovan
Having the same issue, is there any workaround on this?
I'm not sure when (I'm on go 1.9.2) but the error changed to: "gorename: cannot rename identifiers in generated file containing DO NOT EDIT marker"
And took me a while to figure out that gorename doesn't work on cgo files. Should at least change the error message if there isn't going to be a fix anytime soon.
closing as obsoleted by #69360
Please answer these questions before submitting your issue. Thanks!
1. What version of Go are you using (
go version
)?2. What operating system and processor architecture are you using (
go env
)?3. What did you do?
Given this input file
demo.go
:Run this command:
gorename -offset demo.go:#78 -to bar
4. What did you expect to see?
It rename without error:
Renamed 2 occurrences in 1 file in 1 package.
5. What did you see instead?
I got this error:
gorename: -offset "demo.go:#78": no identifier at this position