Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Issue with cyclic project dependencies
Issue with cyclic project dependencies [message #1763427] Mon, 15 May 2017 15:01 Go to next message
Eclipse UserFriend
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 15:04 Go to previous messageGo to next message
Eclipse UserFriend
Sounds like https://bugs.eclipse.org/bugs/show_bug.cgi?id=431608
Re: Issue with cyclic project dependencies [message #1763469 is a reply to message #1763428] Tue, 16 May 2017 09:14 Go to previous messageGo to next message
Eclipse UserFriend
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 09:55 Go to previous message
Eclipse UserFriend
good question. maybe somewhere in XtextBuilder or ClusteringBuilderState
Previous Topic:URI has an authority component
Next Topic:xtend and java classes for ScopeProvider and error generated code
Goto Forum:
  


Current Time: Wed Jul 02 20:44:12 EDT 2025

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

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

Back to the top