2

I work with eclipse (in fact last version of Zend Studio) and the project i currently work on is in a distant directory mounted with samba.

When i save a PHP file, permissions are changed and the executable flag is added. I don't have the problem when i execute a touch on the file.

Did you already encounters this problem? How to resolve it?

Thanks

Brice Favre
  • 1,511
  • 1
  • 15
  • 34
  • 2
    Isn't it the samba which changes the permissions? Have you tried editing the files in some other program than Eclipse (but still using the distant directory offered by samba)? – Grzegorz Oledzki May 12 '11 at 09:39
  • I tried with touch and vim and the permissions didn't change. I thinks this is related to samba too, but why eclipse does that? My admin switch create permission on the shared directory and now it works. Maybe eclipse delete and re-create the file. Weird. – Brice Favre May 12 '11 at 09:43
  • 1
    Maybe you can try to strace Eclipse and see what it really does? – Grzegorz Oledzki May 12 '11 at 09:45
  • 1
    I find something interesting there : https://bugs.eclipse.org/bugs/show_bug.cgi?id=323681 – Brice Favre May 12 '11 at 09:49
  • 1
    That's a good finding. But they claim they have fixed the problem in 3.6. Is your Zend Studio using an older version of the Eclipse platform? – Grzegorz Oledzki May 12 '11 at 09:51
  • No, i think this will be ported in 3.7 and someone offers to do a backport https://bugs.eclipse.org/bugs/show_bug.cgi?id=323681#c37 Zend Studio use the last stable version (august or september 2010) – Brice Favre May 12 '11 at 10:03
  • 1
    You're right. I thought it's the Version field there, but it's the "Target Milestone" which is the one about when will be the things solved. – Grzegorz Oledzki May 12 '11 at 10:22

1 Answers1

0

It appears that it's related to a bug in eclipse : https://bugs.eclipse.org/bugs/show_bug.cgi?id=323681#c37

Meanwhile, a modification of the shared directory configuration helped to resolve the problem for some files.

Thanks.

Brice Favre
  • 1,511
  • 1
  • 15
  • 34