History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RUBY-240
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Normal Normal
Assignee: Oleg Shpynov
Reporter: Jonathan Gordon
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Ruby

Error parsing files in directories with symlinks: infinite recursive loop

Created: 30 Jan 07 22:22   Updated: 22 Aug 07 15:20
Component/s: Parsing
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
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)

Build: 0.1
Severity: Extreme


 Description  « Hide
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!



 All   Comments   Work Log   Change History      Sort Order:
Jonathan Gordon - 13 Feb 07 21:04
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 - 20 Feb 07 00:56
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 - 22 Aug 07 15:20
not a plugin error