Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

How to build gradle project with xtend plugin applied

I am trying to build the gradle project by applying the xtend plugin. But build is getting failed with some errors. Can someone please suggest me with how to apply xtend plugin and build the entire ...
Vinod Kumar's user avatar
0 votes
0 answers
18 views

Not able to generate the java code of xtend files using gradle xtend plugin

I am trying to build the project with gradle and it has xtend code. I have applied the xtend and xtext builder plugins, Below is the snippet of build.gradle which i tried. But not able to generate the ...
Vinod Kumar's user avatar
0 votes
1 answer
28 views

How to create generic type references in Xtext Inferrer? Like "private <T> T get(Class<T> clazz)"

I had done it several times before, and every time I had to look it up in my example. But I can't find my example in my GitHub anymore. How can I define "generic type references" like ...
Florian Pirchner's user avatar
0 votes
0 answers
109 views

QuickFix in Custom Language(Xtext) using Language Server Protocol

I am very new to Language Server Protocol. I have all the xtext related files ie. content assist, validation, quick fixes etc in eclipse and our client is intellij. I want to implement quickfixes ...
A.Goel's user avatar
  • 101
1 vote
1 answer
47 views

How to use dynamic file names in Eclipse editor extension point="org.eclipse.ui.editors"?

Currently, in my Xtext project, I have an INI file in my xtext.ui plugin. My editor extension looks like this: <extension point="org.eclipse.ui.editors"> <editor class="com....
mahesh bhagirath's user avatar
0 votes
0 answers
59 views

Xtext : not reading new line in case of MacOS

Below is my Xtext file. I have an input {TestData1}/n{TestData2}/n{TestData3}. In this case after parsing my data gets changed to {TestData1}{TestData2}{TestData3} (the /n gets removed as part of the ...
Ravi Bodla's user avatar
0 votes
0 answers
47 views

Ambiguous rules and predicate behavior in Xtext

I am stuck with the following ambiguous rules in Xtext: UnaryExpression returns ExpressionAtom: .................. | EXISTS? '(' SelectStatement ')' | '(' Expressions ')' //...
Sohaib's user avatar
  • 1
0 votes
1 answer
51 views

Xtext define a syntax with subpakages in the ecore file

I would like to generate a syntax using Xtext from an Ecore file. I successfully created an Xtext project from an existing Ecore but when I create a sub package in my Ecore, and regenerate the .xtext ...
Abdelghani's user avatar
0 votes
0 answers
49 views

Per-rule hidden terminals are not captured in the internal.tokens file generated by Xtext

I have the following minimalistic grammar: grammar org.example.minimalDSL hidden (WS, SL_COMMENT, ML_COMMENT) ... Class: (Documentation=documentation)? 'class' name=ValidId '{' (attributes+=...
Amine Ben's user avatar
0 votes
2 answers
140 views

Porting Xtext Eclipse project to Maven

I am trying to port an existing Xtext 2.21.0 project from Eclipse 2020-03 to Maven. I have generated an example Xtext Maven project using Eclipse, and then populated it with my DSL. The issue is that ...
Cosmin Polifronie's user avatar
1 vote
0 answers
123 views

xtext and ace web editor code generation failed communication

I'm using the Invoking Services section from xtext web editor support with ace: var editor = xtext.createEditor(); $("#save-button").click(function() { // editor.xtextServices....
OrenIshShalom's user avatar
0 votes
0 answers
36 views

Rename-Refactoring XText Resource

I am trying to perform rename-refactoring on XText resource. And have added fragment = refactoring.RefactorElementNameFragment2 {} to the dsl .mwe2. When I am trying to rename existing EAttribute the ...
We_wake's user avatar
1 vote
1 answer
201 views

Custom messages in xtext based language server

I am trying to extend my language server to handle custom commands from VS Code client. To debug, I am using SocketLanguageServer. I send a custom command from the client: client.sendRequest("...
harsh's user avatar
  • 969
0 votes
0 answers
84 views

Add commons-math3 dependency to xtext maven project

I have xtext language server project configured to build with maven. With the default dependencies, the project build is working fine with mvn clean install -U -Dmaven.test.skip=true But now I need ...
harsh's user avatar
  • 969
0 votes
1 answer
48 views

Attach java object to Xtext Resource

We are using Xtext LSP for our language contribution in Vscode but facing a challenge . We want to implement support for basic project where we attach a project configuration with all the xtext ...
We_wake's user avatar
0 votes
0 answers
25 views

Eclipse not showing 'Domainmodel Content-Type' in Preferences

I am following a tutorial for Xtext/EMF were I need to select in Preferences> General> Content Types> Text > Domainmodel Content-Type in the Eclipse IDE. I created a Xtext project, but it ...
Griselle Z's user avatar
0 votes
1 answer
27 views

Extracting parts of a rule for reusability

I'm working on a grammar that is translated to an EMF model. The actual model consists of types with many attributes which make the grammar hard to read. Also some rules contain identical parts which ...
kapex's user avatar
  • 29.7k
0 votes
0 answers
54 views

Xtext : indicate when optional attribute not entered

I'm using the following grammar to read input from CXML file: the input from CXML is as follow: <WINDOW id="0" name="BUTTON" width="2560" height="1024" x=&...
user2320492's user avatar
0 votes
1 answer
113 views

GsonBuilder will not be found

enter image description hereHow to resolve this Error? java.lang.NoClassDefFoundError: com/google/gson/GsonBuilder I'm trying to build a DSL in Xtext in Eclipse IDE and I install the Gson Jar to class-...
Omran's user avatar
  • 3
0 votes
1 answer
33 views

The same instance of a sub-formula in the Xtext grammar

I have an Xtext grammar for a CNL sentence and in some its variants I would require the user to write the same parts in the sentence: Formula: 'It' 'should' 'be' e1=Expr 'and' 'again' e2=Expr; where ...
SeregASM's user avatar
0 votes
1 answer
105 views

"org.eclipse.emf.ecore.xmi.PackageNotFoundException" when using sysml2 xtext plugins in stand-alone mode

For a company POC software I'm trying to use the sysml2 xtext plugin & ANTLR grammar in stand-alone mode, so as to parse & tokenize sysml2 files and eventually navigate tokens and do some ...
gramm's user avatar
  • 18.8k
-2 votes
1 answer
52 views

injecting deleted files while codegen

using this code to fetch files for codegen from filesystem public void executeCommand(Resource resource, Document document, ILanguageServerAccess access, ExecuteCommandParams params) { ...
Siddharth's user avatar
0 votes
1 answer
59 views

How to invoke formatter programmatically in Xtext and get output string

Instead of calling save on resource I would like to convert model to string programmatically. I have already implemented formatter and tests for it so I would like to reuse it. Is it possible, and if ...
R4de's user avatar
  • 71
0 votes
0 answers
77 views

unable to implement Formatter2 in xtext lsp

configured formatter in mwe2 formatter = { generateStub = true generateXtendStub = true } binding it in AbstractTableRuleDslRuntimeModule also public Class&...
Siddharth's user avatar
0 votes
0 answers
130 views

xtext to xtend and xtend to xtext transformation

Good day, I am working on an xtext project. I have written xtend to transform "runtime DSL instance" into equivalent code (text file). Now I want that when I change the generated code (text ...
Misbah M. Awan's user avatar
0 votes
0 answers
56 views

Progress Bar Implementation for CodeGen in Theia

on clicking generate java code button in theia editor it’s calling registry command in command contribution in theia. registry command is hitting IExecutableCommandService in backend LSP to generate ...
Siddharth's user avatar
0 votes
1 answer
54 views

xtext web Load Testing

Good day... I have developed a DSL in xtext web using eclipse. It has a login page and multiple users can login from anywhere... Now my requirement is to test the load of this web DSL. I need to test:...
Misbah M. Awan's user avatar
0 votes
0 answers
79 views

XtextServices Servlet returns CORS-Error with HTTP-Code 404 but not other REST-Controllers

I currently try to set up a Xtext web editor with "Context Mapper" as DSL. The backend is a basic Spring Boot backend with the Context Mapper DSL and Context Mapper LSP (Language Server). ...
Yano アカギツネ's user avatar
0 votes
0 answers
20 views

How to avoid formatting in XTEXT file if there are compilation errors?

I have create XTEXT project. I have written a formatter to format a dsl when I press ctrl + f. But I want to avoid the formatting if there is an error in the dsl. In what way I can to prevent ...
A.Goel's user avatar
  • 101
0 votes
1 answer
59 views

Eclipse Xtext : How to force Xtext to look for a reference with a specific Name

I defined a gramar like this grammar org.xtext.example.mydsl1.MyDsl with org.eclipse.xtext.common.Terminals generate myDsl "http://www.xtext.org/example/mydsl1/MyDsl" Model: persons+=(Person |...
Abdelghani's user avatar
1 vote
1 answer
206 views

Unrecognized character � when convert project to Maven

When I convert my xtext project to maven in eclipse, an recoginzed character (diomand question mark �) appread. Before converting the project it was like this : in the file MyLangGenerator.xtend <?...
user19640240's user avatar
0 votes
0 answers
118 views

Eclipse Xtext and an independent LSP server do not (appear to) work together - should they?

I have an independently written LSP-compliant language server for a custom language and an Xtext framework for that language, as Eclipse plugins. The two work fine independently; the LSP is connected ...
David Cok's user avatar
0 votes
1 answer
60 views

loader constraint violation error when adding maven dependency in target defination

I am trying to add third party libraries in target definition of an xtext project. Could you please provide some hints about the probable cause for this issue.
vks2106's user avatar
  • 316
1 vote
0 answers
58 views

Re-order elements during formatting or serialization

I have a Xtext (2.27.0) grammar, which allows the user to define the availability of features for certain software revisions. A file loks as follows: since Windows95 { FeatureA true FeatureC ...
mspiller's user avatar
  • 3,785
0 votes
1 answer
172 views

XTEXT web editor - custom highlighting in Eclipse Ace

enter image description here I need guidance about how to use custom highlighting in xtext web editor. I am using eclipse Ace for this. Actually, I need to highlight or change color of the text where ...
Misbah M. Awan's user avatar
0 votes
1 answer
296 views

LSP4E connected to Xtext Language Server does not show errors in the editor

Currently I'm testing a Xtext grammar by using the Language Server configuration specified in the Xtext documentation (see here). As I understand from that documentation, the text editor should be ...
Alejandro González's user avatar
0 votes
0 answers
72 views

XText and ProposalProvider for language element with multiple references

I have little bit of a problem with ScopeProvider. I have a language definition like the following. Element: LanguageElement1 | LanguageElement2 | LanguageElement3 | LanguageElement4 | ...
posthumecaver's user avatar
0 votes
0 answers
90 views

Scope Provider for Nested Objects

I am trying to program a scope provider for an Entity mapping Model where Entities attributes can reference other entities and mapping part of the DSL can use the attributes of the nested entities. I ...
posthumecaver's user avatar
0 votes
1 answer
89 views

XText Grammar rule for Abstract EMF Class

I have an EMF metamodel containing Abstract Class A and Concrete Classes B & C implement A. In XText I can have a rule such as A: B | C; and refer to A in other rules. Is there a way not to have ...
Bruno CL's user avatar
  • 316
0 votes
1 answer
38 views

Xtend - saved files contain repeated data

I don't know why when I generate files fsa.generateFile(fileName, finalString) it creates the files fine, but when I clean the project, it doubles the output. Even if I delete the file, it continues ...
Griselle Z's user avatar
0 votes
0 answers
80 views

Xtext - eCore model, serializer can't find the model to import

I have created a eCore model, and want to use Xtext with it. The model is called TransformationQueryLanguageModel. So I create a Xtext project from my existing model. I have configured the model as a ...
someStudentCS's user avatar
0 votes
0 answers
137 views

how to use Matlab in eclipse IDE?

i am working on a project with eclipse IDE . I want to use Matlab on eclipse IDE (to import a matlab file and use it on Eclipse). All Solution that i found on internet are for Eclipse SDK but i need ...
Atef Chatty's user avatar
0 votes
1 answer
92 views

how to hide something that i don't want to look in Xtext

I am using Sirius and Xtext to do a graphic-text two-way synchronization work, probably after I use Sirius to draw a graphic to generate Xtext text, and modifying the text will modify the graphic ...
AYuan's user avatar
  • 13
0 votes
1 answer
150 views

How can I parse the code that is conforming to a grammar expressed using ANTLR4 and then generate XML tags

I have specified a grammar using ANTLR4 using VScode and the extension by Mike Lischke. I am wondering if there is a way to parse the code of the program that is conforming to the grammar and generate ...
Soulimane Kamni's user avatar
0 votes
1 answer
44 views

How to set a text with whitespaces on xtext

I'm trying to set somethin like: Question: 'My question: How old are you' answer=Answer ; Answer: value=ID; But its not possible to se a quuoted text with whitespaces, there is any way to do it?
af_fgh's user avatar
  • 35
0 votes
0 answers
174 views

How to add a Dependency via Maven for an Eclipse Plug-In Project

I'm working on a Xtext/Xtend based plugin for Eclipse. My project structure contains of various Plug-In projects. The project was created as a maven project and converted to an Xtend project. ...
Andreas bleYel's user avatar
0 votes
0 answers
78 views

How can I run Java 8 code on eclipse 4.2?

For a project I need to get Java 8 to work on eclipse 4.2 because I want to work with an eclipse plugin that requires XText 2.3.1 and modify code that requires java 8 functionality. I have tried later ...
Christian's user avatar
1 vote
0 answers
353 views

Go to definition programmatically with language server protocol

I have created my own Xtext based DSL and vscode based editor with language server protocol. I create multiple models in separate files: # filename dummy1.xyz model { name dummy1 elements { ...
harsh's user avatar
  • 969
0 votes
0 answers
65 views

How to convert Xtend code to Xtend templates

I have a code written in Xtend, where I am not using templates but I am just printing things out. However, I learned that one the most powerful things about Xtend is that it is template based. ...
blerje online's user avatar
1 vote
0 answers
194 views

LSP4J : Language Server method call never ends

I have created a Java-based LSP client, but none of the method calls are completed & it waits indefinitely. Socket socket = new Socket("localhost", 6008); Launcher<LanguageServer> ...
kuldeep singh's user avatar

1
2 3 4 5
28