Git Product home page Git Product logo

Comments (8)

benmills avatar benmills commented on May 21, 2024

I had a similar problem on Arch with ruby 1.9.x and vim. It seems like there is a problem with vim and versions of ruby above 1.9. If you google for that error, NoMethodError: undefined method 'flush' for #<Object:0x9d136d0>, you'll find quite a bit about trying to get vim to work with ruby 1.9.

What I did to fix on arch was install ruby 1.8 and then compile vim myself pointing to vim 1.8. Let me know if you're able to do something like that or if you feel this is truly isolated to vimux.

from vimux.

maksimr avatar maksimr commented on May 21, 2024

I recompile vim with ruby1.8 and now it's work.
Thanks!

from vimux.

benmills avatar benmills commented on May 21, 2024

Excellent! I'm glad that worked for you.

from vimux.

cehoffman avatar cehoffman commented on May 21, 2024

I've also ran into this and instead of going about all the recompile I added the following in either vimrc or into vimux itself.

ruby << EOF
class Object
  def flush; end unless Object.new.respond_to?(:flush)
end
EOF

I came to this solution after watching what flush was getting as args (nothing) and determined it did not have an effect on getting results from tmux. At least not as of yet.

from vimux.

benmills avatar benmills commented on May 21, 2024

I'm going to reopen this and investigate adding that code to vimux.

from vimux.

smerrill avatar smerrill commented on May 21, 2024

The above workaround worked for me as well. I can do a pull request if you would like.

from vimux.

benmills avatar benmills commented on May 21, 2024

That would be great.

from vimux.

scotthelm avatar scotthelm commented on May 21, 2024

the above solution worked for me as well. I added the monkey patch to my .vimrc file. Works like a champ.

from vimux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.