开发者

subclipse not showing "share project" option on project context menu in eclipse

Within eclipse, with Subclipse installed, if I right click a project and select "team" there are normally 2 options:

  • apply patch
  • share project

Once you have shared project you get the full Subclipse menu from "team"

One project however only has one option - apply patch. If I close the project I see both options but the share project option is grayed out.

I have other projects where this is not happening.

What could be special about this proj开发者_Python百科ect to stop me getting the share project option? Is there another path to the share project function I could use?

Regards


Solve this problem with these steps:

  • Verify that you can update using TortoiseSVN (this will guarantee that your .svn is not corrupt)
  • Delete all your projects that have this problem, but in the delete dialog, do not delete the project contents!
  • Select File -> Import -> Existing projects into Workspace.
  • Select your projects folder or your workspace folder.

Subeclipse should now detect and connect your projects automatically, without need to select 'Share Project' for each one of them.


This is usually the case when the directory containing the project is not properly under version control (bad or corrupted .svn).

So:

  • can you execute SVN commands in a shell a the root of your project?
  • where are your .project and .classpath files (in the eclipse workspace or at the root directory of your project?)


If you upgraded your Eclipse recently, make sure you're still using the same SVN plugins... :)

In my case, I upgraded my Eclipse and accidentally installed Subversive instead of Subclipse. The existing .svn directory of the project contained data in the format expected by Subclipse, and so Subversive got confused (e.g. but not showing the "Share Project" option).


Close Project and Re-Open project has worked for me.


I have the same problem after emergency-migrating (again!) from Subversive to Subclipse. Old .svn entries are all there but Subclipse won't pick them up.

I can successfully commit using an external tool, in this case TortoiseSVN, but in Eclipse, I just see normal Java projects that cannot be shared (because of stale .svn entries I suspect).

The only solution I see is to commit everything you want to keep with an external tool, then freshly check out your projects into a new workspace and copy over any missing pieces from your old workspace.


Try to select prespective as java instead of j2ee and then restart as eclipse .

This works for me.


Delete the file:

<ECLIPSE_WS>\.metadata\.plugins\org.eclipse.core.resources\.projects\<PROJECT_NAME>\.indexes\properties.index

And the Share Project option appears!


I had the exactly same situation with Yaniv above.

If you upgraded your Eclipse recently, make sure you're still using the same SVN plugins... :)

In my case, I upgraded my Eclipse and accidentally installed Subversive instead of Subclipse. The existing .svn directory of the project contained data in the format expected by Subclipse, and so Subversive got confused (e.g. but not showing the "Share Project" option).

My solution is like below:

  1. Exported the current project in the new workspace into .war file.

  2. Double-checked the current project is in the svn repository.

  3. Removed the project in the new workspace completely once I was sure that I have the exported .war file and svn repository so that I will be able to import the project again.

  4. Imported the project from svn, and checked out the project from the svn. (Or, you can import the project from the .war file and you will be able to Share Project)

-> It worked well with the Subversive which is installed in the new workspace.


Please double check if you were using: Subversive or Subclipse?

It is likely that you have opened an old project with a newer Eclipse installation, where the software to be used may not be the one used previously, for example:

  • Subclipse instead of Subversive
  • Subversive instead of Subclipse

In my case after a fresh install of "Eclipse IDE for PHP Developers" Version: 2018-09 (4.9.0) Build id: 20180917-1800 while I needed to make some modifications to an ancient SVN tracked project.

I had Subclipse instead of Subversive (so simple yet you may be up for a spin).
Credit to the answer from Yaniv, he had installed the software the other way around - same issue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