Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Unable to merge files in a C++ synchronized project.
Unable to merge files in a C++ synchronized project. [message #1804446] Tue, 26 March 2019 08:54 Go to next message
Tom Harvey is currently offline Tom HarveyFriend
Messages: 3
Registered: January 2019
Junior Member
I'm using Eclipse 4.10.0 and would like to remotely build and debug my project in a Linux Docker container. I have tried the docker tooling and it isn't quite there yet in terms of functionality and what I need it to do, so instead I am trying to create a synchronized project.

I have set up a connection to my container via ssh following this tutorial

http://umayanganie.blogspot.com/2017/05/build-debug-cc-projects-via-remote.html

When trying to "Sync all now" on the project i get an error. This is the stack trace:

java.lang.NoSuchMethodError: org.eclipse.jgit.lib.Repository.getRef(Ljava/lang/String;)Lorg/eclipse/jgit/lib/Ref;
at org.eclipse.ptp.internal.rdt.sync.git.core.JGitRepo.merge(JGitRepo.java:605)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.doSyncRL(GitSyncService.java:720)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.doSync(GitSyncService.java:627)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.synchronize(GitSyncService.java:529)
at org.eclipse.ptp.rdt.sync.core.SyncManager$SynchronizeJob.run(SyncManager.java:79)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

I am wondering why this is happening and whether this is a problem on the local or remote side. Do i maybe need to upgrade Java JDK?

Thank you in advance if any one can help,

Tom

[Updated on: Tue, 26 March 2019 09:47]

Report message to a moderator

Re: Unable to merge files in a C++ synchronized project. [message #1804451 is a reply to message #1804446] Tue, 26 March 2019 10:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30141
Registered: July 2009
Senior Member
It looks like exactly this line (605) in JGitRepo was changed to call findRef instead of getRef:

https://git.eclipse.org/c/ptp/org.eclipse.ptp.git/commit/rdt/org.eclipse.ptp.rdt.sync.git.core/src/org/eclipse/ptp/internal/rdt/sync/git/core/JGitRepo.java?id=5c177d4be223c603f10561a8e6cc6e98ae1d1517

You'd likely be best to install the latest Eclipse release because you currently have a mismatch between the PTP version you're using and the EGit/JGit version you're using. You could also try updating both (though installing all the latest together is least likely to have problems like this).
Re: Unable to merge files in a C++ synchronized project. [message #1804462 is a reply to message #1804451] Tue, 26 March 2019 11:45 Go to previous messageGo to next message
Tom Harvey is currently offline Tom HarveyFriend
Messages: 3
Registered: January 2019
Junior Member
Okay thanks, I have installed Version: 2019-03 (4.11.0) for C/C++ Developers but when creating a new project I can't find the option to create C++ Synchronized project. In the previous version it is in File->Other/Other.

Do you know if I might be missing an extension? I've looked around but can't find any specific download for this functionality.
Re: Unable to merge files in a C++ synchronized project. [message #1804469 is a reply to message #1804462] Tue, 26 March 2019 13:08 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30141
Registered: July 2009
Senior Member
From the name of the package I expect you installed something from here:

https://www.eclipse.org/ptp/

You can look at your old installation's details (installed features), and make sure you install those features again.
Previous Topic:How does I wrap line in Eclipse
Next Topic:eclipse installer problem
Goto Forum:
  


Current Time: Sun May 26 20:57:28 GMT 2019

Powered by FUDForum. Page generated in 0.02718 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top