Skip to content

Warnings about constant redefinition when used with Nanoc v4.9.3 #37

Description

@moll

Hey,

I'm not sure whether this is Nanoc's or the Guard plugin's fault, but the latest versions give the following warnings when starting nanoc live:

/home/user/.gem/ruby/2.5.0/gems/nanoc-4.9.3/lib/nanoc/cli/commands/view.rb:18: warning: already initialized constant Nanoc::CLI::Commands::View::DEFAULT_HANDLER_NAME
/home/user/.gem/ruby/2.5.0/gems/nanoc-4.9.3/lib/nanoc/cli/commands/view.rb:18: warning: previous definition of DEFAULT_HANDLER_NAME was here
/home/user/.gem/ruby/2.5.0/gems/nanoc-4.9.3/lib/nanoc/cli/commands/show-plugins.rb:75: warning: already initialized constant Nanoc::CLI::Commands::ShowPlugins::PLUGIN_CLASS_ORDER
/home/user/.gem/ruby/2.5.0/gems/nanoc-4.9.3/lib/nanoc/cli/commands/show-plugins.rb:75: warning: previous definition of PLUGIN_CLASS_ORDER was here
/home/user/.gem/ruby/2.5.0/gems/nanoc-4.9.3/lib/nanoc/cli/commands/show-plugins.rb:81: warning: already initialized constant Nanoc::CLI::Commands::ShowPlugins::PLUGIN_CLASSES
/home/user/.gem/ruby/2.5.0/gems/nanoc-4.9.3/lib/nanoc/cli/commands/show-plugins.rb:81: warning: previous definition of PLUGIN_CLASSES was here

Functionality seems to work though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions