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 99110 - Cannot refresh available gems
Summary: Cannot refresh available gems
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
: 99111 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-27 12:42 UTC by Jiri Skrivanek
Modified: 2007-07-03 14:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
gem.bat (395 bytes, application/octet-stream)
2007-03-27 15:56 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2007-03-27 12:42:04 UTC
It is not possible to list available gems. To reproduce:

- open Tools|Ruby Gem Manager
- click Install New but nothing is found (proxy is set properly) and the
following message is in the description field:

:[-1,-1]:[0,0]:
D:\Development\builds\070327\netbeans\ruby1\jruby-0.9.8\bin\gem.bat:0: syntax
error, expecting	end-of-file	'\n'	','	';'	'='	'?'	'['	kRESCUE	kENSURE	kEND
kELSIF	kELSE	kWHEN	kAND	kOR	kIF_MOD	kUNLESS_MOD	kWHILE_MOD	kUNTIL_MOD
kRESCUE_MOD	tPOW	tCMP	tEQ	tEQQ	tNEQ	tGEQ	tLEQ	tANDOP	tOROP	tMATCH	tNMATCH
tDOT	tDOT2	tDOT3	tLSHFT	tRSHFT	tCOLON2	tOP_ASGN	tRPAREN	tSTAR2	tAMPER2
tPERCENT	tDIVIDE	tPLUS	tMINUS	tLT	tGT	tPIPE	tCARET	tRCURLY but found tIDENTIFIER
instead (SyntaxError)

Build 20070327-0536, Ruby 0.47.0, JDK1.5.0_11, WindowsXP.
Comment 1 Torbjorn Norbye 2007-03-27 15:47:57 UTC
Can you attach your gem.bat file?
D:\Development\builds\070327\netbeans\ruby1\jruby-0.9.8\bin\gem.bat
Comment 2 Jiri Skrivanek 2007-03-27 15:56:05 UTC
Created attachment 40042 [details]
gem.bat
Comment 3 Torbjorn Norbye 2007-03-27 15:58:12 UTC
Actually, never mind - from inspecting the code I see the problem. On Windows it was trying to execute 
the gem.bat file as a Ruby script. Fixed in 0.48.
Comment 4 Torbjorn Norbye 2007-03-27 15:58:50 UTC
*** Issue 99111 has been marked as a duplicate of this issue. ***
Comment 5 Jiri Skrivanek 2007-03-29 13:04:29 UTC
Verified.
Comment 6 Jiri Kovalsky 2007-07-03 14:08:33 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 7 Jiri Kovalsky 2007-07-03 14:37:04 UTC
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.