Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Indexer barfs on symlink referring to current directory

FYI - I would guess that this is not the indexer per-se, but the general
problem Eclipse has with symbolic links, cyclical ones in particular.
See:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=105554
https://bugs.eclipse.org/bugs/show_bug.cgi?id=44107

  Jeremiah Lott
  TimeSys Corporation

> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Bart van Kuik
> Sent: Tuesday, January 10, 2006 5:31 AM
> To: cdt-dev@xxxxxxxxxxx
> Subject: [cdt-dev] Indexer barfs on symlink referring to 
> current directory
> 
> 
> Hi,
> 
> Has anyone noticed that the indexer doesn't really handle a symlink 
> referring to its current directory?
> 
> For example the linux-gpib package has this.
> http://linux-gpib.sourceforge.net/
> Downloadable via
> http://surfnet.dl.sourceforge.net/sourceforge/linux-gpib/linux
-gpib-3.2.06.tar.gz

After unpacking, configuring and make, the include directory looks as 
follows:

~/tmp/linux-gpib-3.2.06/include$ ll
total 28
-rw-r--r--  1 bartvk ed 10765 Jan 10 11:27 Makefile
-rw-r--r--  1 bartvk ed   776 Aug 25  2003 Makefile.am
-rw-r--r--  1 bartvk ed 11000 Oct 31 01:36 Makefile.in
lrwxrwxrwx  1 bartvk ed     1 Jan 10 11:27 gpib -> .
lrwxrwxrwx  1 bartvk ed    30 Jan 10 11:27 gpib_ioctl.h -> 
../driver/include/gpib_ioctl.h
lrwxrwxrwx  1 bartvk ed    30 Jan 10 11:27 gpib_types.h -> 
../driver/include/gpib_types.h
lrwxrwxrwx  1 bartvk ed    29 Jan 10 11:27 gpib_user.h -> 
../driver/include/gpib_user.h
lrwxrwxrwx  1 bartvk ed    11 Jan 10 11:27 ib.h -> ../lib/ib.h
lrwxrwxrwx  1 bartvk ed    15 Jan 10 11:27 ibConf.h -> ../lib/ibConf.h
lrwxrwxrwx  1 bartvk ed    12 Jan 10 11:27 ibP.h -> ../lib/ibP.h

When I import the directory in Eclipse, the Indexer seems to loop, 
printing directories like
   include/gpib/gpib/gpib/gpib/gpib/gpib/gpib/gpib/gpib/gpib/ib.h

It does finally stop, but takes a long time and lots of CPU. I've 
replaced the "gpib -> ." symlink with a directory containing separate 
symlinks and the indexer then handles everything well and finishes
quickly.

Although I found a solution, I thought I'd mention this.

Bart
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top