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

Key: RUBY-1179
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Oleg Shpynov
Reporter: Robert Schröder
Votes: 0
Watchers: 0
Operations

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

Load Path evaluation $:

Created: 15 Nov 07 16:13   Updated: 20 Nov 07 13:38
Component/s: Parsing
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment:
Win XP Pro SP2
Java 6 Update 3
Idea 7.0.1

Build: 12,382


 Description  « Hide
One of my ruby files (bar.rb) starts likes this:
$: << File.join(File.dirname(__FILE__),'..')

require 'rlib/foo

My directory structure looks like this:

parent_folder

--rlib
  --foo.rb
--build
--bar.rb

bar.rb requires foo.rb. The folder of foo.rb is added to the load path but the require is marked red: "No such file to load".



 All   Comments   Work Log   Change History      Sort Order:
Robert Schröder - 15 Nov 07 16:21
Here is my second try to show the folder structur:
parent_folder
 |--rlib
 |    |--foo.rb
 |
 |--build
      |--bar.rb

Oleg Shpynov - 18 Nov 07 10:47
Hi, Robert!
We don`t support yet such a loadpath extending using $: global variable.

Robert Schröder - 20 Nov 07 13:38
Hi Oleg!
I can live with this bug but it is sometimes very annoying...