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

Hi Zakłopotany,

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

https://www.hanselman.com/blog/GitIsCasesensitiveAndYourFilesystemMayNotBeWeirdFolderMergingOnWindows.aspx

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
ptp-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ptp-user

Back to the top