This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 93287

Summary: Opening particular files make IDE unsable
Product: ruby Reporter: Martin Krauskopf <mkrauskopf>
Component: CodeAssignee: issues@ide <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: exceptions.txt

Description Martin Krauskopf 2007-01-26 11:22:03 UTC
build 242, Linux

1) Create new Ruby Project
2) Outside of NetBeans create ahoj.rb in the source root of the project you
   just created with the following content:
=====================
    #!/usr/bin/env ruby

    class A

      def aaa(other)
        $stderr.puts "other: #{other}"
      end

    end
=====================

3) Return to the IDE and open ahoj.rb

IDE becomes unusable due to still being thrown exception (attached).
Comment 1 Martin Krauskopf 2007-01-26 11:22:54 UTC
Created attachment 37709 [details]
exceptions.txt
Comment 2 Torbjorn Norbye 2007-01-26 17:39:55 UTC
This is "fixed" in build #243.  I fixed it by disabling lexing of Ruby code
within literal strings, which is what is causing the problem. That has been
working until recently; it is now throwing exceptions inside the editor/lexer
area. I need to work with the editor guys to figure out what changed and why. I
have filed a new issue, issue 93341, to track getting this functionality back,
but for now disabling highlighting seems like a good idea since it is much less
severe than an IDE with infinite exception looping.
Comment 3 Jiri Kovalsky 2007-07-03 14:12:50 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 4 Jiri Kovalsky 2007-07-03 14:43:37 UTC
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.
Comment 5 Radim Roska 2007-08-13 15:45:29 UTC
VERIFIED