Closed bytesource closed 11 years ago
Thanks for the reporting. Please install rubygems
package. For example, if you're using Debian/Ubuntu you can do it with command
apt-get install rubygems
After that make sure you installed necessary gem to process appropriate format (the plugin will point you to what you should install exactly).
You're not the first who reports this kind of issue, so I'll keep it open until I fix the plugin to display a message for user to install rubygems
package.
Thanks. Sergey.
Thanks for your reply.
I first installed rubygems
$ sudo apt-get install rubygems
and then bluecloth
$ gem install bluecloth
Unfortunately, now when I press Leader
P, the message Preview is shown for a second before Vim shuts down. I tried with several README.md
files, but Vim always crashes.
Do you have an idea what I might have done wrong?
Stefan
Have no ideas. Can you please provide information about your environment(OS, ruby version, version of Vim, etc) so I can reproduce the error?
Thanks. Sergey.
Here is some information about the enviromnment.
Kubuntu 11.10
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 6 2011 10:34:05) Included patches: 1-154
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
Hope this helps.
Thanks. I'll try it on virtual box.
So does your Vim just crashes?
I can't reproduce this.
Please see which version of ruby uses your Vim (it can be different than default in your system). Type in Vim:
:ruby puts RUBY_VERSION
Also.. I remember there was a bug with ruby 1.9 in Vim. Ruby 1.9. wasn't able to perform any kind of fork, but it seems to be fixed know.
Try to do something like this: :ruby system "pwd"
. (system
implicitly forks a process) If this will not crash you Vim, then it's something different.
You are right, the Ruby version Vim depends upon is different from the one I am using. :ruby puts RUBY_VERSION
returns 1.8.7.
As for :ruby system "pwd"
, this command does not crash my Vim.
Hm.. Have no more ideas. Does Vim provide some output when it crashes?
"Does Vim provide some output when it crashes?"
No, unfortunately it does not.
Seems today I got similar issue when I switched to ruby1.9 with RVM.
Could you please try the next:
gem install bluecloth
I just did the following:
Close all open Vim windows.
$ rvm use ruby-1.8.7-p334
Using /home/sovonex/.rvm/gems/ruby-1.8.7-p334
$ gem install bluecloth
Fetching: bluecloth-2.2.0.gem (100%)
Building native extensions. This could take a while...
Successfully installed bluecloth-2.2.0
Open markdown document with Vim, press Leader
P:
Vim crashes
Unfortunately is does not seem to work.
Thanks for trying.
not sure if it makes a different anymore, but I have the same problem on Chrubuntu 12.04
@bytesource I came across another plugin which so crashes and there is an explanation that it may happen duty to ruby version incompatibility
@ilyakatz Thanks for pointing me to this possible source of error.
@ilyakatz Thanks for the info!
So I'm closing this issue.
I get the following error when pressing
Leader
P:After updating the plugin the error message still comes up.
Stefan