#11 new
bahuvrihi

require path nonsense

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

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.

Comments and changes to this ticket

  • bahuvrihi

    bahuvrihi May 25th, 2009 @ 11:53 AM

    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.

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Class configurations that map to the command line.

People watching this ticket

Pages