Skip to main content



      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 04:51 Go to next message
Eclipse UserFriend
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 04:52] by 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 05:24 Go to previous messageGo to next message
Eclipse UserFriend
https://www.eclipse.org/forums/index.php/t/623973/
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 05:25 Go to previous messageGo to next message
Eclipse UserFriend
Maybe that one needs to be fixed in the maven plugin too
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 05:28 Go to previous messageGo to next message
Eclipse UserFriend
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

[Updated on: Wed, 13 July 2022 06:25] by 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 14:36 Go to previous messageGo to next message
Eclipse UserFriend
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 09:55 Go to previous messageGo to next message
Eclipse UserFriend
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 10:28 Go to previous messageGo to next message
Eclipse UserFriend
i propose to remote debug.
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 11:37 Go to previous messageGo to next message
Eclipse UserFriend
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 16:40 Go to previous messageGo to next message
Eclipse UserFriend
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

[Updated on: Fri, 29 July 2022 00:52] by 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 03:57 Go to previous message
Eclipse UserFriend
i looked at the code. the maven plugin uses StandaloneBuilder which does not seem to create a project config at all.
Previous Topic:Supporting method overloading
Next Topic:Xtext 2.28.0.M2 is out
Goto Forum:
  


Current Time: Sat Apr 26 11:45:11 EDT 2025

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

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

Back to the top