Community
Participate
Working Groups
If we create an EOL file and import the file itself, Eclipse will stop responding. It will stop responding again after reopen it. The only way I found to solve the problem was using a external editor to remove the recursive import. The same seems to happen when we import file A on file B, and import file B on file A.
(In reply to comment #0) > If we create an EOL file and import the file itself, Eclipse will stop > responding. It will stop responding again after reopen it. The only way I > found to solve the problem was using a external editor to remove the > recursive import. > The same seems to happen when we import file A on file B, and import file B > on file A. This bug hit another user, as mentioned in this thread: http://www.eclipse.org/forums/index.php?t=rview&goto=899646 I've committed a fix in SVN r1919. I've added getParent/setParent methods to the IEolLibraryModule interface, which is the one that handles the imports, and a getSourceURI to the IModule interface. EolImport will try to look first for the script that is to be imported among its ancestors: if it finds it, it will reuse it instead of loading it again. That should work with any kind of circular or recursive import. I've also added tests for: 1. Script tries to import itself. 2. Script A imports B and B imports A. 3. Script A imports B, B imports C and C imports A.
Fixed in 1.0