GithubHelp home page GithubHelp logo

Comments (6)

gauteh avatar gauteh commented on July 17, 2024

Did you install the ncursesw-sup gem before installing ncurses with brew?

What version of ncurses do you have?

from sup.

stbose avatar stbose commented on July 17, 2024

I wasn't sure about the order so I gem uninstall ncursesw-sup, cloned the git, and ran bundle install. during the dependency check, it re-installed the ncursesw-sup gem and successfully built. but, i got the same error at runtime.

The homebrew install of ncurses is 5.9.

from sup.

gauteh avatar gauteh commented on July 17, 2024

Hm, could you try to build the ncursesw-sup gem from source: https://github.com/sup-heliotrope/ncursesw-ruby

after clone:

ruby extconf.rb
make
gem build ncursesw.gemspec
gem install ncursesw-sup-1.3.1.1.gem

please post the output of everything. The missing type is part of form.h which hopefully shows up in extconf.rb output.

Also: please verify that the homebrew version of ncurses is being used, try ncursesw5-config --version or similar and check the path of the binary.

from sup.

stbose avatar stbose commented on July 17, 2024

I got it to work. I built the gem as you suggested, but still no luck. It turns out I had a ncursesw (1.2.4) gem installed on my system-- once I uninstalled that, then sup ran fine.

Thanks for the help.

from sup.

stbose avatar stbose commented on July 17, 2024

Sorry to ask again-- I got sup built and installed on Mac OS X, and it loads okay, but some of the features have a bit of difficulty. For instance, if you press / it shows the prompt to search. When you type any characters, they do not appear and when is pressed, sup crashes with the following dump

--- NoMethodError from thread: main
undefined method `unpost_form' for nil:NilClass
~/tmp/sup/lib/sup/textfield.rb:57:in `deactivate'
~/tmp/sup/lib/sup/buffer.rb:622:in `block in ask'
<internal:prelude>:10:in `synchronize'
~/tmp/sup/lib/sup/buffer.rb:27:in `sync'
~/tmp/sup/lib/sup/buffer.rb:621:in `ask'
~/tmp/sup/lib/sup/util.rb:573:in `method_missing'
~/tmp/sup/lib/sup/modes/scroll_mode.rb:82:in `search_in_buffer'
~/tmp/sup/lib/sup/mode.rb:59:in `handle_input'
~/sup/lib/sup/buffer.rb:274:in `handle_input'
bin/sup:266:in `<module:Redwood>'
bin/sup:74:in `<main>'

Please let me know fi this is insufficient information to debug. I will provide more.

from sup.

gauteh avatar gauteh commented on July 17, 2024

No problem, this is a different error. So thanks for posting it. It should however be in a separate bug report. It seems to be a ncurses problem. Are you sure you got the latest ncursesw-sup gem installed, and if you run rvm or similar, could you please try and run brew doctor before running sup and try again (to make sure the brew ncurses version is being used)?

from sup.

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.