-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: synchronize editor library with tour #18723
Comments
CL https://golang.org/cl/41207 mentions this issue. |
Update CodeMirror editor from version 3.16 to the latest current version, which is 5.25.2. The goal is to reduce maintenance burden in the future, and make it easier to enable features like bracket matching, etc. The update was done by overwriting existing files with those from the latest CodeMirror release. No new files were added. I tested gotour locally and the new editor appears to work ok. There are no errors in console, typing works, and I noticed at least one issue resolved in the new version. Typing CodeMirror.version in browser console now prints "5.25.2". Commit 768e12f applied manual changes to mode/go/go.js, but these have been merged upstream via codemirror/codemirror5@047afd2, codemirror/codemirror5@524f54a, and codemirror/codemirror5@1ec2263. As a result, I was able to use mode/go/go.js from upstream without cherry-picking those changes. Helps #146. Helps golang/go#18723. Change-Id: I94bd687609b80de7a4ed89cf6a300a878ac9bfe6 Reviewed-on: https://go-review.googlesource.com/41207 Reviewed-by: Chris Broadfoot <cbro@golang.org>
Hi, maybe considering merging https://goplay.space/ into the official playground would be a good improvement for all gophers? Thank you. |
I've not seen this before. It looks quite impressive.
…On Sat, Jun 10, 2017 at 6:38 AM Florin Pățan ***@***.***> wrote:
Hi, maybe considering merging https://goplay.space/ into the official
playground would be a good improvement for all gophers? Thank you.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#18723 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAKlZITP_8lE1Baaa1llW-5IcsmtdO8Xks5sCnIxgaJpZM4LovYG>
.
|
As cool as goplay.space is, it has diverted a lot from the playground code. I don't think we can "merge" it. |
I think this requires rethinking. IMHO adding CodeMirror to Playground means more maintenance. And code in playground right now is simple and requires no updates about CodeMirror lib. So my vote is a no. |
@andybons please see the comment above. |
CodeMirror is an enormous library and we wouldn’t use 99% of the features. I’d rather move the tour to a simpler editor implementation. |
Okay. Adding the whole library just for the sake of syntax highlighting is a no go. Closing. |
for unknown reasons the playground and the go tour use completely separate editor libraries. The tour one is much more advanced leveraging http://codemirror.net.
Ideally we would use a single script to power both and simply embed one in the other. To as much of a degree as possible sharing code between them would result in better features and less maintenance.
Somewhat dependent on golang/tour#146
The text was updated successfully, but these errors were encountered: