Project
Ruby
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Won't fix
Assignee
Oleg Shpynov
Subsystem
Parsing
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Jonathan Gordon
    5 years ago (30 Jan 2007 23:22)
  • Updated by   Sergey Zhukov
    8 months ago (10 May 2011 14:22)
  • Jira: RUBY-240
    (history, comments)
 
RUBY-240 Error parsing files in directories with symlinks: infinite recursive loop
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
I created a new Ruby project from an existing code base. I have the vendor directory set up as follows:

  1. ls -l vendor:
lrwxrwxrwx 1 jgordon jgordon 29 2007-01-15 10:32 actionmailer -> /usr/share/rails/actionmailer
lrwxrwxrwx 1 jgordon jgordon 27 2007-01-15 10:32 actionpack -> /usr/share/rails/actionpack
lrwxrwxrwx 1 jgordon jgordon 33 2007-01-15 10:32 actionwebservice -> /usr/share/rails/actionwebservice
lrwxrwxrwx 1 jgordon jgordon 29 2007-01-15 10:32 activerecord -> /usr/share/rails/activerecord
lrwxrwxrwx 1 jgordon jgordon 30 2007-01-15 10:32 activesupport -> /usr/share/rails/activesupport
drwxr-xr-x 7 jgordon jgordon 4096 2007-01-23 15:18 hpricot-0.4-mswin32
drwxr-xr-x 4 jgordon jgordon 4096 2007-01-23 15:18 plugins
lrwxrwxrwx 1 jgordon jgordon 1 2007-01-15 10:32 rails -> .
lrwxrwxrwx 1 jgordon jgordon 25 2007-01-15 10:32 railties -> /usr/share/rails/railties

When the plugin attempts to scan the vendor directory, it gets in an infinite recursive loop when trying to traverse the vendor/rails directory, since it points back to the vendor directory. Is it possible to resolve symlinks before parsing files? Or is this an upstream problem with IntelliJ itself?

Thanks!

Environment: Linux:
Linux kubuntu 2.6.15-23-386 #1 PREEMPT Tue May 23 13:49:40 UTC 2006 i686 GNU/Linux
Java:
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

Issue was resolved
Comments (3)
 
History
 
Linked Issues (?)
 
Jonathan Gordon
  Jonathan Gordon
13 Feb 2007 22:04
4 years ago
Can someone in the developer community please comment on this? I'd love to know how to use the rails plugin without running into this problem.

Thanks,

Jonathan.
AUVRAY
  AUVRAY
20 Feb 2007 01:56
4 years ago
Indeed this is a problematic issue probably linked with IDEA http://www.jetbrains.net/jira/browse/IDEABKL-1280
To bypass this problem you can update your rails, it doesn't create those symlinks anymore.
Oleg Shpynov
  Oleg Shpynov
22 Aug 2007 16:20
4 years ago
not a plugin error