-
-
Notifications
You must be signed in to change notification settings - Fork 489
chore: Updated to Theia 1.31.1
#1662
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
Conversation
e9fe466
to
2bf972c
Compare
2bf972c
to
968bef8
Compare
968bef8
to
5e8a1f7
Compare
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.
UPDATE: Fixed by 3b8ed7f
To reproduce
- Start Arduino IDE.
- Wait for the 2.0.2 update notification dialog to appear.
🐛 The introductory sentence and changelog are missing from the dialog:
Expected behavior
Arduino IDE version
b5afe99 (tester build for 5e8a1f7)
Operating system
Windows
Operating system version
10
Additional context
(削除ここまで)(削除) The issue does not occur with any of the builds from the main
branch (e.g., 2.0.2 with update notification triggered by changing to the "nightly" channel).
(削除ここまで)
Closes #1655 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
7c851ca
to
3b8ed7f
Compare
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Parts of the IDE update dialog are missing
It should be working.
As requested, I removed all UI of @theia/typehierarchy
. It was added to Theia with eclipse-theia/theia@16c88a5. If IDE2 wants to run VS Code extensions, it must deal with the contributed type-hierarchy features. In the long run, if feasible, IDE2 should enable clangd
's type-hierarchy
feature.
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.
UPDATE: fixed by f338106
To reproduce
- Select Tools > WiFi101 / WiFiNINA Firmware Updater from the Arduino IDE menus.
🙂 The dialog is populated as expected:
image - Click the X icon in the dialog.
- Select Tools > WiFi101 / WiFiNINA Firmware Updater from the Arduino IDE menus.
🐛 The dialog is empty:
Expected behavior
"WiFi101 / WiFiNINA Firmware Updater" dialog is populated any time it is opened.
Arduino IDE version
0d9b47b (tester build for 9e042ae)
Operating system
Windows
Operating system version
10
Additional context
I see an error in the logs the second time I open the dialog:
2022年11月23日T07:36:47.218Z root ERROR Error: Minified React error #409; visit https://reactjs.org/docs/error-decoder.html?invariant=409 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Yc.Qc.render.Yc.render (file:///C:/ide%202/rev/3-0d9b47b/resources/app/lib/bundle.js:2:9548299)
at b.onUpdateRequest (file:///C:/ide%202/rev/3-0d9b47b/resources/app/lib/bundle.js:2:2237015)
at b.e.processMessage (file:///C:/ide%202/rev/3-0d9b47b/resources/app/lib/bundle.js:2:10434587)
at h (file:///C:/ide%202/rev/3-0d9b47b/resources/app/lib/bundle.js:2:1457698)
at t (file:///C:/ide%202/rev/3-0d9b47b/resources/app/lib/bundle.js:2:1456674)
at p (file:///C:/ide%202/rev/3-0d9b47b/resources/app/lib/bundle.js:2:1457869)
(削除ここまで)
(削除) The issue does not occur with the build from the main
branch.
(削除ここまで)
- removed the firmware updater dialog widget - let the patched react dialog to render the content Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
There is another regression when creating a remote sketch. The spinner CSS selector has been removed from Theia. They kept the icon, but the --theia-icon-loading
is gone. We have to backport it.
missing-spinner.mp4
- it has been removed from Theia - aligned the DOM structure to previous the version when using widget Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Expected behavior
"WiFi101 / WiFiNINA Firmware Updater" dialog is populated any time it is opened.
It should work now. Thank you for finding it.
There is another regression when creating a remote sketch
This is also fixed.
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.
UPDATE: fixed by ba16dcf
To reproduce
Equipment
- Any board that is configured for "user provided fields".
For example, the boards that can produce a network port:- MKR1000
- Any ESP8266-based board
- Any ESP32-based board
- MKR WiFi 1010 (advanced configuration is required)
- Nano 33 IoT (advanced configuration is required)
Steps
-
Connect and set up the board that is configured for "user provided fields".
- MKR1000: https://docs.arduino.cc/tutorials/mkr-1000-wifi/wifi-101-ota
- ESP8266-based board: - https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html#application-example)
- ESP32-based board: File > Examples > ArduinoOTA > BasicOTA
- MKR WiFi 1010 / Nano 33 IoT: https://github.com/jandrassy/ArduinoOTA
- Select the board and port in the Arduino IDE.
- Select Sketch > Configure and Upload from the Arduino IDE menus.
🙂 The dialog is populated as expected:
image - Click the X icon in the dialog.
- Select Sketch > Configure and Upload from the Arduino IDE menus.
🐛 The dialog is empty:
Expected behavior
"Configure and Upload" dialog is populated any time it is opened.
Arduino IDE version
f8b97fc (tester build for bfcb518)
Operating system
Windows
Operating system version
10
Additional context
I see an error in the logs the second time I open the dialog:
2022年11月28日T04:58:55.930Z root ERROR Error: Minified React error #409; visit https://reactjs.org/docs/error-decoder.html?invariant=409 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at qc.Qc.render.qc.render (file:///C:/ide%202/rev/4-f8b97fc/resources/app/lib/bundle.js:2:9548586)
at h.onUpdateRequest (file:///C:/ide%202/rev/4-f8b97fc/resources/app/lib/bundle.js:2:2237982)
at h.e.processMessage (file:///C:/ide%202/rev/4-f8b97fc/resources/app/lib/bundle.js:2:10434874)
at h (file:///C:/ide%202/rev/4-f8b97fc/resources/app/lib/bundle.js:2:1458665)
at t (file:///C:/ide%202/rev/4-f8b97fc/resources/app/lib/bundle.js:2:1457641)
at p (file:///C:/ide%202/rev/4-f8b97fc/resources/app/lib/bundle.js:2:1458836)
(削除ここまで)
(削除) The issue does not occur with the build from the main
branch.
(削除ここまで)
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Expected behavior
"Configure and Upload" dialog is populated any time it is opened.
It should work now. Please take another look. Thank you!
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.
Nice one @kittaakos ❤️
What if we run this script in a pre-commit with husky
?
Also, I would probably rename it with .js
extension. Or is there a reason why you did otherwise?
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.
What if we run this script in a pre-commit with
husky
?
Good idea. Feel free to enhance it once it's on the main branch.
Also, I would probably rename it with
.js
extension. Or is there a reason why you did otherwise?
Thanks! As mentioned in the usage, I prefer to run it as an executable from a shell. This is how the bin
hoisting works with yarn on POSIX. Check the files under ./node_modules/.bin
as an example. Of course, it will fail from CMD.exe, but you can run it as node scripts\\sort-dependencies package.json
. Or if you have a shell on Windows or using GitBash, ./scripts/sort-dependencies ./arduino-ide-extension/package.json
works. Why do you think we should have the .js
extension?
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.
Why do you think we should have the .js extension?
I suggested it to be consistent with other scripts we already have in the scripts
folder, but I see your point. Maybe it would make sense to change the others into shell executable scripts (I'm not suggesting to do it in this PR).
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
UPDATE:
Will be solved in: #1720
Screenshot 2022年11月28日 at 14 58 11
I found that adding this CSS rule would fix it:
#arduino-open-sketch-control--toolbar {
text-align: center;
}
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.
Code is fine to me ✅
Thank you, Akos!
This contextual menu icon in the sketch control toolbar seems a little off to me:
Follow-up: #1720
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.
Everything is working perfectly for me now on Windows and Linux.
I did a survey of the existing issues labeled "topic: theia"
PR resolves:
Partially resolves:
- #1077
- Everything reported in the issue is resolved except the following:
breadcrumbs.enabled
has no effectwindow.titleBarStyle
has no effectworkbench.editor.highlightModifiedTabs
has no effect
- Everything reported in the issue is resolved except the following:
Not resolved (but not expected to):
Thanks Akos!
breadcrumbs.enabled
has no effect
The breadcrumbs feature has been forcefully removed from IDE2.
window.titleBarStyle
has no effect
This has also been removed long ago.
workbench.editor.highlightModifiedTabs
has no effect
I do not know what's this.
I can create a follow-up with these items.
Hi @kittaakos
breadcrumbs.enabled has no effect
The breadcrumbs feature has been forcefully removed from IDE2.
window.titleBarStyle has no effect
This has also been removed long ago.
If the settings are not expected to work, I think it is reasonable to explain that in #1077 and consider documenting the fact in the issue report to be sufficient. These settings are intended to be targeted exclusively to advanced users so we don't need to be so concerned about the user experience being polished.
I don't know whether any further action to improve on the current situation is possible.
workbench.editor.highlightModifiedTabs has no effect
I do not know what's this.
You can see the feature in effect in VS Code here (I am using the "Light+ (default light)" theme in the screenshot, but I also see the border in all the other themes I checked: "Dark (Visual Studio)", "Light (Visual Studio)", and "Dark High Contrast"):
I can create a follow-up with these items.
Uh oh!
There was an error while loading. Please reload this page.
Motivation
Change description
Other information
Switched to
@theia/*@1.31.1
:p-queue
version to Theia.react@18+
from Theia. Replaced theReactDOM#render
calls withcreateRoot
.react-virtualized
as a dependency. It was removed from Theia.react-select@5.6.0
.(削除) IDE2 switched to the ellipses ((Reverted)...
) icon fromfont-awesome
tocodicon
. (削除ここまで)tabbar-toolbar-customization.mp4
Upload
on the toolbar,Debug
toolbar item,keydown
event and will spare the CPU. Avoid updating the status bar update is crucial for the language server's performance. The change was here. Steps to verify (Advanced!):status-bar-view-model.ts
withCtrl/Cmd+P
. Put a breakpoint to line 133.didChange
event does not fire.Ctrl/Cmd+K
in the editor.monaco
's key chords functionality activates.Screen Shot 2022年11月11日 at 14 14 54
Open Sketch in New Window
. If it works, you have helped verify that IDE2 windows can still pass arguments between each other without tricks in the IDE2 code-base.File
>New Remote Sketch
menu item is correct, and you can see the accelerator next to it, it's working as expected.Reload Window
from the Command Palette,editor.bracketPairColorization.enabled
tofalse
by default.@theia/typehierarchy
UI features from IDE2, (eclipse-theia/theia@16c88a5)webpack.config.js
from Git. They're not required anymore.depcheck
plugin from packager.depcheck
unreliably marked npm packages as unused and filtered them out. It's because Theia uses dynamicrequire
calls, and tools (such asdepcheck
) cannot detect whether a module is needed at runtime.Closes #1655
Closes #1656
Reviewer checklist