Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby warnings fixed, such as: #87

Closed
wants to merge 1 commit into from
Closed

Ruby warnings fixed, such as: #87

wants to merge 1 commit into from

Conversation

ralfclaassens
Copy link

  • warning: loading in progress, circular require considered harmful
  • warning: instance variable @always_trace not initialized

- warning: loading in progress, circular require considered harmful
- warning: instance variable @always_trace not initialized
@@ -1,7 +1,4 @@

require 'commander'
require 'commander/delegates'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a potential problem because the readme suggests just using require 'commander/import' in programs.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe these requires can be conditional?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, commander/import shouldn't be loaded by require 'commander' so maybe there's actually no circular require in this file.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, missed that. But I'm sure there is a circular require. I'll investigate this.

@ggilder
Copy link
Collaborator

ggilder commented Jan 13, 2015

Looks good except for the change to commander/import

@ggilder
Copy link
Collaborator

ggilder commented Feb 8, 2015

Can you give an example of how the warning can be triggered? I haven't seen it running specs or programs. Let me know and we can reopen this.

@ggilder ggilder closed this Feb 8, 2015
@ralfclaassens
Copy link
Author

The warning can be triggered by executing 'ruby -W < ruby-app-which-requires-commander >'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants