Code Monkey home page Code Monkey logo

Comments (12)

jugyo avatar jugyo commented on July 16, 2024

Thank you for interest in earchquake.gem :)
Maybe you need to recompile ruby to use readline.
If you are using rvm, please see the "Install" in the README to do it: https://github.com/jugyo/earthquake

Best regards

from earthquake.

lukaszkorecki avatar lukaszkorecki commented on July 16, 2024

It looks like a readline problem. Here's what I did:

  • removed ruby-1.9.2 and installed it as per readme (somehow I missed that before :-( )
  • just in case reinstalled all the gems
  • starting earthquake, problem persists

then I noticed something - when I press tab key, I get an error notification (it's too big to be shown in growl). So I've added log-to-file method to get some info.

After some digging around I've isolated the code which causes problems - it's the readline autocompletion stuff. The error being thrown is:

invalid byte sequence in UTF

Wrapping that part around begin..rescue..end fixes earthquake.

I'll see whether I can create a patch which fixes this issue and preserves autocompletion feature.

from earthquake.

jugyo avatar jugyo commented on July 16, 2024

Sorry, the problem of autocompletion is maybe my bug.

from earthquake.

lukaszkorecki avatar lukaszkorecki commented on July 16, 2024

Right... If you want I can keep poking around and see if I can fix it.

For now disabling autocompletion will make earthquake usable (I'm not sure how many users this affects - it might be just OSX thing).

from earthquake.

dakrone avatar dakrone commented on July 16, 2024

Is there a way to disable autocompletion easily in order to make earthquake refresh on OSX?

from earthquake.

lukaszkorecki avatar lukaszkorecki commented on July 16, 2024

@dakrone - I found a (possible) solution to the problem:
check if you have any ncurses or readline related libraries installed via macports and/or homebrew. I've been cleaning up my environment and I found that removing ncursesw package fixed my readline problems - which caused Earthquake to misbehave.

from earthquake.

dakrone avatar dakrone commented on July 16, 2024

:-/ I have ncursesw through homebrew, however I need it for other programs to work. Guess I will have to wait until it's fixed in Earthquake.

from earthquake.

lukaszkorecki avatar lukaszkorecki commented on July 16, 2024

@dakrone - try it anyway - you can always reinstall it later.

Before uninstalling ncursesw I couldn't make mcabber to work (or compile - it was pretty random). Once I removed it it started working.

from earthquake.

dakrone avatar dakrone commented on July 16, 2024

I attempted to uninstall ncursesw, but earthquake still didn't stream updates.

from earthquake.

bonsaiben avatar bonsaiben commented on July 16, 2024

I am also having this issue with OSX, installed according to the README.

from earthquake.

danishkhan avatar danishkhan commented on July 16, 2024

Same, here I removed 1.9.2 and installed it the way as suggested in the README.

from earthquake.

no6v avatar no6v commented on July 16, 2024

I'm feeling that readline functionality should be ok as a prerequisite for using Earthquake.
Almost users must depend on not only completion, line editing, history (including incremental search) and so on,
but also buffer refreshing and/or to get cursor point internally.

To conclude, I guess we had better apply #105 :).

FYI, readline.so before r34391 (yes, it's 2.0.0dev world) does not respect the encoding of completion candidates.
The error mentioned above by @lukaszkorecki may be fixed in trunk of ruby.
http://bugs.ruby-lang.org/issues/5941

Thanks,

from earthquake.

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.