Hello golang-dev@googlecode.com, dsymonds@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to http://go.googlecode.com/hg/
12 years, 9 months ago
(2011-08-03 07:25:12 UTC)
#1
On Wed, Aug 3, 2011 at 5:54 PM, mattn <mattn.jp@gmail.com> wrote: > Completing name of ...
12 years, 9 months ago
(2011-08-03 08:16:24 UTC)
#4
On Wed, Aug 3, 2011 at 5:54 PM, mattn <mattn.jp@gmail.com> wrote:
> Completing name of package for Import/ImportAs command is useful i guess.
> But It shouldn't write a copy of complete function in godoc.vim. And more,
> autoload make help to be memory-saving.
Okay, that makes sense.
> BTW, I think that readme.txt should be only below.
I disagree. Playing with rtp is fine for individual users to take on
themselves, but it's too easy to get confused by it when things go
wrong. I'd prefer to leave things the way we've got them, where people
can cherry-pick the add-ons that they care about.
Also, the lowest common denominator Go programmer won't necessarily
have a full $GOROOT; they may very well have only the binaries and
package files (e.g. installed from a Debian package or something). The
misc/vim stuff shouldn't be dependent on $GOROOT.
Dave.
I'd like some other Vim users to chime in on this change too. http://codereview.appspot.com/4837051/diff/5004/misc/vim/autoload/go/complete.vim File ...
12 years, 9 months ago
(2011-08-05 05:52:02 UTC)
#5
+ a couple of people who have reviewed previous misc/vim changes On Fri, Aug 5, ...
12 years, 9 months ago
(2011-08-09 05:15:57 UTC)
#7
+ a couple of people who have reviewed previous misc/vim changes
On Fri, Aug 5, 2011 at 3:52 PM, <dsymonds@golang.org> wrote:
> I'd like some other Vim users to chime in on this change too.
Guys, do you have feedback on this change?
Dave.
On 2011/08/09 05:15:57, dsymonds wrote: > + a couple of people who have reviewed previous ...
12 years, 9 months ago
(2011-08-09 07:46:08 UTC)
#8
On 2011/08/09 05:15:57, dsymonds wrote:
> + a couple of people who have reviewed previous misc/vim changes
>
> On Fri, Aug 5, 2011 at 3:52 PM, <mailto:dsymonds@golang.org> wrote:
> > I'd like some other Vim users to chime in on this change too.
>
> Guys, do you have feedback on this change?
I think in general we need to do the following:
1. Write a help file so :help go or :help golang can detail the various things
we allow here. It's just good vim practice.
2. Make some of the features of this bundle configurable using variables, for
example documenting a way for the user to specify the pkg directory for
searching, goos, etc. Then we can simplify the installation instructions and
just allow them to turn features on and off at will.
Neither of those is necessarily should be under the scope of this change. I'd
like to see the comments in go/complete.vim updated to be more descriptive, but
this all seems to make sense to me.
http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete.vim File misc/vim/autoload/go/complete.vim (right): http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete.vim#newcode3 misc/vim/autoload/go/complete.vim:3: " license that can be found in the LICENSE ...
12 years, 9 months ago
(2011-08-10 01:12:27 UTC)
#11
http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete...
File misc/vim/autoload/go/complete.vim (right):
http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete...
misc/vim/autoload/go/complete.vim:3: " license that can be found in the LICENSE
file.
Sorry. I'm not native speaker. So I can't understand your meanings. What do you
mean?
* This file should add comment of "indent/go uses this autoload functions"?
Or
* This file is included from indent/go ?
On 2011/08/09 18:10:07, jnw wrote:
> Please describe what this file does and contains in comments following the
> copyright notice. We're missing this in a few other files, but we have it in
> indent/go and we should get better at making sure it's included.
http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete...
misc/vim/autoload/go/complete.vim:30: " should not occur error.
I guess this have better to be graceful failure.
It make screen break while editing command line. (But this is vim's problem)
On 2011/08/09 17:48:08, niemeyer wrote:
> Why not? It feels quite reasonable that people would be editing a Go file
> without $GOROOT set. There are ways we can detect $GOROOT, but it doesn't have
> to be supported right now. Even then, "Can't handle it right now" is a more
> accurate statement than "shouldn't happen".
http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete...
misc/vim/autoload/go/complete.vim:34: let root =
expand($GOROOT.'/pkg/'.s:goos.'_'.s:goarch)
Do you mean that we have better to add $GOPATH to specify whole path sting to
package?
On 2011/08/09 17:48:08, niemeyer wrote:
> What about $GOPATH?
> I guess this have better to be graceful failure. > It make screen break ...
12 years, 9 months ago
(2011-08-10 04:18:36 UTC)
#12
> I guess this have better to be graceful failure.
> It make screen break while editing command line. (But this is vim's
> problem)
Agreed, vim shouldn't break in awkward ways if $GOROOT isn't set.
> Do you mean that we have better to add $GOPATH to specify whole path
> sting to package?
No, GOPATH allows providing alternative lookup paths for packages.
Check this out: http://golang.org/cmd/goinstall
It doesn't feel like this CL should be blocked on this, though. It's
a simple change for a follow up CL.
--
Gustavo Niemeyer
http://niemeyer.nethttp://niemeyer.net/plushttp://niemeyer.net/twitterhttp://niemeyer.net/blog
-- I never filed a patent.
On Wed, Aug 10, 2011 at 2:18 PM, Gustavo Niemeyer <gustavo@niemeyer.net> wrote: >> Do you ...
12 years, 9 months ago
(2011-08-10 04:21:47 UTC)
#13
On Wed, Aug 10, 2011 at 2:18 PM, Gustavo Niemeyer <gustavo@niemeyer.net> wrote:
>> Do you mean that we have better to add $GOPATH to specify whole path
>> sting to package?
>
> No, GOPATH allows providing alternative lookup paths for packages.
>
> Check this out: http://golang.org/cmd/goinstall
>
> It doesn't feel like this CL should be blocked on this, though. It's
> a simple change for a follow up CL.
Yes, let's please punt on GOPATH for now.
Dave.
http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete.vim File misc/vim/autoload/go/complete.vim (right): http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete.vim#newcode3 misc/vim/autoload/go/complete.vim:3: " license that can be found in the LICENSE ...
12 years, 9 months ago
(2011-08-10 07:04:35 UTC)
#14
http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete...
File misc/vim/autoload/go/complete.vim (right):
http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete...
misc/vim/autoload/go/complete.vim:3: " license that can be found in the LICENSE
file.
On 2011/08/10 01:12:28, mattn wrote:
> Sorry. I'm not native speaker. So I can't understand your meanings. What do
you
> mean?
>
> * This file should add comment of "indent/go uses this autoload functions"?
>
> Or
>
> * This file is included from indent/go ?
>
>
> On 2011/08/09 18:10:07, jnw wrote:
> > Please describe what this file does and contains in comments following the
> > copyright notice. We're missing this in a few other files, but we have it in
> > indent/go and we should get better at making sure it's included.
>
Something like "This file provides a utility function that performs
auto-completion of package names, for use by other commands." would be more than
suffficient!
http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete.vim File misc/vim/autoload/go/complete.vim (right): http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete.vim#newcode3 misc/vim/autoload/go/complete.vim:3: " license that can be found in the LICENSE ...
12 years, 9 months ago
(2011-08-10 07:28:43 UTC)
#15
http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete...
File misc/vim/autoload/go/complete.vim (right):
http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete...
misc/vim/autoload/go/complete.vim:3: " license that can be found in the LICENSE
file.
On 2011/08/10 07:04:36, jnw wrote:
> On 2011/08/10 01:12:28, mattn wrote:
> > Sorry. I'm not native speaker. So I can't understand your meanings. What do
> you
> > mean?
> >
> > * This file should add comment of "indent/go uses this autoload functions"?
> >
> > Or
> >
> > * This file is included from indent/go ?
> >
> >
> > On 2011/08/09 18:10:07, jnw wrote:
> > > Please describe what this file does and contains in comments following the
> > > copyright notice. We're missing this in a few other files, but we have it
in
> > > indent/go and we should get better at making sure it's included.
> >
>
> Something like "This file provides a utility function that performs
> auto-completion of package names, for use by other commands." would be more
than
> suffficient!
Done.
12 years, 8 months ago
(2011-08-15 15:21:06 UTC)
#16
On 2011/08/10 07:28:43, mattn wrote:
>
http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete...
> File misc/vim/autoload/go/complete.vim (right):
>
>
http://codereview.appspot.com/4837051/diff/6002/misc/vim/autoload/go/complete...
> misc/vim/autoload/go/complete.vim:3: " license that can be found in the
LICENSE
> file.
> On 2011/08/10 07:04:36, jnw wrote:
> > On 2011/08/10 01:12:28, mattn wrote:
> > > Sorry. I'm not native speaker. So I can't understand your meanings. What
do
> > you
> > > mean?
> > >
> > > * This file should add comment of "indent/go uses this autoload
functions"?
> > >
> > > Or
> > >
> > > * This file is included from indent/go ?
> > >
> > >
> > > On 2011/08/09 18:10:07, jnw wrote:
> > > > Please describe what this file does and contains in comments following
the
> > > > copyright notice. We're missing this in a few other files, but we have
it
> in
> > > > indent/go and we should get better at making sure it's included.
> > >
> >
> > Something like "This file provides a utility function that performs
> > auto-completion of package names, for use by other commands." would be more
> than
> > suffficient!
>
> Done.
LGTM from my side of things.
I'm not seeing the changes from my last set of comments. http://codereview.appspot.com/4837051/diff/15003/misc/vim/autoload/go/complete.vim File misc/vim/autoload/go/complete.vim (right): ...
12 years, 8 months ago
(2011-08-18 01:33:53 UTC)
#18
Issue 4837051: code review 4837051: misc/vim: command complete using autoload helper function.
(Closed)
Created 12 years, 9 months ago by mattn
Modified 12 years, 8 months ago
Reviewers:
Base URL:
Comments: 23