Skip to content

Loading problem neovim #29

Open
Open
@mikezaby

Description

@mikezaby

I am using direnv with a setup like this https://juliu.is/ditch-your-version-manager/
I have a Ruby On Rails project and I think that somethink not loading correctly in neovim, while with vim is working properly.

I am running the following commands to demonstrate the problem

!which ruby
/nix/store/fv8mr37kp374slp1b8dq231wqprb85fa-ruby-2.7.5/bin/ruby
:!which bundle
/nix/store/fv8mr37kp374slp1b8dq231wqprb85fa-ruby-2.7.5/bin/bundle
:!bundle exec rails
/nix/store/fv8mr37kp374slp1b8dq231wqprb85fa-ruby-2.7.5/lib/ruby/2.7.0/bundler/definition.rb:495:in `validate_ruby!': Your Ruby version is 2.6.8, but your Gemfile specified 2.7.5 (Bundler::RubyVersionMismatch)
        from /nix/store/fv8mr37kp374slp1b8dq231wqprb85fa-ruby-2.7.5/lib/ruby/2.7.0/bundler/definition.rb:470:in `validate_runtime!'
        from /nix/store/fv8mr37kp374slp1b8dq231wqprb85fa-ruby-2.7.5/lib/ruby/2.7.0/bundler.rb:143:in `setup'
        from /nix/store/fv8mr37kp374slp1b8dq231wqprb85fa-ruby-2.7.5/lib/ruby/2.7.0/bundler/setup.rb:20:in `block in <top (required)>'
        from /nix/store/fv8mr37kp374slp1b8dq231wqprb85fa-ruby-2.7.5/lib/ruby/2.7.0/bundler/ui/shell.rb:136:in `with_level'
        from /nix/store/fv8mr37kp374slp1b8dq231wqprb85fa-ruby-2.7.5/lib/ruby/2.7.0/bundler/ui/shell.rb:88:in `silence'
        from /nix/store/fv8mr37kp374slp1b8dq231wqprb85fa-ruby-2.7.5/lib/ruby/2.7.0/bundler/setup.rb:20:in `<top (required)>'
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'

shell returned 1

For some reason is trying to use system ruby

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