Monday, December 31, 2018

ruby loading module cannot be located

Hi,


I need to use FileUtils ruby lib module.


Error detected while processing function explorer#UnitePaster:
line 36:
LoadError: cannot load such file -- fileutils
eval:4:in `require'


It seems that this module is not recognized and the path not well feeded.
If any of you can help
Thank you
NiVa




Code

ruby << EOF

libx = File.expand_path(VIM::evaluate('g:Ruby_libpath'), __FILE__)
$LOAD_PATH.unshift(libx) unless $LOAD_PATH.include?(libx)
require "fileutils"

EOF

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment