420 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
47
views
Does the number of resources affect compile time with the Xtend Maven plugin?
I am using the Xtend Maven plugin for a large project, and over time, I’ve noticed a gradual increase in compile time during the build process. One key observation is that the resource count in the ...
0
votes
1
answer
58
views
How to clear cache of create methods in Xtend
I am using create methods (Xtend doc) to perform model transformation of languages in Xtext. I need to clear internal cache of create methods, how can I achieve that?
0
votes
1
answer
47
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 ...
0
votes
0
answers
35
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 ...
0
votes
1
answer
91
views
Xtend the function createResource gives error "converting URI to URI"
I want to generate a Resource variable (which points to a file on the disk) in xtend.
This variable will be used in the foreach and in the function compile.
Code:
override doGenerate(Resource ...
0
votes
1
answer
65
views
Inconsistency between pop and peek in a Stack: looking for an explanation
I have a program which uses a stack of sets of elements. The context here does not really matter. The code contains the following instructions:
val last = current_stack.pop
current_stack.peek.addAll(...
MrO's user avatar
- 1,347
1
vote
0
answers
68
views
Command line compilation Xtend file has Error The method from the type refers missing object
Why is there no problem compiling xtend code using eclipse? Compiling from the command line will result in an error?
java -cp .\lib\* org.eclipse.xtend.core.compiler.batch.Main -d .\bin -...
0
votes
0
answers
58
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 ...
0
votes
1
answer
63
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 ...
0
votes
0
answers
44
views
pugin-developent : Platform.getbundle("") is not accessible from xtend class
i am trying to get my plug-in version in xtent class same way its working fine with java classes but throwing compilation error while using in xtend class
want to automate the tool version.
import ...
1
vote
1
answer
98
views
cannot convert from Iterable<Iterable<Integer>> to int[][]
When I print
(0..1).map[i | (0..1).map[j | j]]
I get [[0, 1], [0, 1]] as output.
But when I want to assign it to a 2d int array
val int[][] mat = (1..2).map[i | (1..2).map[j | i * j]]
I get the error ...
0
votes
0
answers
150
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 ...
0
votes
1
answer
215
views
conversion .xtend to .java
I wanted to use the .xtend files which are implemented in other project.
For this purpose I need to convert that business logic from .xtend to .java source code.
Is there any way to convert .xtend ...
0
votes
1
answer
54
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 ...
3
votes
1
answer
93
views
How do I write static blocks in Xtend?
Just like in Java:
static {
}
What should I do?