#10 new
lyle (at lylejohnson)

Warning messages about mismatched indentation

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

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.

Comments and changes to this ticket

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 »

FXRuby is a library for developing powerful and sophisticated cross-platform graphical user interfaces (GUIs) for your Ruby applications. It’s based on the FOX Toolkit, a popular open source C++ library developed by Jeroen van der Zijp. What that means for you as an application developer is that you’re able to write code in the Ruby programming language that you already know and love, while at the same time taking advantage of the performance and functionality of a featureful, highly optimized C++ toolkit.

Shared Ticket Bins

People watching this ticket

Tags

Pages