Skip to content

Usus model not updated #57

@maxbechtold

Description

@maxbechtold

It's my impression (and has been for many months now) that Usus is no longer synchronized with the Java workspace model. That is, I noticed the graph views not updating when refactoring, e.g. moving classes. This even happens when cueing the refactoring from the graph views themselves (through the context menu actions on nodes).

Trying to get Usus to refresh its model through the Usus Cockpit refresh action doesn't help. Unticking Compute Automatically in the overflow menu doesn't, either. It might be these are only to refresh the metric calculations, not the Usus model itself.
Ultimately, only unselecting a project in the Usus Projects view and reselecting it helps.

My feeling is that it's a problem with running Usus in more recent Eclipse versions which probably introduced changes in the workspace/Java AST/build management compared to Eclipse 3.x which was the basis for the development of Usus.

I'm currently trying to get TravisCI back in action, but I notice the Maven/Tycho build fails on tests that also seem to be related to an outdated Usus model. I was able to fix two random tests by using the ForcedRecompute operation, but this is clearly just a workaround. Checkout the restore-build branch for the current progress.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions