Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » _trace file Debug location data path different on eclipse incremental build and maven
_trace file Debug location data path different on eclipse incremental build and maven [message #1853667] Wed, 13 July 2022 08:51 Go to next message
Thomas Landuyt is currently offline Thomas LanduytFriend
Messages: 9
Registered: May 2021
Junior Member
Hi,

When we generate our xtext project with maven and we have a look at the ._trace file we see that the path is a full path link to the workspace. see picture debuglocationMaven.PNG
index.php/fa/42297/0/

Although afterwards we generate with the incremental build of eclipse we get the correct path for eclipse with a shorten path.
(see debuglocationEclipse.png)

index.php/fa/42298/0/
Where are these paths specified, and how come that these can be different?

thanks in advance

[Updated on: Wed, 13 July 2022 08:52]

Report message to a moderator

Re: _trace file Debug location data path different on eclipse incremental build and maven [message #1853669 is a reply to message #1853667] Wed, 13 July 2022 09:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14428
Registered: July 2009
Senior Member
https://www.eclipse.org/forums/index.php/t/623973/

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: _trace file Debug location data path different on eclipse incremental build and maven [message #1853670 is a reply to message #1853669] Wed, 13 July 2022 09:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14428
Registered: July 2009
Senior Member
Maybe that one needs to be fixed in the maven plugin too

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: _trace file Debug location data path different on eclipse incremental build and maven [message #1853672 is a reply to message #1853670] Wed, 13 July 2022 09:28 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14428
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=503309

i propose to debug into
org.eclipse.xtext.maven.plugin/src/main/java/org/eclipse/xtext/maven/trace/AbstractInstallDebugInfoMojo.java
and see what happens there

a pull request would be welcome


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Wed, 13 July 2022 10:25]

Report message to a moderator

Re: _trace file Debug location data path different on eclipse incremental build and maven [message #1853694 is a reply to message #1853672] Wed, 13 July 2022 18:36 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1805
Registered: July 2009
Location: Firenze, Italy
Senior Member
How is your plugin configured in the pom?

Re: _trace file Debug location data path different on eclipse incremental build and maven [message #1854028 is a reply to message #1853694] Thu, 28 July 2022 13:55 Go to previous messageGo to next message
Thomas Landuyt is currently offline Thomas LanduytFriend
Messages: 9
Registered: May 2021
Junior Member
This is our xtexxt-maven-plugin
I collapsed all deps we used and a part of the languages

index.php/fa/42350/0/
Re: _trace file Debug location data path different on eclipse incremental build and maven [message #1854031 is a reply to message #1854028] Thu, 28 July 2022 14:28 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14428
Registered: July 2009
Senior Member
i propose to remote debug.

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: _trace file Debug location data path different on eclipse incremental build and maven [message #1854034 is a reply to message #1854031] Thu, 28 July 2022 15:37 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1805
Registered: July 2009
Location: Firenze, Italy
Senior Member
You're using absolute paths in your plugin configuration (project.basedir and project.build.directory are transformed into absolute path during the Maven build).
You should use a simple relative path (e.g., "src/main", no backslash at the beginning; similar for the output directory).


Re: _trace file Debug location data path different on eclipse incremental build and maven [message #1854038 is a reply to message #1854034] Thu, 28 July 2022 20:40 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14428
Registered: July 2009
Senior Member
Better places to start debugging
https://github.com/eclipse/xtext-xtend/blob/c4c606b4e822a4a78fb859f9552dd4a70c6c5029/org.eclipse.xtend.core/src/org/eclipse/xtend/core/compiler/batch/XtendBatchCompiler.java#L418
Vs
What ever creates the project config in maven (i assume there is no specific one)

Resulting in
https://github.com/eclipse/xtext-core/blob/0a6606ee5091c48a716f74932bb6dd693cbee227/org.eclipse.xtext/src/org/eclipse/xtext/generator/trace/DefaultTraceURIConverter.java#L33


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Fri, 29 July 2022 04:52]

Report message to a moderator

Re: _trace file Debug location data path different on eclipse incremental build and maven [message #1854044 is a reply to message #1854038] Fri, 29 July 2022 07:57 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14428
Registered: July 2009
Senior Member
i looked at the code. the maven plugin uses StandaloneBuilder which does not seem to create a project config at all.


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Supporting method overloading
Next Topic:Xtext 2.28.0.M2 is out
Goto Forum:
  


Current Time: Tue Jan 31 08:34:09 GMT 2023

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

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

Back to the top