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 168006

Summary: Error: Unexpected tIDENTIFIER
Product: ruby Reporter: hedge_hog <hedge_hog>
Component: CodeAssignee: Erno Mononen <emononen>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Syntax error screen shot

Description hedge_hog 2009-07-02 06:26:54 UTC
Following code, see attached image, shows error for code that should be legal.  Original context was 'exit(0)' in place
of the puts(...) which I used just to emphasize the error.

HTH?

begin
  require 'something'
rescue LoadError
  puts <<-EOS
To use rspec for testing you must install rspec gem:
    gem install rspec
EOS
 puts('NB 6.7 hints: Unexpected tIDENTIFIER')
end
Comment 1 hedge_hog 2009-07-02 06:28:28 UTC
Created attachment 84280 [details]
Syntax error screen shot
Comment 2 hedge_hog 2009-07-02 06:30:01 UTC
Just setting the platform and OS values.
Comment 3 Erno Mononen 2009-07-02 07:25:51 UTC
This is fixed already, but unfortunately the fix didn't make it to 6.7 -- patch 1 for 6.7 will deliver the fix though. 
Thanks for the report in any case.

*** This issue has been marked as a duplicate of 166713 ***