Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3178)

Issue 9502043: code review 9502043: go.tools/oracle: an oracle that answers questions about... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by adonovan
Modified:
10 years, 8 months ago
Reviewers:
r, crawshaw1
CC:
gri, crawshaw1, Dominik Honnef, golang-dev
Visibility:
Public.

Description

go.tools/oracle: an oracle that answers questions about Go source code. + Tests. + Emacs integration. + Emacs integration test. + very rudimentary Vim integration. Needs some love from a Vim user. TODO (in follow-ups): - More tests would be good. We'll need to make the output order deterministic in more places. - Documentation.

Patch Set 1 #

Patch Set 2 : diff -r 73fb6fb6dc85 https://code.google.com/p/go.tools #

Patch Set 3 : diff -r 399682188b8b https://code.google.com/p/go.tools #

Patch Set 4 : diff -r 5d05d04e3494 https://code.google.com/p/go.tools #

Patch Set 5 : diff -r 5d05d04e3494 https://code.google.com/p/go.tools #

Patch Set 6 : diff -r 5d05d04e3494 https://code.google.com/p/go.tools #

Patch Set 7 : diff -r 5d05d04e3494 https://code.google.com/p/go.tools #

Patch Set 8 : diff -r 5d05d04e3494 https://code.google.com/p/go.tools #

Patch Set 9 : diff -r 5d05d04e3494 https://code.google.com/p/go.tools #

Patch Set 10 : diff -r b0c3f2b8db67 https://code.google.com/p/go.tools #

Patch Set 11 : diff -r 24c4ae1cd60c https://code.google.com/p/go.tools #

Total comments: 19

Patch Set 12 : diff -r 24c4ae1cd60c https://code.google.com/p/go.tools #

Patch Set 13 : diff -r 24c4ae1cd60c https://code.google.com/p/go.tools #

Patch Set 14 : diff -r 24c4ae1cd60c https://code.google.com/p/go.tools #

Total comments: 2

Patch Set 15 : diff -r 3b1ee4ac7c1f https://code.google.com/p/go.tools #

Patch Set 16 : diff -r 3b1ee4ac7c1f https://code.google.com/p/go.tools #

Patch Set 17 : diff -r 3b1ee4ac7c1f https://code.google.com/p/go.tools #

Total comments: 9

Patch Set 18 : diff -r 3b1ee4ac7c1f https://code.google.com/p/go.tools #

Total comments: 8

Patch Set 19 : diff -r 93dc16bbc916 https://code.google.com/p/go.tools #

Total comments: 4

Patch Set 20 : diff -r 93dc16bbc916 https://code.google.com/p/go.tools #

