Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317188

Summary: EGit 0.81 not working in Eclipse 3.5.2 PHP Explorer
Product: z_Archived Reporter: ebaer
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: caniszczyk, jacek.pospychala, robin.rosenberg, silviya, zhaozhongwei, zulus
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Stack Trace of one of the Errors that occurs, all seem to be the same
none
Stack Trace of Failed to Update Index Error none

Description ebaer CLA 2010-06-17 10:53:45 EDT
Build Identifier: M20100211-1343

Hi,

I just installed EGit 0.81 on two different versions of eclipse:

Ganymede 3.4.1 on CentOS 5.5

and

Galileo 3.5.2 on Gentoo r5

They both installed with no problems, although the install seemed slightly different.

But, the Galileo on Gentoo r5 will not work with the PHP Explorer perspective. You can create a Git perspective and drill down into the repository with no problems. You can even do the Team>Share>Using existing Repo and all seems well, except that nothing seems to work in the PHP Explorer perspective.

I tried running an update on Galileo for all the other installed software. Removed and re-installed the EGit several times, with -clean on eclipse between attempts, but always the same thing...


Reproducible: Always

Steps to Reproduce:
1. Install Eclipse SDK 3.5.2 with PDT
2. Install EGit 0.81
3. Try to use EGit from the PHP Explorer

I have NOT done a complete Eclipse Re-Install on Gentoo or CentOS to test if it happens on every installation.
Comment 1 ebaer CLA 2010-06-17 11:03:42 EDT
Created attachment 172130 [details]
Stack Trace of one of the Errors that occurs, all seem to be the same

Several of these are created each time I try to use Team features on a file in the PHP Explorer.

For instance: Using the "Compare With">History...

The History window come up, but is completely empty no matter which file is looked at.

Also, I have seen in the past, something about a Mapped resource is no longer available.  But I couldn't seem to get that to come up again.
Comment 2 Jacek Pospychala CLA 2010-06-17 11:10:19 EDT
I'm not sure whether it's more PDT or Git issue.
Looking at the attached stack trace, it seems EGit fault. :-)
Chris - anything we should fix to make EGit work in PHP Explorer?
Comment 3 ebaer CLA 2010-06-17 11:18:07 EDT
Created attachment 172134 [details]
Stack Trace of Failed to Update Index Error

This is the Stack Trace for the

Failed to update Index error.
Comment 4 ebaer CLA 2010-06-17 11:22:56 EDT
The following is a snipit of a message from Robin Rosenburg, a Developer at EGit:

  A bug... If this is using the version of Eclipse downloaded from
  Eclipse.org, please submit a bug report at bugs.eclipse.org

  This "smells" like problems I've had in other "explorers", like the Java
  Project Explorer in the JEE perspecive, which behaves differently from the
  Java Package Explorer.

Here is the link to the Forum where I originally posted the problem:

http://www.eclipse.org/forums/index.php?t=rview&goto=540660#msg_540660If
Comment 5 ebaer CLA 2010-06-30 10:11:27 EDT
There has been no comments or activity on this for 2 weeks.

Is anyone looking at it?
Comment 6 Zhongwei Zhao CLA 2010-06-30 11:51:18 EDT
I use helios,php2.2 and egit0.84,it seems php explorer works fine with egit.
Comment 7 ebaer CLA 2010-06-30 18:31:43 EDT
OK, so I tried installing a complete new version of eclipse Helios and egit 0.84, and guess what, NO JOY!

I tried several ways, with and without all my other plug-ins, removing all the .eclipse and .metadata directories.

You name it, I tried it, but it still didn't work!

Finally, I went back to my other machine with Ganymede and looked at what it was doing with the Team>Share stuff and noticed that the .git repository was just that; .git under the project directory.  But it was completely different on the Galileo install.

Then it hit me, the project on the Ganymede install was in a real directory, the project on the Galileo install was a symbolic link, and the egit was using the correct project path, but it was using the real path to the .git repository.  Unfortunately missing the / at the top of the path, so it could not find it.

To make sure I was right, I copied the contents of the project to a real directory and added it to eclipse, then tried to Team>Share, and low-and-behold, it works!

So, probably there is a bug here somewhere, but it seems more likely at this point it is with egit.

Sorry for the "Wild Goose Chase"...
Comment 8 Zhongwei Zhao CLA 2010-06-30 22:20:40 EDT
Hi

I am sorry,I test it on winxp,I will test it on ubuntu later:)
Comment 9 Dawid Pakula CLA 2014-10-01 20:14:38 EDT
I'm marking as fixed.

EGit works correctly with PDT 3.3.1
Comment 10 Sylvia Tancheva CLA 2015-05-21 08:21:41 EDT
Closing