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 119974 - Generate Rails Project error when creating new Ruby on Rails project from Beta 2 zip
Summary: Generate Rails Project error when creating new Ruby on Rails project from Bet...
Status: RESOLVED WORKSFORME
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-24 23:43 UTC by Chris Kutler
Modified: 2007-10-25 18:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Kutler 2007-10-24 23:43:30 UTC
Operating system Windows XP

1. Download Ruby Only zip file from http://download.netbeans.org/netbeans/6.0/beta2/zip/  (NetBeans IDE 6.0 Beta 2
(Build 200710212201)). Unzip and run NetBeans from this unzipped version.

2. Choose File > New Project 

3. Select Ruby and Select Ruby on Rails Application. Click Finish.

The Generate Rails Project window opens and displays this message:

:1: C:/Program Files/NetBeans Ruby 6.0 Beta 2/ruby1/jruby-1.0.1/lib/ruby/site_ruby/1.8/rubygems.rb:461: syntax error,
expecting	'\n'	';'	kCLASS	kMODULE	kDEF	kUNDEF	kBEGIN	kRESCUE	kENSURE	kEND	kIF	kUNLESS	kTHEN	kELSIF	kELSE	kCASE
kWHEN	kWHILE	kUNTIL	kFOR	kBREAK	kNEXT	kREDO	kRETRY	kRETURN	kYIELD	kSUPER	kSELF	kNIL	kTRUE	kFALSE	kNOT	kALIAS	kDEFINED
klBEGIN	klEND	k__LINE__	k__FILE__	tIDENTIFIER	tFID	tGVAR	tIVAR	tCONSTANT	tCVAR	tNTH_REF	tBACK_REF	tINTEGER	tFLOAT
tUPLUS	tUMINUS	tUMINUS_NUM	tCOLON3	tLPAREN	tLPAREN_ARG	tLBRACK	tLBRACE	tSTAR	tTILDE	tBANG	tSYMBEG	tSTRING_BEG
tXSTRING_BEG	tREGEXP_BEG	tWORDS_BEG	tQWORDS_BEG but found end-of-file instead (SyntaxError)

        from :1:in `require'
        from :1


In the Projects window, the only folder that gets created for the project is the RSpec folder.

I do not get this error using my Java EE NetBeans Beta 2, which I installed using the installer (not the zip) and for
which I added the necessary plugins.
Comment 1 Jiri Skrivanek 2007-10-25 09:38:46 UTC
I cannot reproduce with the same environment. Please, could you check that the following file is correct?

C:/Program Files/NetBeans Ruby 6.0 Beta 2/ruby1/jruby-1.0.1/lib/ruby/site_ruby/1.8/rubygems.rb


Product Version: NetBeans IDE 6.0 Beta 2 (Build 200710212201)
NetBeans home: C:\Program Files\NetBeans Ruby 6.0 Beta 2
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Userdir: C:\Documents and Settings\js103526\.netbeans\6.0beta2
Comment 2 Chris Kutler 2007-10-25 16:53:18 UTC
When you say "check if the file is correct" can you explain how I do that. I verified that the file exists.
There is a C:/Program Files/NetBeans Ruby 6.0 Beta 2/ruby1/jruby-1.0.1/lib/ruby/site_ruby/1.8/rubygems.rb.
It is 15 KB. Oddly, there is also a ubygems.rb file of 1 kb. But that is true for the Java EE download
to which I installed the Ruby packs as well. And that version works ok.

  Product Version         = NetBeans IDE 6.0 Beta 2 (Build 200710212201)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05; Sun Microsystems Inc.
  Java Home               = C:\Program Files\Java\jdk1.6.0_02\jre
  System Locale; Encoding = en_US (nb); Cp1252
  Home Directory          = C:\Documents and Settings\HP_Administrator
  Current Directory       = C:\Program Files\NetBeans Ruby 6.0 Beta 2
  User Directory          = C:\Documents and Settings\HP_Administrator\.netbeans\6.0Rubybeta2

I will download another zip and try it again. 

Comment 3 Jiri Skrivanek 2007-10-25 17:00:47 UTC
Please, could you compare C:/Program Files/NetBeans Ruby 6.0 Beta 2/ruby1/jruby-1.0.1/lib/ruby/site_ruby/1.8/rubygems.rb
with rubygems.rb in installation which works for you. My rubygems.rb have 15196 bytes.
Comment 4 Chris Kutler 2007-10-25 17:07:33 UTC
I downloaded and installed again. This time I was able to create a Rails project. Perhaps I lost some bits
yesterday's download.