如何在Emacs中开始使用Xiki?

时间:2021-02-23 10:24:02

Trying to get xiki to work.

试图让xiki工作。

It is installed:

它安装:

$ xiki directory
/Users/joshcheek/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/

The shell script that moves all the files around executed successfully AFAIK, but I closed that shell, so can't show its output. Nothing jumped out at me about being wrong, though.

移动所有文件的shell脚本成功执行AFAIK,但我关闭了那个shell,因此无法显示其输出。但是,没有什么能比我错了。

It looks like the server is running:

看起来服务器正在运行:

$ xiki status
xiki_process.rb: running [pid 93257]

I have emacs installed (I installed this before installing xiki), and set up the init file:

我安装了emacs(我在安装xiki之前安装了它),并设置了init文件:

$ cat ~/.el4r/init.rb 
# 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.
# User-setting area is below this line.

$LOAD_PATH.unshift "/Users/joshcheek/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib"
require 'xiki'
Xiki.init

KeyBindings.keys   # Use default key bindings
Themes.use "Default"  # Use xiki theme

But when I run emacs, it splits the screen and places this error in the bottom:

但是当我运行emacs时,它会分割屏幕并将此错误放在底部:

Warning (initialization): An error occurred while loading `/Users/joshcheek/.emacs':

error: el4r-instance is dead.

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

when I press Option-l (also tried Escape l, in case option wasn't meta), nothing appears to happen (When I do it in the welcome window pane, it says it is read only, when I do it in the bottom one that says xiki is dead, it just doesn't do anything). Going back to the console, xiki status still says it is running with the same pid.

当我按下Option-l(也试过Escape l,以防万一选项不是meta)时,似乎没有任何事情发生(当我在欢迎窗口窗格中执行此操作时,它表示它是只读的,当我在底部执行时一个说xiki死了,它什么也没做。回到控制台,xiki状态仍然表示它正在使用相同的pid运行。

There are two logs, each with the same problem:

有两个日志,每个日志都有相同的问题:

$ tail /tmp/el4r-joshcheek.9*
==> /tmp/el4r-joshcheek.92157.log <==
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `call'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `readline'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `el4r_recv'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:790:in `el4r_get'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:768:in `block in el4r_wait_expr'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:836:in `el4r_with_call'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:765:in `el4r_wait_expr'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:760:in `el4r_wait_expr_loop'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:1102:in `<main>'
2012-09-12 23:50:14 -0500:Exiting.

==> /tmp/el4r-joshcheek.93192.log <==
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `call'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `readline'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `el4r_recv'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:790:in `el4r_get'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:768:in `block in el4r_wait_expr'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:836:in `el4r_with_call'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:765:in `el4r_wait_expr'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:760:in `el4r_wait_expr_loop'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:1102:in `<main>'
2012-09-12 23:53:41 -0500:Exiting.

I don't know how I'm supposed to be able to load it up, I assumed I just start emacs, and I can begin double clicking things like the word table so far it doesn't do this, but I don't think it's correctly talking to emacs.

我不知道我应该如何加载它,我假设我刚开始使用emacs,我可以开始双击像word表这样的东西到目前为止它不会这样做,但我不会认为它正确地与emacs交谈。

When I look at info in the emacs gui, it says it is version 24.2 (installed from here), when I do emacs --version on the console, it says it is version 22.1.1 I can troubleshoot this and try to get them both to version 24, but I don't even know if this is what the problem is (though I'd probably prefer to use these from the console).

当我在emacs gui中查看信息时,它说它是版本24.2(从这里安装),当我在控制台上执行emacs --version时,它说它是版本22.1.1我可以对此进行故障排除并尝试获取它们到版本24,但我甚至不知道这是不是问题(虽然我可能更喜欢从控制台使用这些)。

I tried finding docs about how to get going with it, but there didn't seem to be much in that way. Tried joining the Google group, I would have asked there, but my membership is pending.

我试图找到关于如何使用它的文档,但似乎没有那么多。尝试加入谷歌小组,我会问那里,但我的会员资格尚待批准。

I just want to be able to try out the stuff from the video.

我只是希望能够尝试视频中的内容。

3 个解决方案

#1


1  

It looks like you have everything installed. If you are using rvm, did you change the ruby version when you installed everything? I had the same problem with emacs saying el4r instance is dead when I started emacs with rvm using a different ruby than what I installed el4r with.

看起来你已经安装了所有东西。如果您使用的是rvm,在安装所有内容时是否更改了ruby版本?我有同样的问题,emacs说el4r实例已经死了,当我用rvm使用不同的ruby启动emacs而不是我安装的el4r。

#2


0  

I experienced the same issue today. I finally installed el4r separately and it works fine now. See http://www.rubyist.net/~rubikitch/computer/el4r/index.en.html#label:10. You might need to sudo some of the commands depending of your system.

我今天遇到了同样的问题。我终于分别安装了el4r,现在工作正常。见http://www.rubyist.net/~rubikitch/computer/el4r/index.en.html#label:10。根据您的系统,您可能需要sudo一些命令。

Also, before executing ruby -S el4r-rctool..., you need to change the directory to /path_to_where_you_downloaded_el4r/el4r-1.0.4/bin/.

此外,在执行ruby -S el4r-rctool ...之前,需要将目录更改为/path_to_where_you_downloaded_el4r/el4r-1.0.4/bin/。

#3


0  

Probably you have installed el4r the wrong way or from the wrong source. I have created a similar question here: How can I install el4r in emacs 24?

可能你以错误的方式或错误的来源安装了el4r。我在这里创建了一个类似的问题:如何在emacs 24中安装el4r?

You will encounter problems if you have installed el4r previous to xiki (manually). Either follow the instructions on the link I have provided above or uninstall the el4r you have installed currently and re-install xiki exactly as described on their page.

如果您在xiki(手动)之前安装了el4r,则会遇到问题。请按照我上面提供的链接上的说明进行操作,或者卸载当前安装的el4r,然后完全按照其页面上的说明重新安装xiki。

#1


1  

It looks like you have everything installed. If you are using rvm, did you change the ruby version when you installed everything? I had the same problem with emacs saying el4r instance is dead when I started emacs with rvm using a different ruby than what I installed el4r with.

看起来你已经安装了所有东西。如果您使用的是rvm,在安装所有内容时是否更改了ruby版本?我有同样的问题,emacs说el4r实例已经死了,当我用rvm使用不同的ruby启动emacs而不是我安装的el4r。

#2


0  

I experienced the same issue today. I finally installed el4r separately and it works fine now. See http://www.rubyist.net/~rubikitch/computer/el4r/index.en.html#label:10. You might need to sudo some of the commands depending of your system.

我今天遇到了同样的问题。我终于分别安装了el4r,现在工作正常。见http://www.rubyist.net/~rubikitch/computer/el4r/index.en.html#label:10。根据您的系统,您可能需要sudo一些命令。

Also, before executing ruby -S el4r-rctool..., you need to change the directory to /path_to_where_you_downloaded_el4r/el4r-1.0.4/bin/.

此外,在执行ruby -S el4r-rctool ...之前,需要将目录更改为/path_to_where_you_downloaded_el4r/el4r-1.0.4/bin/。

#3


0  

Probably you have installed el4r the wrong way or from the wrong source. I have created a similar question here: How can I install el4r in emacs 24?

可能你以错误的方式或错误的来源安装了el4r。我在这里创建了一个类似的问题:如何在emacs 24中安装el4r?

You will encounter problems if you have installed el4r previous to xiki (manually). Either follow the instructions on the link I have provided above or uninstall the el4r you have installed currently and re-install xiki exactly as described on their page.

如果您在xiki(手动)之前安装了el4r,则会遇到问题。请按照我上面提供的链接上的说明进行操作,或者卸载当前安装的el4r,然后完全按照其页面上的说明重新安装xiki。