Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Issue with cyclic project dependencies
Issue with cyclic project dependencies [message #1763427] Mon, 15 May 2017 19:01 Go to next message
Lutz Wrage is currently offline Lutz WrageFriend
Messages: 168
Registered: July 2009
Senior Member
In our tool we have a number of DSLs that are not Java based. So we use a StateBasedContainerManager with WorkspaceProjectsState for all languages.

In a couple of workspaces we had funny effects when linking:
- Names referencing certain EClasses are resolved properly but marked with a greyed out error marker in the text editor, anyhow.
- Names are initially resolved just fine but we get errors after a clean build.

As it turned out, the workspaces had cyclic project references. Removing the cycles fixed all these issues. We haven't been able to track down exactly how the cyclic references cause the linking service go go astray, but we want to add functionality that detects cycles and marks the projects that reference themselves (directly or indirectly) with an error.

It looks like something should be added to a build that detects cycles, but how do I add functionality like that to an Xtext build? I'd appreciate any hint.

Thanks!
Re: Issue with cyclic project dependencies [message #1763428 is a reply to message #1763427] Mon, 15 May 2017 19:04 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14067
Registered: July 2009
Senior Member
Sounds like https://bugs.eclipse.org/bugs/show_bug.cgi?id=431608

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: Issue with cyclic project dependencies [message #1763469 is a reply to message #1763428] Tue, 16 May 2017 13:14 Go to previous messageGo to next message
Lutz Wrage is currently offline Lutz WrageFriend
Messages: 168
Registered: July 2009
Senior Member
We can do without cyclic dependencies. However, if a workspace ends up with cyclic dependencies I'd like to report this to the user so they know that they must fix the dependencies.
Any hints on where I could add that check such that it is executed during a build?
Re: Issue with cyclic project dependencies [message #1763476 is a reply to message #1763469] Tue, 16 May 2017 13:55 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14067
Registered: July 2009
Senior Member
good question. maybe somewhere in XtextBuilder or ClusteringBuilderState

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:URI has an authority component
Next Topic:xtend and java classes for ScopeProvider and error generated code
Goto Forum:
  


Current Time: Fri Sep 24 19:36:41 GMT 2021

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

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

Back to the top