Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Synchronized PHP project - synchronizations hangs
Synchronized PHP project - synchronizations hangs [message #1859452] Thu, 08 June 2023 13:06 Go to next message
Cristian Zoicas is currently offline Cristian ZoicasFriend
Messages: 2
Registered: June 2023
Junior Member
Hello all

First of all I would like to mention that I am new to Eclipse.

I've installed Eclipse 2023-03 with PDT. I have PHP 7.4 with Xdebug enabled and working: I am able to debug in Eclipse both local files (cli) and files running on an Apache web server running on the local machine (and together with with eclipse).

Now I need to create a Synchronized PHP project, because the server where my application runs is remote and Eclipse is running on my local machine.

This is what I do:

1) In project Explorer I click New/Project
2) I choose Synchronized PHP project
3) A dialog opens where I can specify the project name, the local directory and the remote directory.
4) I fill out all the information, including the remote directory (I've configured a connection and I am able to browse the remote system)
5) I click finish
6) The synchronization process starts and hangs at 9%.

To me seems a problem related to git, probably Eclipse is not able to find git. I've tried to run strace on Eclipse to see how it runs git in order to understand what causes the problem. Then I've seen that Eclipses uses jgit so i've tried to install it on a Debian system but it does not run.

How can I configure Eclipse to work with Synchronized PHP project?

Any help is welcomed.

Thank you
Cristian






Re: Synchronized PHP project - synchronizations hangs [message #1859678 is a reply to message #1859452] Thu, 22 June 2023 08:22 Go to previous messageGo to next message
Kabiru Usman is currently offline Kabiru UsmanFriend
Messages: 42
Registered: April 2023
Member
The synchronization hanging at 9% could be due to several reasons. One common issue is a problem with the network connection. Make sure the network is stable and the remote server is accessible.

Eclipse uses EGit (which is based on JGit) for Git operations. So, it's not about installing JGit on your Debian system, but making sure EGit is correctly set up in Eclipse. Check if EGit is installed by going to Help -> Eclipse Marketplace -> Installed and look for EGit. If it's not there, you can install it from the marketplace.

If you're still having trouble, you could try to sync your project manually using Git from the command line. Once the initial synchronization is done, Eclipse should be able to handle the subsequent changes more smoothly.
Re: Synchronized PHP project - synchronizations hangs [message #1861003 is a reply to message #1859678] Thu, 14 September 2023 07:56 Go to previous message
Cristian Zoicas is currently offline Cristian ZoicasFriend
Messages: 2
Registered: June 2023
Junior Member
Thank you form the information you have provided. In the end I've solved the problem.

---- Issues with synchronized projects ----

We have encountered a series of problems when trying to use Eclipse to
manage synchronized projects. We show here how to avoid these time
consuming problems.


1. DO NOT CALL programs from .profile or from .bashrc that interfere with
the user interaction protocol. Normally a user interacts with a machine
according to the following protocol:

1) login;
2) execute commands;
3) execute logout command or CTRL-D;
4) the login shell stops execution.

Here is what happened:

In a special situation we have configured the shell on the
remote machine to call newgrp at the end of the .profile file. This
newgrp command started a new shell and the user interaction protocol
changed as follows:

1) login;
remember that this logins shell calls newgrp from .profile, so
a child shell is started (by newgrp).
2) execute commands;
3) execute logout command or CONTROL-D;
4) the newgrp started shell is stopped and the control is passed
to the real login shell;
5) execute logout command or CONTROl-D;
6) the login shell stops execution;

When creating a "Synchronized project" the process hanged at 9%.
Probably because Eclipse was executing the logout command in step 3
but the logout was not performed (another logout is necessary in
step 5 to actually fully stop the interaction with the remote
system) in order to pass control to the application that started
the login shell.



2. DO NOT CHANGE the name of the default Git branch on the remote
machine in the file .gitignore.

Here is what happened:

Our remote machine was configured with a ~/.gitconfig file
containing the following:

---- begin ~/.gitconfig fragment ----

[init]
defaultbranch = main

---- end ~/.gitconfig fragment ----

With this configuration Eclipse was not able to syncronize the
remote than the local project (no single file was synchronized).



Previous Topic:Syntax Errors not detected
Next Topic:How do I get rid of the Proposals popup?
Goto Forum:
  


Current Time: Sat Nov 11 07:31:27 GMT 2023

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

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

Back to the top