Skip to content

rufo fails to run after triggering rails omnicompletion #22

@ralfthewise

Description

@ralfthewise

Repro:

[tim@hood]$ cat <<EOF > /tmp/vimrc
set nocompatible
call plug#begin()
Plug 'ruby-formatter/rufo-vim'
call plug#end()
syntax on
filetype on
filetype indent on
filetype plugin on
autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1
EOF

[tim@hood]$ vim -u /tmp/vimrc config/initializers/kaminari_config.rb

# trigger omnicompletion somewhere by entering edit mode and hitting CTRL-x CTRL-o
# then try issuing the :Rufo command - you'll see this error output:
/usr/local/rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/rubygems_integration.rb:458:in `block in replace_bin_path': can't find executable rufo for gem rufo. rufo is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception)
        from /usr/local/rvm/gems/ruby-2.5.1/gems/bundler-1.16.1/lib/bundler/rubygems_integration.rb:478:in `block in replace_bin_path'
        from /usr/local/rvm/gems/ruby-2.5.1/bin/rufo:27:in `<main>'
        from /usr/local/rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:15:in `eval'
        from /usr/local/rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:15:in `<main>'

I have rufo installed globally, not in the bundle. I use junegunn/vim-plug for vim plugin management, but I'm guessing that has no bearing on this issue. Prior to triggering omnicompletion rufo runs fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions