Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

require path nonsense

#11

Require paths are a bit tangled. On windows and fedora, testing provides an error due to:


[option_test.rb]
require  File.join(File.dirname(__FILE__), '../tap_test_helper')
require 'config_parser/option'

Simple require 'config_parser' works.

Reported by bahuvrihi · February 17th, 2009 @ 11:50 AM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. bahuvrihi
    bahuvrihi

    The issue is actually related to autoload. Configurable autoloads ConfigParser. When config_parser/option is required the parser hits 'class ConfigParser' (or something similar) and loads config_parser, which then in turn tries to load option and switch.

    Option is in the process of being loaded so Switch is loaded, which requires Option and you get an error.

    Get rid of autoload... no more problem.

    May 25th, 2009 @ 11:53 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.