Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext-Web / Referencing Elements(Referencing Elements of one DSL from another DSL)
Xtext-Web / Referencing Elements [message #1804507] Wed, 27 March 2019 15:13 Go to next message
klaus stasiak is currently offline klaus stasiakFriend
Messages: 1
Registered: March 2019
Junior Member
In August 2012, a very well-documented example was published on the topic "Referencing Elements of one DSL from another DSL". Here the link: dietrich-it.de/xtext/2012/08/07/xtext-referencing-elements-of-one-dsl-from-another-dsl.html

Exactly this example is correct for my needs and it works as described. Unfortunately not in a generated WEB context under Xtext Web (https://www.eclipse.org/Xtext/documentation/330_web_support.html)

The error message when entering the DSL in the Web Editor is: "Could not resolve reference to ..."
What needs to be configured / programmed so that the references are also resolved in a web container?
Re: Xtext-Web / Referencing Elements [message #1804564 is a reply to message #1804507] Thu, 28 March 2019 18:42 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
first of all i am sure the setup of the generator does not properly generate.
thus you have to setup the content of your web project manually.
did you have a look at the web example in the web codebase here:

https://github.com/eclipse/xtext-web/tree/master/org.eclipse.xtext.web.example.jetty


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext-Web / Referencing Elements [message #1804566 is a reply to message #1804564] Thu, 28 March 2019 18:53 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
you may have a look at https://www.eclipse.org/forums/index.php/m/1798288/?srch=web+mydsla#msg_1798288
too


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Creating a Resource from files in InMemoryFileSystemAccess
Next Topic:[Language]ProposalProvider for generic IDE (VS-Code)
Goto Forum:
  


Current Time: Tue Apr 23 17:59:47 GMT 2024

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

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

Back to the top