trogdoro / xiki

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

Symbol's value as variable is void #51

Open burhan opened 11 years ago

burhan commented 11 years ago

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.

´´
nightscape commented 11 years ago

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
trogdoro commented 11 years ago

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 notifications@github.comwrote:

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 .

suvayu commented 11 years ago

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

darkslategrey commented 10 years ago

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

davidswelt commented 10 years ago

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

namp commented 10 years ago

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 commented 10 years ago

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

rossajmcd commented 10 years ago

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

davidswelt commented 10 years ago

what’s aquatics?

On Jun 28, 2014, at 9:41 AM, Ross McDonald notifications@github.com wrote:

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

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

rossajmcd commented 10 years ago

Its an autocorrect problem :-)

I edited my comment to fix it.

rossajmcd commented 10 years ago

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

jashenhurst commented 10 years ago

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?

cades commented 10 years ago

+1 Encounter the same problem.