Patch Set 21 : diff -r a26635dce92a https://code.google.com/p/go.tools #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3125 lines, -1 line) Patch
A cmd/oracle/emacs-test.bash View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +50 lines, -0 lines 0 comments Download
A cmd/oracle/main.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +104 lines, -0 lines 1 comment Download
A cmd/oracle/oracle.el View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +180 lines, -0 lines 0 comments Download
A cmd/oracle/oracle.vim View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +62 lines, -0 lines 0 comments Download
A oracle/callees.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +97 lines, -0 lines 0 comments Download
A oracle/callers.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +73 lines, -0 lines 0 comments Download
A oracle/callgraph.go View 1 2 3 4 5 6 7 1 chunk +63 lines, -0 lines 0 comments Download
A oracle/callstack.go View 1 2 3 4 5 6 7 1 chunk +86 lines, -0 lines 0 comments Download
A oracle/describe.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +715 lines, -0 lines 0 comments Download
A oracle/freevars.go View 1 2 3 4 5 6 7 8 9 1 chunk +143 lines, -0 lines 0 comments Download
A oracle/implements.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +84 lines, -0 lines 0 comments Download
A oracle/oracle.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +381 lines, -0 lines 0 comments Download
A oracle/oracle_test.go View 1 2 3 10 1 chunk +218 lines, -0 lines 0 comments Download
A oracle/peers.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +147 lines, -0 lines 0 comments Download
A oracle/testdata/src/lib/lib.go View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A oracle/testdata/src/main/calls.go View 1 2 3 1 chunk +86 lines, -0 lines 0 comments Download
A oracle/testdata/src/main/calls.golden View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +106 lines, -0 lines 0 comments Download
A oracle/testdata/src/main/describe.go View 1 2 3 1 chunk +75 lines, -0 lines 0 comments Download
A oracle/testdata/src/main/describe.golden View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +165 lines, -0 lines 0 comments Download
A oracle/testdata/src/main/freevars.go View 1 2 3 4 5 6 1 chunk +37 lines, -0 lines 0 comments Download
A oracle/testdata/src/main/freevars.golden View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
A oracle/testdata/src/main/implements.go View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A oracle/testdata/src/main/implements.golden View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
A oracle/testdata/src/main/imports.go View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download
A oracle/testdata/src/main/imports.golden View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +46 lines, -0 lines 0 comments Download
A oracle/testdata/src/main/peers.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +40 lines, -0 lines 0 comments Download
A oracle/testdata/src/main/peers.golden View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +73 lines, -0 lines 0 comments Download
M pointer/util.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25
adonovan
Hello gri@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.tools
10 years, 8 months ago (2013-08-02 02:09:08 UTC) #1
adonovan
Hello gri@golang.org, crawshaw@google.com, dominik.honnef@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 8 months ago (2013-08-22 19:44:36 UTC) #2
Dominik Honnef
Probably getting ahead of you here :) https://codereview.appspot.com/9502043/diff/44001/cmd/oracle/oracle.el File cmd/oracle/oracle.el (right): https://codereview.appspot.com/9502043/diff/44001/cmd/oracle/oracle.el#newcode15 cmd/oracle/oracle.el:15: (defvar go-command ...
10 years, 8 months ago (2013-08-22 20:06:46 UTC) #3
adonovan
Thanks for the review! https://codereview.appspot.com/9502043/diff/44001/cmd/oracle/oracle.el File cmd/oracle/oracle.el (right): https://codereview.appspot.com/9502043/diff/44001/cmd/oracle/oracle.el#newcode15 cmd/oracle/oracle.el:15: (defvar go-command On 2013/08/22 20:06:46, ...
10 years, 8 months ago (2013-08-22 20:28:04 UTC) #4
Dominik Honnef
https://codereview.appspot.com/9502043/diff/44001/cmd/oracle/oracle.el File cmd/oracle/oracle.el (right): https://codereview.appspot.com/9502043/diff/44001/cmd/oracle/oracle.el#newcode15 cmd/oracle/oracle.el:15: (defvar go-command On 2013/08/22 20:28:04, adonovan wrote: > On ...
10 years, 8 months ago (2013-08-22 20:35:18 UTC) #5
Dominik Honnef
https://codereview.appspot.com/9502043/diff/47001/cmd/oracle/oracle.el File cmd/oracle/oracle.el (right): https://codereview.appspot.com/9502043/diff/47001/cmd/oracle/oracle.el#newcode25 cmd/oracle/oracle.el:25: :group 'go) TODO should be 'go-oracle if we decide ...
10 years, 8 months ago (2013-08-22 20:38:16 UTC) #6
Dominik Honnef
Does the oracle depend on any uncommitted changes to SSA or the importer? I'm getting ...
10 years, 8 months ago (2013-08-22 20:42:23 UTC) #7
adonovan
https://codereview.appspot.com/9502043/diff/44001/cmd/oracle/oracle.el File cmd/oracle/oracle.el (right): https://codereview.appspot.com/9502043/diff/44001/cmd/oracle/oracle.el#newcode93 cmd/oracle/oracle.el:93: "GOMAXPROCS=8" On 2013/08/22 20:35:18, Dominik Honnef wrote: > On ...
10 years, 8 months ago (2013-08-22 20:55:50 UTC) #8
Dominik Honnef
https://codereview.appspot.com/9502043/diff/44001/cmd/oracle/oracle.el File cmd/oracle/oracle.el (right): https://codereview.appspot.com/9502043/diff/44001/cmd/oracle/oracle.el#newcode104 cmd/oracle/oracle.el:104: (apply #'call-process (append (list "/usr/bin/env" nil t nil) args)) ...
10 years, 8 months ago (2013-08-22 21:00:55 UTC) #9
adonovan
On 2013/08/22 21:00:55, Dominik Honnef wrote: > Temporarily changing process-environment should do the trick, and ...
10 years, 8 months ago (2013-08-22 21:22:49 UTC) #10
Dominik Honnef
https://codereview.appspot.com/9502043/diff/46053/oracle/peers.go File oracle/peers.go (right): https://codereview.appspot.com/9502043/diff/46053/oracle/peers.go#newcode33 oracle/peers.go:33: return nil, o.errorf(o.queryPath[0], "there is no send/receive here") Is ...
10 years, 8 months ago (2013-08-22 21:53:25 UTC) #11
adonovan
On 22 August 2013 17:53, <dominik.honnef@gmail.com> wrote: > > https://codereview.appspot.**com/9502043/diff/46053/oracle/**peers.go<https://codereview.appspot.com/9502043/diff/46053/oracle/peers.go> > File oracle/peers.go (right): > ...
10 years, 8 months ago (2013-08-22 22:33:23 UTC) #12
Dominik Honnef
Sorry for the ton of messages, but I'm kind of discovering independent "issues" here as ...
10 years, 8 months ago (2013-08-22 22:42:47 UTC) #13
adonovan
> Sorry for the ton of messages, but I'm kind of discovering independent "issues" here ...
10 years, 8 months ago (2013-08-26 20:51:56 UTC) #14
Dominik Honnef
https://codereview.appspot.com/9502043/diff/46053/oracle/implements.go File oracle/implements.go (right): https://codereview.appspot.com/9502043/diff/46053/oracle/implements.go#newcode9 oracle/implements.go:9: // package-level named types in the containing the query ...
10 years, 8 months ago (2013-08-26 23:33:09 UTC) #15
adonovan
https://codereview.appspot.com/9502043/diff/46053/oracle/implements.go File oracle/implements.go (right): https://codereview.appspot.com/9502043/diff/46053/oracle/implements.go#newcode9 oracle/implements.go:9: // package-level named types in the containing the query ...
10 years, 8 months ago (2013-08-27 13:57:55 UTC) #16
crawshaw1
LGTM Leaving oracle.el to Dominik. https://codereview.appspot.com/9502043/diff/46053/cmd/oracle/main.go File cmd/oracle/main.go (right): https://codereview.appspot.com/9502043/diff/46053/cmd/oracle/main.go#newcode49 cmd/oracle/main.go:49: // TODO(adonovan): the caller ...
10 years, 8 months ago (2013-08-27 14:19:58 UTC) #17
adonovan
https://codereview.appspot.com/9502043/diff/46053/cmd/oracle/main.go File cmd/oracle/main.go (right): https://codereview.appspot.com/9502043/diff/46053/cmd/oracle/main.go#newcode49 cmd/oracle/main.go:49: // TODO(adonovan): the caller must---before go/build.init On 2013/08/27 14:19:59, ...
10 years, 8 months ago (2013-08-27 15:20:54 UTC) #18
Dominik Honnef
https://codereview.appspot.com/9502043/diff/88001/cmd/oracle/oracle.el File cmd/oracle/oracle.el (right): https://codereview.appspot.com/9502043/diff/88001/cmd/oracle/oracle.el#newcode84 cmd/oracle/oracle.el:84: (env (split-string (shell-command-to-string (concat go-command " env GOROOT GOPATH")) ...
10 years, 8 months ago (2013-08-27 15:25:45 UTC) #19
adonovan
https://codereview.appspot.com/9502043/diff/88001/cmd/oracle/oracle.el File cmd/oracle/oracle.el (right): https://codereview.appspot.com/9502043/diff/88001/cmd/oracle/oracle.el#newcode84 cmd/oracle/oracle.el:84: (env (split-string (shell-command-to-string (concat go-command " env GOROOT GOPATH")) ...
10 years, 8 months ago (2013-08-27 15:32:21 UTC) #20
Dominik Honnef
https://codereview.appspot.com/9502043/diff/88001/cmd/oracle/oracle.el File cmd/oracle/oracle.el (right): https://codereview.appspot.com/9502043/diff/88001/cmd/oracle/oracle.el#newcode84 cmd/oracle/oracle.el:84: (env (split-string (shell-command-to-string (concat go-command " env GOROOT GOPATH")) ...
10 years, 8 months ago (2013-08-27 15:36:48 UTC) #21
adonovan
https://codereview.appspot.com/9502043/diff/88001/cmd/oracle/oracle.el File cmd/oracle/oracle.el (right): https://codereview.appspot.com/9502043/diff/88001/cmd/oracle/oracle.el#newcode84 cmd/oracle/oracle.el:84: (env (split-string (shell-command-to-string (concat go-command " env GOROOT GOPATH")) ...
10 years, 8 months ago (2013-08-27 16:07:48 UTC) #22
adonovan
*** Submitted as https://code.google.com/p/go/source/detail?r=d40b06526a07&repo=tools *** go.tools/oracle: an oracle that answers questions about Go source code. ...
10 years, 8 months ago (2013-08-27 21:58:28 UTC) #23
r
https://codereview.appspot.com/9502043/diff/99001/cmd/oracle/main.go File cmd/oracle/main.go (right): https://codereview.appspot.com/9502043/diff/99001/cmd/oracle/main.go#newcode1 cmd/oracle/main.go:1: // oracle: a tool for answering questions about Go ...
10 years, 8 months ago (2013-08-27 22:05:30 UTC) #24
adonovan
10 years, 8 months ago (2013-08-27 22:09:07 UTC) #25
On 27 August 2013 18:05, <r@golang.org> wrote:

>
>
https://codereview.appspot.**com/9502043/diff/99001/cmd/**oracle/main.go<http...
> File cmd/oracle/main.go (right):
>
> https://codereview.appspot.**com/9502043/diff/99001/cmd/**
>
oracle/main.go#newcode1<https://codereview.appspot.com/9502043/diff/99001/cmd/oracle/main.go#newcode1>
> cmd/oracle/main.go:1: // oracle: a tool for answering questions about Go
> source code.
> missing copyright.
> check other files too.
>

Oops, will send a CL.


> where is the documentation?
>

Writing it as we speak.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b