This morning, eclipse refused to start again on my Mac laptop. The following lines were in the .metadata/.log file:
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2007-10-23 14:50:10.999
!MESSAGE Conflict for 'com.perforce.team.ui.actions.unlock':
HandlerActivation(commandId=com.perforce.team.ui.actions.unlock,
handler=ActionDelegateHandlerProxy(null,com.perforce.team.ui.actions.UnlockAction),
expression=WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@b0f929),sourcePriority=16384)
HandlerActivation(commandId=com.perforce.team.ui.actions.unlock,
handler=ActionDelegateHandlerProxy(null,com.perforce.team.ui.actions.UnlockAction),
expression=WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@b0f929),sourcePriority=16384)
Deleting the .metadata/.lock file fixed the problem. I’m not sure what caused this problem, but deleting the .lock file did fix it.
Advertisement
November 2, 2007 at 6:16 pm |
The Perforce plugin has some issues with Eclipse 3.3.x… I filed an issue report with Perforce and they responded that it was a known issue that they are working on. There is no bug ticket or anything that is publicly viewable related to the issue. I have posted a bit about it here: http://www.transientmiscellanea.ws/node/33
Sounds like your issue is a bit different… with mine you cannot even start the workspace if you delete the lock file.
November 2, 2007 at 6:59 pm |
Oddly enough, this morning eclipse got stuck and after I Forced Quit it, it would refuse to start – same Perforce plug-in issue. Deleting the .lock file didn’t work this time (as you also have experienced). I had to remove the entire .metadata folder (and to do so, I had to become root, since a number of folders under .plugins/org.eclipse.core.resources/.history could not be deleted otherwise. The annoying side of removing the .metadata folder is that you have to start to re-import all of your projects again (and reset the Tomcat and Perforce preferences). Dang!
Good thing that you’ve reported this to Perforce.
NOTE: before you go as far as to delete .metadata folder, please read this useful workaround:
http://www.transientmiscellanea.ws/node/33#comment-1
I wish I had read this before I deleted my .metadata folder. The workaround is to open Eclipse in a new workspace, disable the perforce plug-in, re-open on your usual workspace and then re-enable the perforce plug-in. I’ve tried this and it works great. Thank you for suggesting it.
November 9, 2007 at 8:44 am |
I’m having the same problem to. And I guess we’re not the only ones. Trying to write “perforce eclipse” into google suggest gives “perforce eclipse 3.3″ as the third suggestion
I’ve also contacted perforce, and while their reply was quick enough, they’re just saying “The current release of P4WSAD supports up to Eclipse 3.2.x. However, we have an existing enhancement request for a build of P4WSAD that supports Eclipse 3.3.x and I have added your details to it.”
What I’ve done is to go back to eclipse 3.2 (it is available here: http://archive.eclipse.org/webtools/downloads/drops/R1.5/R-1.5.5-200708291442/ )
November 9, 2007 at 3:29 pm |
FWIW I’m running eclipse 3.3 on the Mac & Chris’ workaround works just fine. I should add that I had some issues with renaming files in eclipse that are managed by perforce and this is one feature that I don’t use directly in eclipse.
December 17, 2007 at 8:36 am |
I got this problem too. Best way I’ve found so far is to move the com.perforce folders to another folder. Start Eclipse (should start). Stop Eclipse and put back the perforce folders. And now Eclipse starts fine with the plugin.
February 14, 2008 at 6:57 pm |
I faced the problem that I was not able to edit files in eclipse. The changelist dialog for perforce would pop up, but it still would not let me edit the files. The log file showed perforce conflicts.
After 3 hours, after trying all the above mentioned, I figured out it was happening only for 1 file ( the file was created from within eclipse only). And then I saw in perforce client that file in my workspace was out of sync with depot. Weird because I am the only one working on this project.
Anyways, I took the latest from perforce client and now things are working fine for me.
May 14, 2008 at 2:18 am |
Question if you can answer… I’m using p4wsad on mac os x, and I can’t connect to my server. I have p4 installed in /usr/bin, and that part seems ok. But in configuring the server, there’s no where I can see to enter the password. Am I missing something? Thanks for any help.
May 14, 2008 at 4:43 pm |
After you’ve configured Perforce in Eclipse, you need to “Team” enable your Eclipse project. Right click on the project, select Team, and then Share Project. Pick Perforce, and then you’ll be asked for your P4 password (and each time your P$ session times out).
June 12, 2008 at 6:59 am |
@ sj: I am new with the perforce-eclipse plugin, perhaps you may help me. You told Alper he should right-click the project, select team and the share project and pick perforce. When I do this, I am not asked for the password. Additional I don’t want to add a project to perforce I want to retrieve a it from perforce and so I tried the help guide: right click in the p4 depot pane, and the click ‘New Server..’ in the open dialog I may *not* enter my password (only port, user, client workspace) I think this is the reason I may not connect to the server? What should I do? I use eclipse 3.3.2 would it help to use eclipse 3.2.x?
June 13, 2008 at 5:58 am |
You must set up the perforce properties first (via the Eclipse preferences). Next you could “import” a perforce project or add an existing project to perforce. The plugin will ask you to login and provide a password. Make sure that you specify the path to the p4 executable in the Eclipse perforce preferences.
August 17, 2008 at 6:14 am |
I’m running Eclipse 3.3.2 on Mac OS X 10.4.11. I’ve just installed the P4WSAD plugin, and copied ‘p4′ to /usr/bin. I’m attempting to follow the instructions to retrieve a project from Perforce: “In the P4 Depot View pane, right-click and choose New Server… The Server Connection dialog is displayed.” However when I right-click in the (empty) depot view, all I get in the context menu that appears is “Open” and “Refresh”, neither of which does anything. How do I get this thing pointed to my Perforce server?
August 17, 2008 at 6:26 am |
BTW, if I go to the Perforce menu Window->Show View->Other and choose Servers, then frim *its* contextual menu choose New->Server, Perforce is not one of the server types listed. And if I follow the hyperlink “Download additional server adapters”, no Perforce options show up. So I’m stumped.
August 18, 2008 at 4:33 am |
In Eclipse, import the project, and then right click on the project in the Eclipse Navigator and select the Team menu item and then select Share Project…