Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » [Solved] Synchronization error for project(Unexpected end of file error when using synchronized fortran project)
[Solved] Synchronization error for project [message #1863838] Thu, 29 February 2024 05:58 Go to next message
Eclipse UserFriend
When syncing a "synchronized project" with a remote server. I get the following "unexpected EOF while looking for matching `"bash:-c:line1:syntax error:unexpected end of file.

Please find the attached screenshot.

index.php/fa/44026/0/

[Updated on: Sat, 02 March 2024 11:43] by Moderator

Re: Synchronization error for project [message #1863856 is a reply to message #1863838] Fri, 01 March 2024 07:00 Go to previous messageGo to next message
Eclipse UserFriend
That must be a configuration error. Probably the .git/config file is corrupted.
Re: Synchronization error for project [message #1863864 is a reply to message #1863856] Fri, 01 March 2024 11:49 Go to previous messageGo to next message
Eclipse UserFriend
I again tried with a simple empty synchronization fortran project which syncs with a remote folder. When I synchronize, it throws an internal error. It does not contain any .git folder, it contains .ptp-sync folder. Please find the logs.
Re: Synchronization error for project [message #1863868 is a reply to message #1863856] Sat, 02 March 2024 03:27 Go to previous messageGo to next message
Eclipse UserFriend
It does not have any .git folder but uses .ptp-sync
These are contents of the "config" file in that folder

[core]
	repositoryformatversion = 0
	filemode = true
	logallrefupdates = true


The synchronized folder are created using "File > New > Synchronized Fortran Project" and following the wizard and setting up the remote folder on a server.
Re: Synchronization error for project [message #1863872 is a reply to message #1863868] Sat, 02 March 2024 11:34 Go to previous message
Eclipse UserFriend
I found a solution. This happens if the login-shell outputs some "welcome" message. So when you synchronize the project, it retrieves hash info along with the "welcome" message, which interferes with the inbuilt modules. In order to circumvent, you have to suppress this message from the say bash or csh etc.

Quote:

The solution to avoid these errors is to disable .profile and ~/.bashrc execution in the login shell command:

Preferences->Remote Development->Remote Connections->(Select connection and push "Edit")->Advanced->

Use Login shell: selected
Login shell command: /bin/bash --noprofile --norc -l -c '{0}'


Source: https://bugs.eclipse.org/bugs/show_bug.cgi?id=505829
Previous Topic:egit Error
Next Topic:Executor has been shut down - help welcome
Goto Forum:
  


Current Time: Wed May 21 11:56:03 EDT 2025

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

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

Back to the top