xiki icon indicating copy to clipboard operation
xiki copied to clipboard

Symbol's value as variable is void

Open burhan opened this issue 11 years ago • 13 comments

Following the steps as outlined in the wiki, and when I run emacs, I get the following error:

Loading encoded-kb...done
el4r started.


An error has occurred while loading `/Users/burhan/.emacs':

Symbol's value as variable is void: /Users/burhan/.rvm/rubies/ruby-1.9.3-p374/bin/el4r-instance:579:

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.

´´

burhan avatar Mar 10 '13 08:03 burhan

I'm getting the same error in another file using chruby instead of rvm:

("emacs")
Loading encoded-kb...done
el4r started.


An error has occurred while loading `/Users/moe/.emacs':

Symbol's value as variable is void: /Users/moe/.gem/ruby/2.0.0/gems/trogdoro-el4r-1.0.7/lib/el4r/el4r-sub.rb:537:

The corresponding line reads

@@__system_to_string_count__ = 0

nightscape avatar Jun 03 '13 09:06 nightscape

Xiki isn't yet tested with ruby 2.0. Try 1.9.3, as suggested by the README. I'm not familiar with chruby, but there's probably a way to make 1.9.3 your default ruby.

--Craig

On Mon, Jun 3, 2013 at 2:41 AM, Martin Mauch [email protected]:

I'm getting the same error in another file using chruby instead of rvm:

("emacs") Loading encoded-kb...done el4r started.

An error has occurred while loading `/Users/moe/.emacs':

Symbol's value as variable is void: /Users/moe/.gem/ruby/2.0.0/gems/trogdoro-el4r-1.0.7/lib/el4r/el4r-sub.rb:537:

The corresponding line reads

@@system_to_string_count = 0

— Reply to this email directly or view it on GitHubhttps://github.com/trogdoro/xiki/issues/51#issuecomment-18830941 .

trogdoro avatar Jun 04 '13 10:06 trogdoro

Is there any progress with this? I cannot easily install an older version of ruby. My distribution (Fedora 19) ships with 2.0.

suvayu avatar Sep 21 '13 09:09 suvayu

Here a quick and dirty hack to make things works : https://gist.github.com/darkslategrey/8224804

darkslategrey avatar Jan 02 '14 19:01 darkslategrey

I think this error prevents xiki from running (with Aquamacs) on my up-to-date Mac (i.e., running 10.9).

davidswelt avatar Jun 28 '14 01:06 davidswelt

The patch above indeed fixes an error on "el4r-sub.rb" line 537, but NOT the error on "el4r-instance" line 579 which is the issue here

namp avatar Jun 28 '14 09:06 namp

I found a solution:

Change line 579

else; File.open(log || "/tmp/el4r-#{whoami.chomp}.#{Process.pid}.log", "w")

to:

else; File.open(log || ENV["HOME"] + "/tmp/el4r-#{whoami.chomp}.#{Process.pid}.log", "w")

This resolved the error at line 579 but now yields the "error: el4r-instance is dead." issue https://github.com/trogdoro/xiki/issues/28

namp avatar Jun 28 '14 11:06 namp

Yep, Mavericks up to date on current aquamacs download fails as described

rossajmcd avatar Jun 28 '14 13:06 rossajmcd

what’s aquatics?

On Jun 28, 2014, at 9:41 AM, Ross McDonald [email protected] wrote:

Yep, Mavericks up to date on current aquatics download fails as described

— Reply to this email directly or view it on GitHub.

davidswelt avatar Jun 28 '14 14:06 davidswelt

Its an autocorrect problem :-)

I edited my comment to fix it.

rossajmcd avatar Jun 28 '14 16:06 rossajmcd

Has anyone got an end to end set of instructions that work on latest aquamacs and mavericks ?

rossajmcd avatar Jun 28 '14 16:06 rossajmcd

I am working with emacs-app @24.3_3 (from MacPorts) and Mavericks. I've installed Ruby 1.9.3-p547 using rvm, the gems directory at ~/.rvm/rubies/ruby-1.9.3-p547/bin/gem. But I am getting this same error, but it's referencing /Library/Ruby/Gems/2.0.0/gems/trogdoro-el4r-1.0.10/lib/el4r/el4r-sub.rb:537. So I think the problem is that when it's setting up the config files it's referencing the wrong gems directory. How do we fix this?

jashenhurst avatar Jul 02 '14 21:07 jashenhurst

+1 Encounter the same problem.

cades avatar Jul 24 '14 14:07 cades