Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Rendering problem (?) in runtime Eclipse application
Rendering problem (?) in runtime Eclipse application [message #1863446] Fri, 02 February 2024 18:54 Go to next message
Zhekai Jiang is currently offline Zhekai JiangFriend
Messages: 3
Registered: February 2024
Location: Montréal, Canada
Junior Member
I am following the 15 minutes tutorial of Xtext. After I generate Xtext artifacts from the grammar and hit Run As → Eclipse Application, there always seems to be some problem rendering this window, and I cannot see any component there:

index.php/fa/43958/0/

I have been running some other EMF projects as Eclipse application but they never had this trouble before.

For your information, I have Eclipse Modeling Tools 2023-12 (4.30.0), with Xtext and Xtend 2.33.0, on an intel chip Mac. I have already tried switching between dark and light mode, restarting Eclipse, restarting my computer, and installing a new Eclipse for Java and DSL Developers instead, but none of them worked out.

Any help or idea is appreciated!
Re: Rendering problem (?) in runtime Eclipse application [message #1863474 is a reply to message #1863446] Sun, 04 February 2024 12:49 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14735
Registered: July 2009
Senior Member
sounds like https://github.com/eclipse-platform/eclipse.platform.swt/issues/1012

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: Rendering problem (?) in runtime Eclipse application [message #1863478 is a reply to message #1863474] Mon, 05 February 2024 00:56 Go to previous messageGo to next message
Zhekai Jiang is currently offline Zhekai JiangFriend
Messages: 3
Registered: February 2024
Location: Montréal, Canada
Junior Member
Thank you Christian for your reply! Indeed my run configurations for Eclipse application had this problematic JDK 17.0.10 as well. It turned out to work after I changed it to 21.0.1.

index.php/fa/43963/0/

Interestingly when creating an Xtext project it defaults to JDK 17, but for other EMF projects I had before, the run configurations were automatically set to JDK 21 (which is the default in my system) so they didn't have this trouble before.
  • Attachment: pic2.png
    (Size: 857.00KB, Downloaded 146 times)
Re: Rendering problem (?) in runtime Eclipse application [message #1863486 is a reply to message #1863478] Mon, 05 February 2024 07:14 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14735
Registered: July 2009
Senior Member
if you have xtend files in project the compilation against target 21 wont work. this is why default is java 17

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: Rendering problem (?) in runtime Eclipse application [message #1863487 is a reply to message #1863486] Mon, 05 February 2024 07:33 Go to previous message
Zhekai Jiang is currently offline Zhekai JiangFriend
Messages: 3
Registered: February 2024
Location: Montréal, Canada
Junior Member
I see. So I will still stick to JDK 17. It also seems to work if I use other sub-versions other than 17.0.10.

Thanks again!
Previous Topic:Eclipse platform URIs in command line
Next Topic:junit: NamesAreUniqueValidator does not work as eclipse junit but does work in Maven build?
Goto Forum:
  


Current Time: Thu Dec 05 13:39:04 GMT 2024

Powered by FUDForum. Page generated in 0.03817 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top