Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] Odp: [Windows] Case sensitive names and synchronized project

Hello,

New bug report added here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=567269
With some news regarding "corrupted" .gitignore content.

Let's continue any discussion there. Thank you for your support.


Best Regards,

Zbigniew Duszeńczuk

Dnia 22 września 2020 16:58 John Eblen <jeblen@xxxxxxx> napisał(a):

Hi,

Thank you for investigating this issue in detail. I couldn't find a similar bug, so can you file a new bug report? This should be reported
separately from 480410, because it is more specific, and we don't know if it is the same problem. The new report, though, should
reference 480410 as possibly being related.

We have had problems with .gitignore files before. See, for example, 479086, which is a different problem that might also affect your project.

Thank you again,
John


On Tue, Sep 22, 2020 at 8:05 AM zaklopotany zaklopotany <zaklopotany@xxxxx> wrote:
Hello again,

Sorry for another email, but I spent hours on investigating this issue and finally found root cause.

My current project has some ".gitignore" files in subdirectories. Most of them are not problematic, but there are 3 occurrences, which causes problem. As workaround, I put filters for directories, where these files are located. There are 2 issues to investigate now:
  1. When I remove these ".gitignore" files, there is no synchronization failure and everything works perfectly. Definitely these files are written wrongly and I'll investigate it independntly - no need to focus on them here.
  2. The second issue is possible bug in Eclipse. As I understand, any GIT files which are part of repo should not be included by PTP in processing. But my tests (deletion of "correpted" .gitignore files) clearly show, that it's not true. Even if I put filter for ".gitignore" with specified path, the synchronization issue is still visible.
