Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367750 - import project set fails if EGit was not loaded/initialized
Summary: import project set fails if EGit was not loaded/initialized
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 1.2   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-03 07:23 EST by Dani Megert CLA
Modified: 2012-08-27 04:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2012-01-03 07:23:42 EST
Import project set fails if EGit was not loaded/initialized before

Test Case:
1. install 3.8 M4 plus EGit 1.2
2. start with new workspace
3. import team project set from attachment 208048 [details]
==> fails

Note that the logged exception is misleading (see bug 367749). The real problem is 
that org.eclipse.egit.core.GitProjectSetCapability.addToWorkspace(String[], ProjectSetSerializationContext, IProgressMonitor) throws an exception:
org.eclipse.jgit.errors.TransportException: ssh://dmegert@git.eclipse.org/gitroot/platform/eclipse.platform.git: UnknownHostKey: git.eclipse.org. RSA key fingerprint is ....


If one triggers loading of EGit, e.g. by opening the 'Git Repositories' view, then the import works.
Comment 1 Dani Megert CLA 2012-01-03 08:07:15 EST
Reducing severity as there's a workaround.
Comment 2 Robin Rosenberg CLA 2012-08-23 15:59:46 EDT
If org.eclipse.egit.core triggers an exception it must be loaded, right?
Comment 3 Dani Megert CLA 2012-08-27 04:24:38 EDT
(In reply to comment #2)
> If org.eclipse.egit.core triggers an exception it must be loaded, right?

Probably Core, but not UI.
Comment 4 Dani Megert CLA 2012-08-27 04:25:36 EDT
(In reply to comment #3)
> (In reply to comment #2)
> > If org.eclipse.egit.core triggers an exception it must be loaded, right?
> 
> Probably Core, but not UI.

I don't know whether the UI part would be loaded if there's no exception in Core.