-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/playground: add vet #7597
Comments
Not a bad idea. Owner changed to @adg. Status changed to Accepted. |
Please go ahead. http://code.google.com/p/go-playground is where the code lives. Take a look at how the fmt handler works. It would be similar to that. |
Thanks. The front-end part was surprisingly pleasant and straightforward. Sadly, the rest is going to be disruptive. It will require converting vet into a package. I have a couple of vet modules queued for 1.4. Once those land (or crash), I'll email golang-dev to see how folks feel about turning vet into a package. Owner changed to @josharian. Status changed to Started. |
I like this as it would hopefully reduce some of the traffic to golang-nuts. It would also be nice if there was a race option for the run button, like the imports option on the Format button. It would hopefully have a similar effect to bring more visibility to the race-detector. That may not be possible though, since the race detector probably won't work on the playground platform. AFAIK it only works on 64-bit darwin/linux/windows/freebsd, while the playground is nacl/386 I believe. |
The front-end work I did for this (now perhaps a bit dated) can be found at https://codereview.appspot.com/103750044/ and https://codereview.appspot.com/104770043/. The hard part--splitting vet into a package and a command--is still outstanding. |
Now that the new sandbox server is running on a VM, we can think about just On 10 January 2015 at 06:47, Josh Bleecher Snyder notifications@github.com
|
Running playground on a sandbox makes easier to execute These two CLs addresses this issue, by updating both sandbox, playground frontend application and a static file shared with godoc. Currently, it is implemented following this way: I considered the alternative of overloading Of course, I am ready to change the implementation after debate. Anyway, I should like to open as soon as possible another CL updating docs to mention the existence of a proxy at https://go-review.googlesource.com/#/c/11632/ |
@adg ping |
@josharian ping. |
CL https://golang.org/cl/11633 mentions this issue. |
CL https://golang.org/cl/11632 mentions this issue. |
Sorry, I'm busy preparing for GopherCon. I will review this after next week. On 1 July 2015 at 08:01, GopherBot notifications@github.com wrote:
|
@adg Sorry to bother you, could you please take a look at these CLs? |
After Go 1.5 is out, yes. On 27 July 2015 at 16:23, Carlos Cirello notifications@github.com wrote:
|
UI lgtm! |
Change https://golang.org/cl/100775 mentions this issue: |
Change https://golang.org/cl/100776 mentions this issue: |
Playground needs godoc to support calls to /vet endpoint in playground.js. Optional parameter "vetEl" is added to the function "playground". If it's passed then the js installs the click handler to the element. There is a corresponding CL 100776 for the playground code. Updates golang/go#7597 Change-Id: Ica2e7cb9d76f6f19a1805c182e666b8142762da9 Reviewed-on: https://go-review.googlesource.com/100775 Reviewed-by: Andrew Bonventre <andybons@golang.org>
Reviewers are welcome here: https://golang.org/cl/100776 |
Change https://golang.org/cl/107455 mentions this issue: |
This change adds an option to run "go vet" for the playground program and display errors before any output. To enable this, the playground function has to be supplied with opts.enableVet set to true. Vet check is performed only for succesfully run programs, meaning that the "/compile" endpoint returned no errors. This change highlights lines printed to stderr as errors (in red). There is a corresponding change for the Playground: CL 100776. Updates golang/go#7597 Updates golang/go#24576 Change-Id: I8c0f8c1189c461338b5bce57777b12aecab268fb Reviewed-on: https://go-review.googlesource.com/107455 Run-TryBot: Yury Smolsky <yury@smolsky.by> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
The text was updated successfully, but these errors were encountered: