#11 new
bahuvrihi

require path nonsense

Reported by bahuvrihi | 2009-02-17 11:50:22 UTC

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 2009-05-25 11:53:27 UTC

    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