Can't get Xiki loaded

203 views
Skip to first unread message

Manu

unread,
Feb 13, 2013, 3:04:36 AM2/13/13
to xi...@googlegroups.com
Hi,

I installed Xiki according to the instructions on the github page but when i try to run emacs it fails with the following message:

Debugger entered--Lisp error: (invalid-read-syntax "#")
  signal(invalid-read-syntax ("#"))
  (condition-case err (eval (setq expr (read result))) (el4r-ruby-error (signal (quote el4r-ruby-error) nil)) (error (setq el4r-error-lisp-expression expr) (signal (car err) (cdr err))))
  (let ((result (el4r-recv)) expr) (while (eq (length result) 0) (el4r-wait-expr) (setq result (el4r-recv))) (condition-case err (eval (setq expr (read result))) (el4r-ruby-error (signal (quote el4r-ruby-error) nil)) (error (setq el4r-error-lisp-expression expr) (signal (car err) (cdr err)))))
  el4r-get()
  (let ((result (el4r-get))) (el4r-leave-call) result)
  el4r-ruby-eval("el4r_boot")
  el4r-boot()
  eval-buffer(#<buffer  *load*> nil "/home/manu/.emacs" nil t)  ; Reading at buffer position 8161
  load-with-code-conversion("/home/manu/.emacs" "/home/manu/.emacs" t t)
  load("~/.emacs" t t)

Since I don't know any lisp, I'd be really happy if someone could help me outh with this.

Craig Muth

unread,
Feb 13, 2013, 3:24:23 AM2/13/13
to xi...@googlegroups.com
I don't think I've seen that error before. Try using ruby 1.9.3 if
you're not already doing so.

--Craig
> --
> You received this message because you are subscribed to the Google Groups
> "Xiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to xiki+uns...@googlegroups.com.
> To post to this group, send email to xi...@googlegroups.com.
> Visit this group at http://groups.google.com/group/xiki?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Manu

unread,
Feb 13, 2013, 3:29:10 AM2/13/13
to xi...@googlegroups.com
ruby --version gives me this:
 $  ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
so it seems, I'm already using 1.9.3

Manu

unread,
Feb 13, 2013, 5:27:56 AM2/13/13
to xi...@googlegroups.com
The el4r log file says this:
2013-02-13 11:26:22 +0100:Starting, waiting for expression.
and nothing else...

Manu

unread,
Feb 13, 2013, 5:31:46 AM2/13/13
to xi...@googlegroups.com
Sorry for spamming, but this time I got a little more output:
2013-02-13 11:28:15 +0100:Starting, waiting for expression.
2013-02-13 11:28:16 +0100:Error: can't convert Range into Integer (TypeError)
  from /usr/bin/el4r-instance:847:in `instance_eval'
  from /var/lib/gems/1.9.1/gems/xiki-0.6.5/lib/xiki/styles.rb:98:in `dark_bg?'
  from /var/lib/gems/1.9.1/gems/xiki-0.6.5/lib/xiki/file_tree.rb:276:in `define_styles'
  from /var/lib/gems/1.9.1/gems/xiki-0.6.5/lib/xiki/file_tree.rb:1885:in `<top (required)>'
  from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  from /var/lib/gems/1.9.1/gems/xiki-0.6.5/lib/xiki/clipboard.rb:2:in `<top (required)>'
  from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  from /var/lib/gems/1.9.1/gems/xiki-0.6.5/lib/xiki/notes.rb:6:in `<top (required)>'
  from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  from /var/lib/gems/1.9.1/gems/xiki-0.6.5/lib/xiki/requirer.rb:37:in `block in require_classes'
  from /var/lib/gems/1.9.1/gems/xiki-0.6.5/lib/xiki/requirer.rb:35:in `each'
  from /var/lib/gems/1.9.1/gems/xiki-0.6.5/lib/xiki/requirer.rb:35:in `require_classes'
  from /var/lib/gems/1.9.1/gems/xiki-0.6.5/lib/xiki.rb:26:in `<top (required)>'
  from /usr/bin/el4r-instance:491:in `require'
  from /usr/bin/el4r-instance:491:in `require'
  from /home/manu/.el4r/init.rb:7:in `block in el4r_load'
  from /usr/bin/el4r-instance:603:in `instance_eval'
  from /usr/bin/el4r-instance:603:in `block in el4r_load'
  from /usr/bin/el4r-instance:599:in `each'
  from /usr/bin/el4r-instance:599:in `el4r_load'
  from /usr/bin/el4r-instance:737:in `el4r_boot'
  from (eval):1:in `el4r_ruby_eval'
  from /usr/bin/el4r-instance:847:in `instance_eval'
  from /usr/bin/el4r-instance:847:in `el4r_ruby_eval'
  from /usr/bin/el4r-instance:792:in `el4r_get'
  from /usr/bin/el4r-instance:768:in `block in el4r_wait_expr'
  from /usr/bin/el4r-instance:836:in `el4r_with_call'
  from /usr/bin/el4r-instance:765:in `el4r_wait_expr'
  from /usr/bin/el4r-instance:760:in `el4r_wait_expr_loop'
  from /usr/bin/el4r-instance:1102:in `<main>'
2013-02-13 11:28:16 +0100:[DEBUG] (4) Sending callback interrupt.
2013-02-13 11:28:16 +0100:[DEBUG] (5) Sending Lisp expression: (define-key el4r-mode-map "\C-c\C-e" nil)
2013-02-13 11:28:16 +0100:[DEBUG] (5) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (5) Received Ruby expression: nil
2013-02-13 11:28:16 +0100:[DEBUG] (4) Sending callback interrupt.
2013-02-13 11:28:16 +0100:[DEBUG] (5) Sending Lisp expression: (define-key el4r-mode-map "\C-c\C-e\C-r" 'el4r-ruby-eval-region)
2013-02-13 11:28:16 +0100:[DEBUG] (5) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (5) Received Ruby expression: el4r_elobject_new(10)
2013-02-13 11:28:16 +0100:[DEBUG] (4) Sending callback interrupt.
2013-02-13 11:28:16 +0100:[DEBUG] (5) Sending Lisp expression: (define-key el4r-mode-map "\C-c\C-e\C-b" 'el4r-ruby-eval-buffer)
2013-02-13 11:28:16 +0100:[DEBUG] (5) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (5) Received Ruby expression: el4r_elobject_new(11)
2013-02-13 11:28:16 +0100:[DEBUG] (4) Sending callback interrupt.
2013-02-13 11:28:16 +0100:[DEBUG] (5) Sending Lisp expression: (define-key el4r-mode-map "\C-c\C-e\C-s" 'el4r-mode-eval-sentence)
2013-02-13 11:28:16 +0100:[DEBUG] (5) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (5) Received Ruby expression: el4r_elobject_new(12)
2013-02-13 11:28:16 +0100:[DEBUG] (4) Sending callback interrupt.
2013-02-13 11:28:16 +0100:[DEBUG] (5) Sending Lisp expression: (define-key el4r-mode-map "\C-c\C-e\C-l" 'el4r-mode-eval-line)
2013-02-13 11:28:16 +0100:[DEBUG] (5) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (5) Received Ruby expression: el4r_elobject_new(13)
2013-02-13 11:28:16 +0100:[DEBUG] (4) Sending callback interrupt.
2013-02-13 11:28:16 +0100:[DEBUG] (5) Sending Lisp expression: (get-buffer-create "*ruby-scratch*")
2013-02-13 11:28:16 +0100:[DEBUG] (5) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (5) Received Ruby expression: el4r_elobject_new(14)
2013-02-13 11:28:16 +0100:[DEBUG] (4) Sending callback interrupt.
2013-02-13 11:28:16 +0100:[DEBUG] (5) Sending Lisp expression: (with-current-buffer (el4r-lisp-object-from-id 14) (funcall (el4r-lambda-for-rubyproc "15710140")))
2013-02-13 11:28:16 +0100:[DEBUG] (5) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (5) Received Ruby expression:
2013-02-13 11:28:16 +0100:[DEBUG] (5) Received callback interrupt.
2013-02-13 11:28:16 +0100:[DEBUG] (6) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (6) Received Ruby expression: el4r_rubyobj_stock.id2obj(15710140).call()
2013-02-13 11:28:16 +0100:[DEBUG] (6) Sending callback interrupt.
2013-02-13 11:28:16 +0100:[DEBUG] (7) Sending Lisp expression: (el4r-mode )
2013-02-13 11:28:16 +0100:[DEBUG] (7) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (7) Received Ruby expression:
2013-02-13 11:28:16 +0100:[DEBUG] (7) Received callback interrupt.
2013-02-13 11:28:16 +0100:[DEBUG] (8) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (8) Received Ruby expression: el4r_rubyobj_stock.id2obj(15669500).call()
2013-02-13 11:28:16 +0100:[DEBUG] (8) Result: <nil>
2013-02-13 11:28:16 +0100:[DEBUG] (8) Sending Lisp expression: nil
2013-02-13 11:28:16 +0100:[DEBUG] (7) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (7) Received Ruby expression: nil
2013-02-13 11:28:16 +0100:[DEBUG] (6) Sending callback interrupt.
2013-02-13 11:28:16 +0100:[DEBUG] (7) Sending Lisp expression: (current-local-map )
2013-02-13 11:28:16 +0100:[DEBUG] (7) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (7) Received Ruby expression: el4r_elobject_new(15, ELListCell)
2013-02-13 11:28:16 +0100:[DEBUG] (6) Sending callback interrupt.
2013-02-13 11:28:16 +0100:[DEBUG] (7) Sending Lisp expression: (define-key (el4r-lisp-object-from-id 15) "\C-j" 'el4r-mode-eval-line-and-print)
2013-02-13 11:28:16 +0100:[DEBUG] (7) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (7) Received Ruby expression: el4r_elobject_new(16)
2013-02-13 11:28:16 +0100:[DEBUG] (6) Result: <#<El4r::ELObject id=16>>
2013-02-13 11:28:16 +0100:[DEBUG] (6) Sending Lisp expression: (el4r-lisp-object-from-id 16)
2013-02-13 11:28:16 +0100:[DEBUG] (5) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (5) Received Ruby expression: el4r_elobject_new(17)
2013-02-13 11:28:16 +0100:[DEBUG] (4) Result: <true>
2013-02-13 11:28:16 +0100:[DEBUG] (4) Sending Lisp expression: t
2013-02-13 11:28:16 +0100:[DEBUG] (3) Waiting for Ruby expression
2013-02-13 11:28:16 +0100:[DEBUG] (3) Received Ruby expression: el4r_elobject_new(18)
2013-02-13 11:28:16 +0100:[DEBUG] (2) Result: <#<El4r::ELObject id=18>>
2013-02-13 11:28:16 +0100:[DEBUG] (2) Sending Lisp expression: (el4r-lisp-object-from-id 18)
2013-02-13 11:28:16 +0100:[DEBUG] (1) Waiting for Ruby expression

Manu

unread,
Feb 13, 2013, 4:04:30 PM2/13/13
to xi...@googlegroups.com
I got it running :)
The error had nothing to do with Xiki. As it turned out, my bookmark file was corrupted. After reverting it, xiki started without difficulty

Craig Muth

unread,
Feb 13, 2013, 4:48:29 PM2/13/13
to xi...@googlegroups.com
Awesome!

Maybe it's worth adding a bullet to the troubleshooting section
suggesting people comment out the lines that enable Xiki, in case
things get into a weird state like that.

> my bookmark file was corrupted.

I believe the bookmark syntax changed between emacs versions (22 and
23 maybe). That might be related.

Btw I'm working on a tutorial to make the initial experience of
learning xiki easier. You'll be able to type "tutorial" and it'll
walk you through doing the basic things. (I'm holding off pushing the
in-progress version due to some refactors that will change the initial
steps).

--Craig

Manu

unread,
Feb 17, 2013, 3:50:25 PM2/17/13
to xi...@googlegroups.com
I'm not sure about that since the error wasn't caused by Xiki. It would've popped up on other apps that try to access the bookmark file, too. Also commenting out wouldn't solve the problem, but just hide it.
Reply all
Reply to author
Forward
0 new messages