Skip to content

Invalid class or module definition #568

@ghost

Description

I help maintain qtbindings for our COSMOS project. It seems rdoc 6.0.0 is no longer able to parse qtbindings. When I try running it against the code base I get an error on the following line:

module Qt
  class Base
    def **(a)
      return Qt::**(self, a) # <- RDoc 5.1.0 is fine with this, RDoc 6.0.0 is not
    end
  end
end

This is the error reported:

C:\git>rdoc -v
6.0.0

C:\git>rdoc qtbindings\lib\Qt\qtruby4.rb
Parsing sources...
100% [ 1/ 1]  qtbindings\lib\Qt\qtruby4.rb
RDoc::Parser::Ruby failure around line 100 of
qtbindings\lib\Qt\qtruby4.rb

Before reporting this, could you check that the file you're documenting
has proper syntax:

  C:/Ruby242-x64/bin/ruby.exe -c qtbindings\lib\Qt\qtruby4.rb

RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.

The internal error was:

        (RDoc::Error) Invalid class or module definition: Qt

uh-oh! RDoc had a problem:
Invalid class or module definition: Qt

run with --debug for full backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions