Eclipse "compare with" context menus with mercurial eclipse - eclipse

I have been using the Mercurial Eclipse for MCU projects in System Workbench for STM32 IDE for a while. It allowed me to right click on a file or folder and use the compare with option in the context menu to compare against other file versions from the Mercurial repository. Recently due to a lack of support for a newer MCU, I had to move to the STM32CubeIDE. It is still eclipse based so I expected that I could install Mercurial Eclipse and have the same functionality. But what I have found is that the compare with context menu does not give the option to compare against previous versions. Even in the history view, I cannot compare one changeset against another.
It does appear that STM32CubeIDE uses a newer Eclipse version. The Eclipse versions are:
For STM32CubeIDE
Version: 4.19.0.v20210303-1800
Build id: I20210303-1800
For System Workbench
Version: 4.6.3.v20170301-0400
Build id: M20170301-0400
Does anyone know if there is a way to get these context menus to work with the newer Eclipse version?

Related

How to update Eclipse from 2018-09 to 2018-12

I have Eclipse 2018-09. My impressions was that Eclipse was moving to a rolling quarterly release, and by that I presumed I'd magically be offered updates every quarter to the newest. But now that 2018-12 is out, my instance does not detect any new updates.
Looking at the update sites in Windows -> Preferences, Install/Update -> Available Software Sites (incompletely listed below), I notice they seemed to be pinned to specific versions:
The Eclipse Project Updates: http://download.eclipse.org/eclipse/updates/4.9
The Eclipse Project Updates: http://download.eclipse.org/eclipse/updates/4.9/categories
Eclipse Project Repository for 2018-09: http://download.eclipse.org/eclipse/updates/4.9/R-4.9-201809060745
2018-09: http://download.eclipse.org/releases/2018-09
Oracle Enterprise Pack for Eclipse 12.2.1.8 Dependencies: http://download.oracle.com/otn_software/oepe/12.2.1.8/oxygen/repository/dependencies/
I've noticed there is also now an Eclipse Installer, which says it is "The easiest way to install and update your Eclipse Development Environment.". However, there is no description of updating, and when running it and pointing to the existing folder for 2018-09 (yes, I made a backup first to be safe), it does not update that folder but instead just creates a new sub-folder under the existing 2018-09 version called "eclipse" with presumably a complete copy of the new eclipse. So that's a failed attempt.
What is the recommended way of upgrading from 2018-09 to 2018-12? Is it:
Manually download a new copy of Eclipse and spend hours configuring it to hopefully be almost the same as the configurations in 2018-09
Run the Eclipse installer in some other manner than I already have.
Manually updating the update sites (to what values?). If the so, is there a way to specify to always use the latest on the update train?
Other?
See Eclipse FAQ - Always enable major upgrades:
To always enable major upgrades of your IDE once and for all:
from the Available Software Sites preference page
enable the Latest Eclipse release http://download.eclipse.org/releases/latest repository by ticking the checkbox.
Apply and Close
Check for updates
The similar workflow can be used to hide and disable automatic
proposal of major upgrades.
To my knowledge, the update site http://download.eclipse.org/releases/latest exists since Eclipse Photon (4.8) in Window > Preferences: Install/Update > Available Software Sites but is not checked by default.
If you want to change the default of this preference, vote for or comment on Eclipse bug 539281 - Enable http://download.eclipse.org/releases/latest by default.
The two advantages of using the Eclipse Installer over the direct installation of one or more IDE packages are:
The Eclipse Installer saves disk space when installing multiple IDE packages (by using a shared pool for the plug-ins of all IDE packages)
The Eclipse Installer makes it easier to contribute to an Eclipse project (advanced mode).
Another way to install Eclipse 2018-12 is to use Chocolatey on Windows. Eclipse 2018-12 corresponds to version 4.10.
PS C:> choco list eclipse
Chocolatey v0.10.11
eclipse 4.10 [Approved]
...
PS C:> choco install eclipse
...
But this won't do an in-place upgrade.
Go to Window-> Preferences -> Install/Update -> Available Software Sites
First, if exists remove duplicate sites
Second, click to eclipse related update sites and Reload

