thoughtbot / vim-rspec

Run Rspec specs from Vim
https://robots.thoughtbot.com
MIT License
656 stars 108 forks source link

Not sending commands to iTerm or Terminal in El Capitan #102

Open adamlogic opened 8 years ago

adamlogic commented 8 years ago

Prior to upgrading to OS X El Capitan (10.11.1), I was able to trigger specs from MacVim and have them executed in iTerm 2. Here's the relevant portion of my .vimrc:

Plugin 'thoughtbot/vim-rspec'
if has("gui_macvim")
  let g:rspec_command = "zeus rspec {spec}"
  let g:rspec_runner = "os_x_iterm"
else
  let g:rspec_command = "!zeus rspec {spec}"
endif

After the upgrade, I can trigger specs in terminal Vim, but I cannot trigger them from MacVim. :call RunCurrentSpecFile() (or any of the other spec functions) does nothing. No failure message or any other kind of feedback. No activity in iTerm.

I tried changing let g:rspec_runner = "os_x_terminal", and still no dice.

Note that I did a clean install of El Capitan, so it's entirely possible that I've set something up incorrectly. I'm just not sure where to even look.

Stono commented 8 years ago

I have the same problem - any joy @adamlogic ?

Stono commented 8 years ago

I don't know if this is the same problem, but I updated the following in rspec.vim to fix this. Basically, my files didn't end in _spec, so instead i'm testing the path starts with /spec

function! s:InSpecFile()
   return match(expand("%"), "^spec/") != -1
endfunction
adamlogic commented 8 years ago

Pretty sure it's a different problem. All of my spec files end in _spec. Still no iTerm for me. Thanks, though!