Comments
-
Greg Hurrell
Thanks for the report.
I am guessing from the fact that your home directory is a subdirectory of
/home/
, your VIM runtime files are in~/.vim/
, and your extension compiled with an.so
extension, that you probably compiled on some Linux or Linux-like system.I'm actually a little surprised that autoloading just
ext
on its own doesn't work, seeing it picks up the built extension fine on Mac OS X (where it is calledext.bundle
).Will see if I can dynamically detect the extension at runtime and append it so that you don't need to hand-edit those lines like you did.
-
Greg Hurrell
Just did some local testing here and looks like it's not specific to Linux or anything. I can reproduce on Mac OS X as well with Ruby 1.9.1; seems like without the extension
autoload
doesn't work, even thoughrequire
does. -
Greg Hurrell
Ok, this should be fixed now.
Rather than messing with autoload strings at runtime (trying to detect platform, dynamically modifying filename string etc) the simplest and most robust solution was to replace use of
autoload
with good old-fashionedrequire
statements. This should work fine with all versions of Ruby.This will be included in the next release, so going to mark as closed.
-
Greg Hurrell
Status changed:
- From: new
- To: closed
Add a comment
Comments are now closed for this issue.