AndrewRadev / vimrunner

Control a vim instance through ruby code
MIT License
238 stars 13 forks source link

When used with RSpec, OS X Mountain Lion kernel panics #29

Closed moll closed 8 years ago

moll commented 11 years ago

That's a bit of a crazy issue and quite definitely not the fault of Vimrunner, but checking to see if anyone else experiences something similar and whether they've found a workaround.

With the following .rspec file:

--default-path test
--pattern test/**/*_test.rb
--require ./test/rspec

And with the following test/rspec.rb file:

require "vimrunner"

RSpec.configure do |config|
  config.before(:suite) do
    @vim = Vimrunner.start
  end

  config.after(:suite) do
    @vim.kill if @vim
  end
end

Every time I run rspec, the kernel panics with negative open count and lists Vim as the process. Running vimrunner on the command line itself does not.

AndrewRadev commented 11 years ago

Wow, that's an odd problem. I can't really think of anything that Vimrunner is doing that might cause a kernel panic. I don't have a Mac, so I can't try to reproduce this, either. I'll leave the issue open in the hope that someone else might have an idea.

moll commented 11 years ago

I originally thought it might have something to do with at_exit and how external processes might be killed before at_exit fires, but seeing that MiniTest also uses it and it works there, I'm not so sure.

But thanks, hopefully someone using a Mac comes to check and we can get to the bottom of this.

AndrewRadev commented 8 years ago

It's been a while, and it doesn't seem like there's anybody out there that could help :). I'll go ahead and close this issue, since there's not much I can do about it.