tpope / vim-rails

rails.vim: Ruby on Rails power tools
http://www.vim.org/scripts/script.php?script_id=1567
4.1k stars 383 forks source link

Unknown function: rails#ruby_setup #522

Closed cweilemann closed 6 years ago

cweilemann commented 6 years ago

After upgrading yesterday, opening Ruby files leads to:

Error Detected while processing .../vim-rails/after/ftplugin/ruby/rails.vim:
line 5:
E117: Unknown function: rails#ruby_setup

Rolling back to a prior commit doesn't seem to help. Is there something else I'm missing?

tpope commented 6 years ago

You'll need to restart Vim (or reload autoload/rails.vim if you can manage that).

cweilemann commented 6 years ago

I have restarted Vim and tried reloading the autoload/rails.vim file...

tpope commented 6 years ago

Hmm, maybe you have multiple versions installed and they are interacting inappropriately. Check :echo findfile('autoload/rails.vim', &rtp, -1).

cweilemann commented 6 years ago

That was it. It was interacting with the janus (https://github.com/carlhuda/janus) install of your gem. Thanks @tpope :)