FS#19954 - [vim] Ruby support is broken

Attached to Project: Arch Linux
Opened by Robert Gleeson (robgleeson) - Thursday, 24 June 2010, 16:21 GMT
Last edited by Jan Alexander Steffens (heftig) - Tuesday, 18 January 2011, 01:57 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dan Griffiths (Ghost1227)
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
Ruby support for the `vim` package(vim and gvim) appears to be broken.

Additional info:
* (g)vim 7.2-1

Steps to reproduce:
To reproduce, send vim the following command:
:ruby require('rubygems')
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Tuesday, 18 January 2011, 01:57 GMT
Reason for closing:  Fixed
Additional comments about closing:  Should be fixed in gvim 7.3.102-1
Comment by Karol Błażewicz (karol) - Thursday, 24 June 2010, 17:09 GMT
I'm a noob, but can you test ruby w/o vim to see whether it's vim or ruby?
Comment by Renan T. Fernandes (ShadowBelmolve) - Thursday, 24 June 2010, 17:55 GMT
I've the same problem, here rubygems not load on gvim but load ok w/o vim
Comment by Robert Gleeson (robgleeson) - Thursday, 24 June 2010, 18:46 GMT
@karol

require('rubygems') works without a problem outside gvim.
If you require() files other than `rubygems`, they seem to load fine although I have just tried with a single file in my working directory.
This bug affects the console and GTK version of vim for me but both were installed through the same package(gvim).

Thanks,
Rob
Comment by Robert Gleeson (robgleeson) - Thursday, 24 June 2010, 18:53 GMT
Hm, as Ruby 19 is being used, you do not need require('rubygems'). Although, require('rubygems') should just return false.
Comment by Thomas Dziedzic (tomd123) - Monday, 06 December 2010, 02:37 GMT
status?
Comment by Renan T. Fernandes (ShadowBelmolve) - Tuesday, 07 December 2010, 01:09 GMT
Still broken

require 'rubygems'
NameError: uninitialized constant Gem::QuickLoader

require 'rake'
NoMethodError: undefined method 'synchronize' for #<Mutex:0x000000026c84f8>

require 'rdoc'
ok

`anything`
NoMethodError: undefined method `flush` for #<Object:0x00000000b55748>
Comment by Thomas Dziedzic (tomd123) - Tuesday, 28 December 2010, 04:32 GMT
4868 7.3.088 Ruby can't load Gems sometimes, may cause a crash

Please update the vim version to >= 7.3.88 in repos and see if it fixes this bug finally.

Loading...