Skip to content
New issue

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

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

Already on GitHub? # to your account

An internal error occurred during: "Loading section 'All Repositories'" #345

Closed
atmcq opened this issue May 20, 2022 · 3 comments
Closed
Assignees
Labels

Comments

@atmcq
Copy link

atmcq commented May 20, 2022

Seeing the error below on trying to access Azure Devops repositories, following new install of TEE:

An internal error occurred during: "Loading section 'All Repositories'"
java.lang.NoSuchMethodError: 'org.eclipse.egit.core.RepositoryUtil org.eclipse.egit.core.Activator.getRepositoryUtil()'
	at com.microsoft.tfs.client.eclipse.ui.egit.teamexplorer.TeamExplorerGitRepositoriesSection.loadRegisteredRepositories(TeamExplorerGitRepositoriesSection.java:215)
	at com.microsoft.tfs.client.eclipse.ui.egit.teamexplorer.TeamExplorerGitRepositoriesSection.initialize(TeamExplorerGitRepositoriesSection.java:100)
	at com.microsoft.tfs.client.eclipse.ui.egit.teamexplorer.TeamExplorerGitRepositoriesSection.initialize(TeamExplorerGitRepositoriesSection.java:105)
	at com.microsoft.tfs.client.common.ui.controls.teamexplorer.TeamExplorerBaseControl$SectionLoadJob.run(TeamExplorerBaseControl.java:481)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Eclipse 4.23
TEE 14.137.0

@howlger
Copy link

howlger commented Apr 19, 2023

This is caused by this.

As workaround downgrade JGit/EGit to 5.11 or use Eclipse 2021-03.

See also my Stack Overflow answer here.

@eric-milles
Copy link
Collaborator

I may be able to fix this. RepositoryUtil is still there but is now an enum. There are 4 spots in the code that make reference to Activator#getRepositoryUtil. @howlger Can you provide steps to get to the error? Do I need a git-based ADO server?

@eric-milles eric-milles self-assigned this Oct 6, 2023
@eric-milles eric-milles added the bug label Oct 6, 2023
@howlger
Copy link

howlger commented Oct 9, 2023

@howlger Can you provide steps to get to the error? Do I need a git-based ADO server?

Sorry, but I'm not an user of the TFS plugin. I saw this Stack Overflow issue with the stack trace and I knew about the change in EGit that caused it, so I looked into the code and shared my findings. Maybe one of the issue reporters, @atmcq and @kris-mart, or the one who asked on Stack Overflow can tell how to reproduce it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants