Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336851

Summary: using a symbolic link breaks PHP syntax checker
Product: z_Archived Reporter: Andrea <a.bagnini>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P2 CC: a.bagnini
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Andrea CLA 2011-02-10 12:39:05 EST
Build Identifier: Version: Helios Service Release 1 Build id: 20100917-0705

If, inside a PHP project, I put a symbolic link to another PHP project, after the first save of a page,
the PHP syntax checker doesn't work anymore.

Reproducible: Always

Steps to Reproduce:
1. Create new PHP project 'test1'. Inside the project put a PHP file 'file1.php'
2. Create new PHP project 'test2'. Inside the project put a PHP file 'file2.php'
3. Edit file2.php and cause some syntax error; the red error icon will appear
4. Now click right mouse over project test2 and choose 'build path' ->link source
5. choose linked folder location: workspace/test1; type foldername: 'test1alias'
6: edit file2 (any edit) and save the file
7: from this moment any editing inside test2 project will not anymore checked
8: deleting the symbolic link doesn't replace the correct situation
Comment 1 Andrea CLA 2011-02-11 07:29:06 EST
Other tests done:
Eclipse Galileo on Mac OSX Leopard 10.5.8 has NOT this bug. 
Eclipse Helios (same version tested on OSX) on Linux HAS the same bug


Workaround before doing the symbolic link:

When you build the symbolic link, if you click on:
"Update exclusion filters in other source folders to solve nesting".
In this way the bug is NOT triggered.

Workaround after doing the buggy symbolic link:
click right mouse on the 'broken' project: Build Path->Configure Build Path...
Edit the following rules:
  included:(All)
  excluded: select the path referred by the symbolic link

The bug seems related to DTLK.