Infinite recursion while DLTK index project with symlink

General discussion on Zend Studio

Infinite recursion while DLTK index project with symlink

Postby spam38 on Wed Jul 14, 2010 10:38 pm

I just discovered a minor issue with DLTK indexing when a project contains a symbolic that refers to a parent directory (ie: siteroot/foo/bar points to siteroot/) that causes infinite recursion. Because of the symlink, the indexer will scan siteroot/*, then siteroot/foo/bar/*, then siteroot/foo/bar/foo/bar/*, etc. Removing the symbolic link will prevent this, but it probably shouldn't happen in the first place. (The find command and grep -r will work just fine in these conditions)
spam38
 
Posts: 3
Joined: Wed Feb 10, 2010 6:21 pm

Re: Infinite recursion while DLTK index project with symlink

Postby spam38 on Wed Jul 14, 2010 10:39 pm

oh, and this is with Zend Studio 7.2.1 on Mac OS X 10.6.4
spam38
 
Posts: 3
Joined: Wed Feb 10, 2010 6:21 pm

Re: Infinite recursion while DLTK index project with symlink

Postby iconic2020 on Mon Oct 04, 2010 2:37 pm

bump ....

any fix or tips for this issue?
iconic2020
 
Posts: 2
Joined: Mon Oct 04, 2010 2:36 pm

Re: Infinite recursion while DLTK index project with symlink

Postby kentatzend on Mon Oct 04, 2010 4:50 pm

We have entered a bug for it but ... Just out of curiosity why do you do this?
User avatar
kentatzend
 
Posts: 1781
Joined: Thu Dec 11, 2008 1:08 pm

Re: Infinite recursion while DLTK index project with symlink

Postby iconic2020 on Mon Oct 11, 2010 10:59 am

I'm not sure of spam38's need, but I have the same problem due to some complexities related to and apache config & subdomain workaround -- using a symbolic link to the current folder solved the apache problem but has blown up Zend Studio
iconic2020
 
Posts: 2
Joined: Mon Oct 04, 2010 2:36 pm

Re: Infinite recursion while DLTK index project with symlink

Postby kentatzend on Mon Oct 11, 2010 11:08 pm

got it ....
User avatar
kentatzend
 
Posts: 1781
Joined: Thu Dec 11, 2008 1:08 pm

Re: Infinite recursion while DLTK index project with symlink

Postby raymondjplante on Fri Oct 07, 2011 8:49 pm

I've also notice if you have symbolic links in your directory tree and you try searching it throws an error and the search dies.
raymondjplante
 
Posts: 8
Joined: Fri Jul 08, 2011 6:03 pm

Re: Infinite recursion while DLTK index project with symlink

Postby crazymerlin on Sat Oct 08, 2011 9:33 pm

This sounds like bad practice. Why would you have a symlink in your project? Can you not just exclude it from the build?
I take it this is a project you already had in place before using ZSt?

This certainly doesn't sound like a bug, more like a feature request.
crazymerlin
 
Posts: 227
Joined: Wed Feb 18, 2009 10:25 pm
Location: In the desert, AZ, USA

Re: Infinite recursion while DLTK index project with symlink

Postby raymondjplante on Tue Oct 11, 2011 12:48 am

Yes, pre exisiting symbolic links, but regardless they're core to unix file system constructs and especily as the majority of Php sites are on linux systems, one would think studio could handle gracefully symbolic links. In java ( i am assuming the search functionality is java) its trivial to check whether you have a real directory or symbolic link before traversing--crashing the search with a big red exception error is probably bad practice UX when building (or re skinning) an IDE.
raymondjplante
 
Posts: 8
Joined: Fri Jul 08, 2011 6:03 pm

Re: Infinite recursion while DLTK index project with symlink

Postby monkeygod82 on Mon Aug 06, 2012 3:32 pm

This problem still exists in Zend Studio 9.0.3.

Now to find out how to dump the indexes so I can rebuild them.
monkeygod82
 
Posts: 1
Joined: Mon Aug 06, 2012 3:30 pm

Next

Return to Zend Studio

Who is online

Users browsing this forum: No registered users and 4 guests