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
Migrate to ACE editor #574
Conversation
|
Can I ask for the reasons to move from orion to ace ? curious to know. |
|
Hi @maxandersen it was largely a pragmatic choice based on the relative maturity of both editor components. We're big fans of Eclipse Orion. Their focus has been on the complete IDE environment, not just the editor component. We found it a bit of a struggle to add in some of the nicer functionality (code completion, error highlighting etc) to the Orion widget without seeming to need a lot of bits and pieces. ACE was a much more self-contained thing that got us those advanced features much more easily. Ultimately, we have limited resources and lots to do in Node-RED - so as I said, it was a pragmatic choice to get the functionality we needed. I'm not at all opposed to moving back to Orion at some point in the future - in fact, part of this change included providing the |
|
Thanks for the answer - much appreciated. I was just looking at node-red because it was integrating orion and then got surprised when I found it moved off so was curious what caused it. Full IDE vs "just an editor" explains it. |
|
Hi Max, as Nick said the embedded version of Ace has a lot more in it than the embedded version of Orion. And indeed some of the features in the Orion one (like folding) just didn't work and had been an open issue for almost a year, so it was a bit of a no-brainer until it catches up / leapfrogs. |
|
Do you have a link to the open issue about folding ? (since i'm using folding in orion and haven't noticed a problem) |
|
Not a problem on the full version... but the embedded one wouldn't allow language support. |
|
Thanks! good to know. any discussions raised on orion-dev on this ? when googling for it I don't find anything raised/discussed anywhere ;/ |
|
don't know. I did ping Grant in Jan, before we switched, and he confirmed it was still "on the list" to be fixed... so - life's too short to worry about it too much. |
Replaces our use of Eclipse Orion with the ACE editor.
Updates to:
RED.editor.createEditorutility function added to make it easier to create an instance of ACE with suitable default values.Orion code left in place for existing nodes that rely on us providing it.