Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usus model not updated #57

Open
maxbechtold opened this issue Jan 4, 2018 · 1 comment
Open

Usus model not updated #57

maxbechtold opened this issue Jan 4, 2018 · 1 comment

Comments

@maxbechtold
Copy link
Member

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?

@maxbechtold
Copy link
Member Author

One quick observation: It appears that nodes of classes that are moved using the Refactor menu in the Class Graph view are not updated when the Usus Cockpit is minimized/without focus (e.g. when the graph view is maximized). Only bringing it to the front will refresh the graph views.

@usus/owners, do you have suggestions on where to start looking?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant