Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Tracing resource location
Tracing resource location [message #1858538] Thu, 06 April 2023 13:36 Go to next message
Frank Benoit is currently offline Frank BenoitFriend
Messages: 179
Registered: July 2009
Senior Member
Hi

I want to create tracing information.

To-Model-Path: Model to trace file, SourceRelativeURI:
The original object are inside a different project than the generated output.
Both in the workspace, but different projects.
Can the URI then be something like "../OtherPrj/path/My.dsl"?
org.eclipse.xtext.ui.generator.trace.StorageAwareTrace.findStorage(SourceRelativeURI, IProject) returns null

To-Generator-Output-Path: The generated output files and the trace files have a hard-coded relation?
E.g. "out.c", the mapping file needs to be located in the same directory with the name ".out.c.trace".
Is it possible to have it in a different relative location?
E.g. a ".trace" sub directory

regards
Frank
Re: Tracing resource location [message #1858540 is a reply to message #1858538] Thu, 06 April 2023 14:08 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14687
Registered: July 2009
Senior Member
see org.eclipse.xtext.builder.EclipseResourceFileSystemAccess2.getTraceFile(IFile)
org.eclipse.xtext.ui.generator.trace.TraceForStorageProvider.getTraceFile(IFile)

i assume for everything beyond these starting points you have to debug / customize yourself.
other projects is not a thought usecase


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Thu, 06 April 2023 14:53]

Report message to a moderator

Previous Topic:Maven build does not find xcore lib?
Next Topic:Xtext 2.31.0.M0 is out
Goto Forum:
  


Current Time: Wed Jun 19 23:32:19 GMT 2024

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

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

Back to the top