trogdoro / xiki

A shell console with GUI features
http://xiki.org
Other
3.76k stars 207 forks source link

undefined method `el4r_lisp_eval' #2

Open earlonrails opened 12 years ago

earlonrails commented 12 years ago

Hey I was trying to check out your project and I ran into some errors.

emacs --version GNU Emacs 22.1.1 Copyright (C) 2007 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING.

Debugger entered--Lisp error: (el4r-ruby-error)
  signal(el4r-ruby-error nil)
  (condition-case err (eval (setq expr ...)) (el4r-ruby-error (signal ... nil)) (error (setq el4r-error-lisp-expression expr) (signal ... ...)))
  (let ((result ...) expr) (while (eq ... 0) (el4r-wait-expr) (setq result ...)) (condition-case err (eval ...) (el4r-ruby-error ...) (error ... ...)))
  el4r-get()
  (let ((result ...)) (el4r-leave-call) result)
  el4r-ruby-eval("el4r_boot")
  el4r-boot()
  eval-buffer(#<buffer  *load*> nil "/Users/Kevin/.emacs" nil t)  ; Reading at buffer position 224
  load-with-code-conversion("/Users/Kevin/.emacs" "/Users/Kevin/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "^H\205\276^@   \306=\203^Q^@\307^H\310Q\202A^@ \311=\2033^@\312\307\313\314#\203#^@\315\202A^@\312\307\313\316#\203/^@\317\202A^@\315\202A^@   \320=\203=^@\321\202A^@\307^H\322Q^Z\3$
  command-line()
  normal-top-level()

I tried with a puts on the $el object

puts "#{$el.inspect} ......"
[ruby-1.9.3-p194][Krauss-Mac:/usr/local/Cellar/xiki/HEAD]% irb
1.9.3p194 :001 > $LOAD_PATH.unshift "/usr/local/Cellar/xiki/HEAD/"
 => ["/usr/local/Cellar/xiki/HEAD", "/Users/Kevin/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1", "/Users/Kevin/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/x86_64-darwin11.4.2", "/Users/Kevin/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby", "/Users/Kevin/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/vendor_ruby/1.9.1", "/Users/Kevin/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/vendor_ruby/1.9.1/x86_64-darwin11.4.2", "/Users/Kevin/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/vendor_ruby", "/Users/Kevin/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1", "/Users/Kevin/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2"] 
1.9.3p194 :002 > require "xiki"
nil ......
NoMethodError: undefined method `el4r_lisp_eval' for nil:NilClass
  from /usr/local/Cellar/xiki/HEAD/xiki.rb:14:in `<top (required)>'
  from /Users/Kevin/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  from /Users/Kevin/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  from (irb):2
  from /Users/Kevin/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `<main>'

I also tried in aquamacs

GNU Emacs 22.3.1 (i386-apple-darwin9.8.0, Carbon Version 1.6.0) of 2010-10-11 on braeburn.aquamacs.org - Aquamacs Distribution 1.9.1 Copyright (C) 2008 Free Software Foundation, Inc.

el4r started. condition-case: Error raised in Ruby

I tried the init.rb file two ways. Copy paste what is on the README and without the pipe characters.

| $LOAD_PATH.unshift "/usr/local/Cellar/xiki/HEAD" | require 'xiki' | Xiki.init | | KeyBindings.keys # Use default key bindings | Styles.use_xiki_color_scheme # Use xiki's color scheme
# Beginning of the el4r block:
# RCtool generated this block automatically. DO NOT MODIFY this block!
# This is the el4r initialization file.
# End of the el4r block.
# User-setting area is below this line.

$LOAD_PATH.unshift "/usr/local/Cellar/xiki/HEAD"
require "xiki"
Xiki.init

KeyBindings.keys
Styles.use_xiki_color_scheme

I was hoping you could've help me with it today in our pair programming session! :D Thanks for any help. Kevin

trogdoro commented 12 years ago

Xiki didn't support 1.8 until the last commit. Try again! I'll be more responsive about responding to install problems.

jassa commented 11 years ago

Hey @trogdoro, I got the same error just now, installed emacs via homebrew.

$ emacs --v
GNU Emacs 24.2.1

I'm using rbenv

$ which xiki
/Users/javier/.rbenv/shims/xiki

$ which ruby
/Users/javier/.rbenv/shims/ruby

$ ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.4.0]    

The README mentions that xiki should be in /usr/local/bin, but I don't see it there.

I'd appreciate any ideas/pointers to get past this.