Skip to content
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

Move to monaco-editor #13838

Closed
rumbin opened this issue Mar 27, 2021 · 17 comments
Closed

Move to monaco-editor #13838

rumbin opened this issue Mar 27, 2021 · 17 comments

Comments

@rumbin
Copy link
Contributor

rumbin commented Mar 27, 2021

Current situation

There are several open issues that are related to the code editor, e.g.
#12429
#9990

Switching to monaco-editor has been discussed several times and was mentioned as a post-1.0.0 task: #10254, #10267, #12423.

Suggested change

Switch to monaco-editor, the editor behind VS Code.

Personally, I have worked with websites using this editor (dbt Cloud, dataform) and feel that it works very well.

Alternative

Stick with the current editor or consider others.

@rumbin
Copy link
Contributor Author

rumbin commented Jan 22, 2022

I'd like to raise this issue again.
I just gave a Superset/SQL training to our users and I could see how they were unhappy about the Ace editor.
Some even resort to different tools like the Snowflake web frontend for this reason.

@villebro
Copy link
Member

@betodealmeida thoughts?

@betodealmeida
Copy link
Member

@villebro I think we should give it a try (I also mention it in SIP-68).

@ktmud
Copy link
Member

ktmud commented Mar 2, 2022

I plan to work on this this year.

@srinify
Copy link
Contributor

srinify commented Mar 14, 2022

Any thoughts on CodeMirror? @ktmud @rumbin

https://blog.replit.com/code-editors#head-to-head

@ktmud
Copy link
Member

ktmud commented Mar 14, 2022

@srinify Thanks for sharing the analysis! It seems their main reason of switching to CodeMirror 6 is that Monaco doesn't support mobile and they need to support a lot of languages. I don't think mobile support for code editing is that important for Superset so I'm still leaning towards Monaco for it's richness of config options and best-in-class autocompletion.

@srinify
Copy link
Contributor

srinify commented Mar 14, 2022

Ah interesting

@rusackas
Copy link
Member

Anyone on this thread still have the intent to carry this forward and own the task? Wondering if whether should keep this open, convert this to a Discussion as a feature idea if we're looking for new volunteers, or close it if there's no longer any steam behind the initiative.

@rumbin
Copy link
Contributor Author

rumbin commented Jan 12, 2023

This task exceeds my coding capabilities by far, but I'd assist with testing and discussion, if needed.

It would be so useful to switch to an editor that behaves like many of our users are used to from VS Code.

@ktmud
Copy link
Member

ktmud commented Jan 12, 2023

Sorry for not carrying this forward. Had some priority shift internally and got pulled into other projects. Feel free to convert this into a discussion as it is a feature request and I think we now generally keep feature ideas as discussions.

If we ended finding a volunteer to work on this, I'd be happy to help with code review still.

@rusackas
Copy link
Member

It's been another year since anything has happened on this thread. I think we should close this out as inactive/stale as well as because it's a feature request rather than a bug, per se (even if it would solve other reported issues). If anyone wants to pursue this, I think it might warrant a SIP or at least a discussion thread for lazy consensus, but there are indeed plenty of reasons to consider it. Say the word if you want to contribute and want any help in the process to make it happen!

@rumbin
Copy link
Contributor Author

rumbin commented Feb 15, 2024

@rusackas I neither have the skills nor the capacity to make this happen. But still I feel that switching to Monaco editor would be a huge step forward for Superset/SQLLab.

@rusackas
Copy link
Member

I don't imagine it'd be easy, but you're welcome to start a Discussion or take it to Slack and try to recruit interested parties around it, if you want to help make it happen :D

@chintanp
Copy link

chintanp commented Apr 26, 2024

I think closing this as "Completed" is incorrect. If it tracked elsewhere, then it is fine.as otherwise this is still a major issue as far as usability of Superset is considered. Code Editor is a very important requirement and the current editor is fairly buggy to be not useful. Please suggest alternatives, if possible. @rumbin have you found any other workarounds? Is the Snowflake web frontend you mention open-source and free to use?

@rumbin
Copy link
Contributor Author

rumbin commented Apr 27, 2024

@chintanp our users are, to be honest, resorting to Snowflake's Snowsight web UI, as they are frustrated with SQLLab's editor.
Furthermore, we are using Grafana for time series charts if raw data and for histogram and CDF distribution charts. The OSS Grafana Snowflake connector is now using the Monaco editor...

So these are our unpleasant workarounds.

@rusackas
Copy link
Member

Admittedly, I default to "completed" more often than I should, rather than selecting the other issue methods... I'll try to be better about that.

Nonetheless, if anyone wants to replace Ace Editor with something better, we're all for a SIP proposal to detail the UI changes/challenges, alternatives considered, and technical/migration plan. Just open an Issue ith the SIP template and you can spearhead that project.

Otherwise, if there are issues with the current editor making things unusable, we'd love to see those filed as issues so we can tackle them, whilst other grand plans are being scaffolded.

CC @yousoph @betodealmeida @eschutho @justinpark who might care about such a project.

@rusackas rusackas reopened this Apr 27, 2024
@rusackas rusackas closed this as not planned Won't fix, can't repro, duplicate, stale Apr 27, 2024
@betodealmeida
Copy link
Member

I'd love to see this, but I'm currently working on SIPs 85, 95, and 117. Hopefully someone can take this work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants