On 14 May 2015 at 15:11, Alberto García Hierro wrote:
I do have a "hackish" solution working, which uses the directory mtime to
invalidate the cache. Works for me, but I do understand that it's an
unreliable mechanism, so I don't have plans to even submit a CL.
On the other hand, I don't think think fixing #4 is worth the effort. I've
checked several editors and most of the time they feed goimports from stdin
using the current buffer, so there's no way goimports can't find about
identifiers in other files from the same package. One could argue that the
editor/plugin authors might be doing it wrong by feeding goimports from
stdin, but I have no idea about how difficult might be to change that.
I do have a "hackish" solution working, which uses the directory mtime to
invalidate the cache. Works for me, but I do understand that it's an
unreliable mechanism, so I don't have plans to even submit a CL.
On the other hand, I don't think think fixing #4 is worth the effort. I've
checked several editors and most of the time they feed goimports from stdin
using the current buffer, so there's no way goimports can't find about
identifiers in other files from the same package. One could argue that the
editor/plugin authors might be doing it wrong by feeding goimports from
stdin, but I have no idea about how difficult might be to change that.
godef reads input from stdin, but also finds definitions in the
current directory.
--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.