Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Warning messages about mismatched indentation

#10

I have the following program, named hello.rb (you may recognise this - it is on page 15 of the FXRuby book):

require 'fox16' 
app = Fox::FXApp.new 
main = Fox::FXMainWindow.new(app, "Hello World", :width => 200, :height => 100) 
app.create 
main.show(Fox::PLACEMENT_SCREEN) 
app.run

When I run this on Red Hat EnterPrise Linux 5.3, 64-bit, with Ruby 1.9.1, FXRuby 1.16.19 and FOX 1.6.36, I get the following
warnings:

[toll@localhost ~]$ ruby -w hello.rb 
/usr/local/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/lib/fox16/core.rb:209: warning: mismatched indentations at 'end'
    with 'def' at 207
/usr/local/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/lib/fox16/core.rb:210: warning: mismatched indentations at 'end'
    with 'class' at 205
[toll@localhost ~]$

The offending code (lines 205-209 of core.rb) is:

class FXScrollArea 
  # Returns a reference to the scroll corner (an FXScrollCorner instance) for this window. 
  def scrollCorner 
    verticalScrollBar.next 
  end 
end

Note that I do not get these warnings with Ruby 1.8.6-111, FXRuby 1.16.16 under Windows XP.

On the Linux system, I installed FOX and Ruby by downloading the tarball sources, and compiling them. The FXRuby was
then installed using gem install fxruby --remote, as shown on page 25 of the FXRuby book.

Reported by lyle (at lylejohnson) · November 11th, 2009 @ 06:35 PM

State: new
Milestone: 1.6.21
Assigned to: lyle (at lylejohnson) lyle (at lylejohnson)

Activity

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.