I think the content of .gitignore files is not necessary to reproduce issue (moreover, I wouldn't like to publish it), because it should not be even interpreted by PTP. Here is directory tree of failing files:

PROJECT/Component_A/Helps/Dir/.gitignore
PROJECT/Component_A/Subcomponent_1/Dir_A/Subdir_X/.gitignore
PROJECT/Component_A/Subcomponent_1/Dir_B/Subdir_Y/.gitignore

Is there any similar bug already reported?



Best Regards,

Zbigniew Duszeńczuk

Dnia 22 września 2020 10:35 zaklopotany zaklopotany <zaklopotany@xxxxx> napisał(a):

Hi,

Some updates.
  1. The sympthoms are exactly the same as described here https://bugs.eclipse.org/bugs/show_bug.cgi?id=480410, so synchronization is recovered, when any change was made on remote server (I didn't add any new file - just modify any existing one). I can introduce changes locally and synchronize it after save file, but it stopped working only, when I try to push "Synchronize the selected project" button and no change was made on local side.
  2. Solutions suggested in "Comment 14" from link above don't work - first solution has no effect and the second causes synchronization to hang at 9-10%.
  3. One more thing to know - I have also installed on my local machine GIT for Windows (git version 2.28.0.windows.1, where "echo $LANG" returns "en_GB.UTF-8" and on remote server it is "en_US.UTF-8" - as I wrote above, changing lang on remote server didn't fix the issue) and I wonder, is it safe, because... Please see next point
  4. Here is full log from Eclipse session - Eclipse was turned on, then hit "Synchronize the selected project" button and synchronization error occurred. I noticed, that there is warning at sturtup regarding possible inconsistency of GIT configuration and I think, it could be caused by GIT for Windows.
!SESSION 2020-09-22 10:16:25.608 -----------------------------------------------
eclipse.buildId=4.16.0.I20200604-0540
java.version=1.8.0_261
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Framework arguments:  -product org.eclipse.epp.package.parallel.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.parallel.product

!ENTRY org.eclipse.egit.ui 2 0 2020-09-22 10:16:34.573
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\duszencz'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

!ENTRY org.eclipse.ptp.rdt.sync.ui 4 4 2020-09-22 10:17:05.601
!MESSAGE Error
!STACK 1
org.eclipse.ptp.rdt.sync.core.exceptions.RemoteSyncException: org.eclipse.ptp.rdt.sync.core.exceptions.RemoteSyncException: Remote Git commit failed with message:
at org.eclipse.ptp.internal.rdt.sync.git.core.GitRepo.commitRemoteFiles(GitRepo.java:278)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.doSyncRL(GitSyncService.java:714)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.doSync(GitSyncService.java:642)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.synchronize(GitSyncService.java:544)
at org.eclipse.ptp.rdt.sync.core.SyncManager$SynchronizeJob.run(SyncManager.java:80)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.eclipse.ptp.rdt.sync.core.exceptions.RemoteSyncException: Remote Git commit failed with message:
at org.eclipse.ptp.internal.rdt.sync.git.core.GitRepo.commitRemoteFiles(GitRepo.java:269)
... 5 more
!SUBENTRY 1 org.eclipse.ptp.rdt.sync.git.core 4 0 2020-09-22 10:17:05.602
!MESSAGE org.eclipse.ptp.rdt.sync.core.exceptions.RemoteSyncException: Remote Git commit failed with message:
!STACK 1
org.eclipse.ptp.rdt.sync.core.exceptions.RemoteSyncException: Remote Git commit failed with message:
at org.eclipse.ptp.internal.rdt.sync.git.core.GitRepo.commitRemoteFiles(GitRepo.java:269)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.doSyncRL(GitSyncService.java:714)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.doSync(GitSyncService.java:642)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.synchronize(GitSyncService.java:544)
at org.eclipse.ptp.rdt.sync.core.SyncManager$SynchronizeJob.run(SyncManager.java:80)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
!SUBENTRY 2 org.eclipse.ptp.rdt.sync.git.core 4 0 2020-09-22 10:17:05.602
!MESSAGE Remote Git commit failed with message:


Do you have any suggestions, what can be wrong? If it's possibel, I will ask someone without GIT for Windows installed to verify this.



Best Regards,

Zakłopotany

Dnia 21 września 2020 22:31 zaklopotany zaklopotany <zaklopotany@xxxxx> napisał(a):

Hi John,

Indeed, case-sensitivity issue is not easy to solve.

Regarding my last issue - it looks similar to this bug:

I remember, that I used such workaround some time ago in current project. I'll try to verify this tomorrow and share the details.

Thank you for your support.


Best Regards,

Zakłopotany

Dnia 21 września 2020 18:18 John Eblen <jeblen@xxxxxxx> napisał(a):

Hi Zakłopotany,

Regarding case-sensitivity, this is a long-standing issue for Git. See, for example:


So there are probably no simple solutions other than changing your project to be case sensitive. (This will also be a problem
if you use Git for version control, outside of using sync projects.)

For your most recent problem, the stack trace is, unfortunately, not much help (the error message is blank). Please ask again
if you uncover more information.

John

On Mon, Sep 21, 2020 at 10:26 AM zaklopotany zaklopotany <zaklopotany@xxxxx> wrote:
Hello again,

Even if I manage to setup proper filters manually (so my last questions are still valid), there are problems with synchronization. After project configuration, synchronization works OK, when I made changes in file and save it. However, when I click "synchronize" button (no changes intorduced to files), synchronization fails. It works again, when changes in file were made. But after I exit Eclipse and start it again, synchronization doesn't work permanently. The reason I see in log is exactly the same:

!ENTRY org.eclipse.ptp.rdt.sync.ui 4 4 2020-09-21 16:17:41.854
!MESSAGE Error
!STACK 1
org.eclipse.ptp.rdt.sync.core.exceptions.RemoteSyncException: org.eclipse.ptp.rdt.sync.core.exceptions.RemoteSyncException: Remote Git commit failed with message:
at org.eclipse.ptp.internal.rdt.sync.git.core.GitRepo.commitRemoteFiles(GitRepo.java:278)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.doSyncRL(GitSyncService.java:714)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.doSync(GitSyncService.java:654)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.synchronize(GitSyncService.java:544)
at org.eclipse.ptp.rdt.sync.core.SyncManager$SynchronizeJob.run(SyncManager.java:80)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.eclipse.ptp.rdt.sync.core.exceptions.RemoteSyncException: Remote Git commit failed with message:
at org.eclipse.ptp.internal.rdt.sync.git.core.GitRepo.commitRemoteFiles(GitRepo.java:269)
... 5 more
!SUBENTRY 1 org.eclipse.ptp.rdt.sync.git.core 4 0 2020-09-21 16:17:41.855
!MESSAGE org.eclipse.ptp.rdt.sync.core.exceptions.RemoteSyncException: Remote Git commit failed with message:
!STACK 1
org.eclipse.ptp.rdt.sync.core.exceptions.RemoteSyncException: Remote Git commit failed with message:
at org.eclipse.ptp.internal.rdt.sync.git.core.GitRepo.commitRemoteFiles(GitRepo.java:269)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.doSyncRL(GitSyncService.java:714)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.doSync(GitSyncService.java:654)
at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.synchronize(GitSyncService.java:544)
at org.eclipse.ptp.rdt.sync.core.SyncManager$SynchronizeJob.run(SyncManager.java:80)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
!SUBENTRY 2 org.eclipse.ptp.rdt.sync.git.core 4 0 2020-09-21 16:17:41.855
!MESSAGE Remote Git commit failed with message:

Do you know, how to solve this? I worked earlier with different project on the same server and had no such issues, so it's rather something specific in current project rather.


Best Regards,

Zakłopotany

Dnia 18 września 2020 22:08 zaklopotany zaklopotany <zaklopotany@xxxxx> napisał(a):

Hello all,

I started to work with new project some time ago and met unexpected issue. Configuration is following:
  1. Linux on remote server (project is built there + this is location of cloned GIT repository).
  2. Windows on my local machine (code is edited here).
  3. Eclipse IDE for Scientific Computing 2020-06 is used, synchronized project was set.
The problem is with directory/symlink names used in project. Some names differ only in letter case. Linux is case sensitive, but Windows isn't, so I had permanent problems with synchronization (some locations were not visible on Windows and then were marked as removed on Linux server side), which probably stopped synchronization. So I have 2 questions:
  1. Is it possible to stop synchronizing symlinks via some settings like exclude filters? I think they could be omitted in my project, but I'm open for better ideas.
  2. Is there any way to enable case sensitive folders in synchronized project via Eclipse? I know, that Windows has such feature (eg. https://www.howtogeek.com/354220/how-to-enable-case-sensitive-folders-on-windows-10/), but it could be problematic to apply this recursively (but it's still possible: https://stackoverflow.com/questions/51591091/apply-setcasesensitiveinfo-recursively-to-all-folders-and-subfolders).
I didn't check solution based on cloned GIT repo on local machine (I have GIT for Windows installed), but I would prefer to keep it on remote machine (all my synchronized project based on this assumption).


Best Regards,

Zakłopotany
_______________________________________________
ptp-user mailing list
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ptp-user
_______________________________________________
ptp-user mailing list
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ptp-user
_______________________________________________
ptp-user mailing list
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ptp-user

_______________________________________________
ptp-user mailing list
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ptp-user

_______________________________________________
ptp-user mailing list
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ptp-user

_______________________________________________
ptp-user mailing list
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ptp-user
_______________________________________________
ptp-user mailing list
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ptp-user


Back to the top