Eclipse SVN Team View "Add to Version Control" is grayed out - why?

I'm working on a project in Eclipse, and our version control is in Subversion. My exact Eclipse info is Eclipse CDT Mars, 4.5.1, with Subclipse 1.10.9 .
So, I created this extran file, and I want to add it to version control, but - for some reason that's grayed out on the team menu, along with some other items:
Why is that? Or rather, what could be the reasons for this?
The Add to Version Control option only shows up when the selected item has a Subversion status of "unversioned". I would guess that your file is already considered versioned or scheduled add by Subversion or maybe it is ignored.

Subclipse not showing the SVN data in package explorer and team options not available

I installed completely from scratch adt latest version with Juno, and I installed the latest subclipse plug-in (1.10) from the update site. However, once everything is installed I am not able to see the SVN data in the package explorer and in the context menu on the file no team option is available.
How can I investigate what's happening behind? I have not been able to find anything helping in google.
Some information from suggestions below:
I was having a previous installation of juno and I started from scratch in a new folder.
I am using the same workspace as before.
I have tried using subclipse alone, subversive alone and both installed at the same time.
The folder in workspace is recognized by Tortoise in windows, no corruption on SVN folder.
If you do not see the Share Project option in the Team menu, then I would guess the issue is that you are reusing an existing workspace and you had Subversive plugin, not Subclipse installed, and these projects were already connected to Subversive. So the Eclipse framework thinks it is associated with Subversive, but that plugin is not available to add its options to the Team menu.
Create a new workspace is one option. Install Subversive is another option.
UPDATE:
If you do see the Share Project option, then that is your answer. You need to take that option to "connect" your project to your SCM plugin. Projects that are already in your workspace when you install a new SCM plugin do not get connected to your SCM automatically. You have to take Team > Share Project to make the connection.
SOLUTION THAT WORKED:
For recognizing the existing installation of SVN you need to use Team > Share Project and then select the proper version control tool (SVN this case), automatically will associated SVN to the project.

GIT support in Eclipse

I have a project under version control (SVN), and I am using netbenas 7.3.1 as IDE. Fortunately netbeans recognized the version control from the start, and now uses different colors to show modified, new, etc files as following:
For the second project, I am using Eclipse 3.8 (basically, Eclipse IDE is integrated into the software, and I prefer to stick with that). This project is also under version control (git), but Eclipse does not recognize it. I found out that the version control settings in Eclipse is in Team | share Project, but still can not make it work!
How can I enable version control for my second project in Eclipse in a way that I also get the coloring feature (for modified, new files, etc).
You need EGit Team provider and it is included into Eclipse Kepler Standard package or you can install it from default eclipse update site from "Collaboration" category. Add git local repository clone into Git Repositories View and use "Import Projects..." from context menu to import projects from working area into workspace. After import projects are gonna be recognized as shared through git.
I am not sure about 3.8 but previous versions of Eclipse were not bundled with Git support. You need to install plugins like EGit to add Git support to Eclipse.
Everything should be straight-forward after you have that installed :) as you seems to know the right place (Team context menu) to work with version control system.

SVN not working in Eclipse

One day I pressed in Eclipse Help -> Check for Updates (and I learnt that I should Never Ever update a software which works fine.)
Then in a project that I used with SVN the whole submenu of "Team" and the little icons that showed that some files weren't commited, they all dissapeared.
I tried everything:
revert from Instalation History tab
uninstall from Installed Software tab
replaced the folder eclipse in Program Files with a new one downloaded from eclipse website and tried to install again
searched how to install it on the net
But in none of the cases above if I press Ctrl+N There is no SVN group;
If i right click on a project and select Team -> Share project, a window with CVS appears, but no SVN.
If I choose File -> Import I can't find SVN anywhere.
If I go to Help -> About Eclipse -> Instalation details I see at Instalation History in 25.06.2009, 09:59:08 GMT+03:00 (when SVN worked)
Eclipse IDE for Java EE Developers 1.2.0.20090621-0820
Subclipse (Required) 1.6.2
Subversion JavaHL Native Library Adapter (Required) 1.6.3
SVNKit Library 1.3.0.5847
In the Installed Software tab I have now installed
Eclipse IDE for Java EE Developers 1.2.0.20090621-0820 epp.package.jee
Subclipse (Required) 1.6.5 org.tigris.subversion.subclipse.feature.group
Subversion JavaHL Native Library Adapter (Required) 1.6.6 org.tigris.subversion.clientadapter.javahl.feature.feature.group
SVNKit Library 1.3.1.6109 org.tmatesoft.svnkit.feature.group
How can I make SVN to work?
Where does eclipse store its files, because when I changed the eclipse directory with a new one all my stuff was there (the ones that I installed with no success: SVN, Subversive, Subclipse, SVNKit, ...)
Subversive is my favorite SVN implementation in Eclipse because it works better than the others and it integrates neatly into the UI.
I suggest you follow these steps:
Download the most recent version of Eclipse (currently Galileo) and extract it to your desired installation location
Prior to running Eclipse, make sure you delete (or rename/relocate) your default workspace (under Windows this is workspace in your user directory)
Install the Subversive SVN Team Provider (as instructed by the Eclipse incubation website) using Eclipse's software installer:
Choose Help, then Install New Software...
Create a new download location and specify the following download URL: http://download.eclipse.org/releases/galileo
Locate Collaboration, expand it, then check Subversive SVN Team Provider (Incubation)
Proceed through the installation and accept the TOS
Restart Eclipse and Subversive should prompt you to select a SVN Connector. Reading the symptoms you describe, it sounds like you don't have a connector installed, or it isn't communicating with your team provider. The Polarion website has a guide for choosing the connector best suited for you.
If you aren't prompted to install a connector, you can always do so from the preferences screen:
If the above doesn't work for you, it seems that your workspace isn't cleaned out. Locate your default workspace and try getting things working without any projects before you continue.
You could then also try deleting the .eclipse directory in your user directory. And starting over from step 3.
The problem I had was that svn icons where not showing in the package explorer.
The solution for me was to delete the .metadata folder in the workspace folder (which will reset all your workspace including preferences and repository configurations)
After that all the icons appeared.
I had same issue when SVN connector was not able to connect SVN repository in Eclipse.
Then, I do the following step's :-
Right click on Project under Eclipse.
Go to Team -> share Project.
It's working :)
I found a problem related to installing plugins here. I also could not get the SVN stuff to show up in the preferences because of some bug with the software updater updating the Mylin plugins. You'll likely have to get your Eclipse installation straightened out first and you can do this by just using a new workspace. You don't have to blow away the .metadata folder if you point Eclipse temporarily at a new workspace folder. When the Eclipse installation is clean, you can start installing plugins again, but make sure to uncheck the box labeled Contact all update sites during install to find required software
Eclipse uses local SVN libraries that are part of an installed plugin for SVN support, be it SVNkit or JavaHL. Netbeans uses SVN libraries that are installed independently.
I have had this happen before with Eclipse and the various SVN plugins that it supports. The SVN plugin, for some reason, sometimes looses the SVN connection. Your best bet is to simply delete the project and re-check it out of svn. If you have changes that need to be committed you can use the command line.
Another problem you may have is that your plugin and your repository are out of sync in terms of version numbers. I have had problems before using a plugin designed for svn 1.6.x and a repository that was still at svn 1.4 or 1.5.
Just delete all projects from eclipse and Re-Import the all projects again.
It is working for me.
Just try it
If you want to completely start over with eclipse, you need to delete your workspace as well (the path you see when you first start eclipse). Just re-installing the eclipse files and pointing to the same default workspace will not change anything for you.
Your best bet is to remove eclipse and your workspace and start over because you probably inadvertently broke some other parts of the plug in while you were trying to fix your initial problem.
Even if you install everything as it is said, Subversive and SVN Connector (svnkit 1.x.x), in the project you may not see svn working. In my case I had to remove the project from workspace and import it again. Then it appears. (Refresh, clean did not worked).