rubycomplete_rails no longer working #207

Closed
tcuthbert opened this Issue Mar 23, 2014 · 3 comments

Projects

None yet

4 participants

@tcuthbert

Hi,

After migrating to a new system it seems I'm unable to complete my rails code.
I'm using rvm to manage my ruby+gemsets.
My vimrc can be found here https://raw.githubusercontent.com/tcuthbert/dotfiles/master/vimrc

Let me know if there's anymore info I can provide.

output of :message after trying omnifunc

Your Ruby version is 2.1.0, but your Gemfile specified 2.1.1

I can get completion working again if I change the rails version in my Gemfile to the system version. Is it possible that rubycomplete is not rvm aware?


ruby version = 2.1.1
tom@dev> rvm --verrsion
rvm 1.25.21 (stable) by Wayne E. Seguin wayneeseguin@gmail.com, Michal Papis mpapis@gmail.com [https://rvm.io/]

tom@dev> rails --version
Rails 4.0.1

@alexcp
alexcp commented May 2, 2014

I think vim use bin/sh for shell command by default which doesn't load rvm.

You can try adding this line to your vimrc
set shell=bash

@graywh
graywh commented May 3, 2014

No, Vim uses your $SHELL, but doesn't load your interactive config (.bashrc or .zshrc). If you're starting Vim from the shell where RVM is working, it should just work. Otherwise, you might want https://github.com/tpope/vim-rvm.

@tcuthbert

This issue was actually caused by rvm guessing the environment from the
gemfile. After creating an rvmrc it worked again.

Tom.
On 03/05/2014 10:26 PM, "Will Gray" notifications@github.com wrote:

No, Vim uses your $SHELL, but doesn't load your interactive config
(.bashrc or .zshrc). If you're starting Vim from the shell where RVM is
working, it should just work. Otherwise, you might want
https://github.com/tpope/vim-rvm.


Reply to this email directly or view it on GitHubhttps://github.com/vim-ruby/vim-ruby/issues/207#issuecomment-42106229
.

@dkearns dkearns added the completion label Sep 14, 2015
@dkearns dkearns closed this Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment