-
Notifications
You must be signed in to change notification settings - Fork 29
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
Integrate monaco editor #1441
Integrate monaco editor #1441
Conversation
Requires installation of Qt6 WebEngine on the system ( |
Have you tried this for windows mingw compiler and under Ubuntu 2022 ? We seem to be having issues with it as @nadeemyaseen-rs and @KochynVolodymyr found out. |
* Update install_ubuntu_dependencies_build.sh to install qt6-webengine-dev * Update main.yml to get webengine widgets as well * Update main.yml * Update install_ubuntu_dependencies_build.sh * Update main.yml * Update main.yml to pull qt with webengine on centos 7 * Update install_centos_dependencies_build.sh * Incremented patch version * qwebengine issues (#1444) --------- Co-authored-by: nadeemyaseen-rs <nadeemyaseen-rs@users.noreply.github.com> Co-authored-by: KochynVolodymyr <95262932+KochynVolodymyr@users.noreply.github.com> Co-authored-by: ravic-rs <108307503+ravic-rs@users.noreply.github.com>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1441 +/- ##
==========================================
- Coverage 12.79% 12.78% -0.01%
==========================================
Files 278 278
Lines 31390 31398 +8
Branches 17930 17932 +2
==========================================
Hits 4015 4015
- Misses 26519 26527 +8
Partials 856 856 ☔ View full report in Codecov by Sentry. |
…ga/FOEDAG into qwebengineview_flashing_workaround
…r Context Menu Paste
Known issues:
|
@coolbreeze413 a conflict. |
@ravikiranchollangi @KochynVolodymyr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
@alain-rs keeping this on hold until @nadeemyaseen-rs adds qtwebengine in foedag_rs and raptor CI. |
@ravikiranchollangi @KochynVolodymyr @alaindargelas |
Thank you! |
@ravikiran ***@***.***> please PR all the way to Raptor
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Ravikiran Chollangi ***@***.***>
Sent: Sunday, January 21, 2024 11:25:42 AM
To: os-fpga/FOEDAG ***@***.***>
Cc: Alain Dargelas ***@***.***>; Mention ***@***.***>
Subject: Re: [os-fpga/FOEDAG] Integrate monaco editor (PR #1441)
@ravikiranchollangi<https://github.com/ravikiranchollangi> @KochynVolodymyr<https://github.com/KochynVolodymyr> @alaindargelas<https://github.com/alaindargelas> I have pushed fix for 'open links in editor' with default desktop opener as well.
Thank you!
—
Reply to this email directly, view it on GitHub<#1441 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AVTRKPLI4W6NBXHO6BSGHQDYPVTTNAVCNFSM6AAAAABBRFL5KWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSG4ZTKMZXG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
The Editor instance now uses the Monaco Editor (https://github.com/microsoft/monaco-editor) embedded into a HTML page, and loaded using QWebEngineView, in place of the QScintilla based editor.
This class implements QWebEngineView for the Editor instance, and uses QWebChannel to marshall signals and data between Qt C++ and monaco-editor JS code in the embedded HTML.
MONACO_EDITOR=1
as default for the Makefile, which controls switch between Monaco Editor based build vs the current QScintilla based build:make MONACO_EDITOR=1
MONACO_EDITOR=0
for this platform buildOptimize the delay in waiting for the JS side of Monaco Editor to be initialized before returning from this ctor (seen on first editor instance open)
Optimize the delay seen in Automatic Resize of Monaco Editor w.r.t resize of the FOEDAG window which seems to be due to the GPU rendering of the JS code
On clicking outside the editor, cursor changes to 'Arrow' and on refocus on the editor, cursor changes to 'Text', however on doing this multiple times, sometimes, the 'Arrow' does not change to 'Text' even though editor is focused correctly (we can even select the text with the 'Arrow' cursor)