|
|
| Author |
Message |
< Erlang ~ Distel Fails in Xemacs |
| Bill M. |
Posted: Sun Jul 13, 2008 8:19 pm |
|
|
|
User
Joined: 06 Jun 2008
Posts: 24
Location: New York
|
On OpenSUSE I'm having a failure when I upgrade to a newer erlang installation on OpenSuSE 11.0 (with updates):
Code:
xemacs-el-21.5.28.20080401-16.1
xemacs-packages-el-20070427-112.1
xemacs-info-21.5.28.20080401-16.1
xemacs-packages-20070427-112.1
xemacs-21.5.28.20080401-16.1
xemacs-packages-info-20070427-112.1
The newer versions of Erlang come from NicoK's repository:
Code:
erlang-jinterface-R12B3-22.2
erlang-R12B3-22.2
erlang-doc-R12B3-22.2
It is possible that these builds have problems.
After download, I did a make clean on distel and then rebuilt it via make and make install which went without incident.
After the upgrade, I get the following errors when using Xemacs to edit my project (it worked on an older version of Erlang).
(1) (initialization/error) An error has occurred while loading /home/maniatty/.xemacs/init.el:
Cannot open load file: "erlang-start"
Backtrace follows:
Code:
signal(file-error ("Cannot open load file" "erlang-start"))
# bind (handler path nosuffix nomessage noerror filename)
load("erlang-start" nil require nil)
# (unwind-protect ...)
require(erlang-start)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
load-internal("~/.xemacs/custom.el" t t nil undecided)
# bind (handler path nosuffix nomessage noerror filename)
load("~/.xemacs/custom.el" t t)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
load-internal("/home/maniatty/.xemacs/init.el" t t t undecided)
# bind (handler path nosuffix nomessage noerror filename)
load("/home/maniatty/.xemacs/init.el" t t t)
load-user-init-file()
#<compiled-function nil "...(10)" [init-file-had-error load-user-init-file-p load-user-init-file nil] 2>()
# (unwind-protect ...)
call-with-condition-handler(#<compiled-function (__load_init_file_arg__) "...(26)" [init-file-had-error user-init-file __load_init_file_arg__ errstr error-message-string message "Error in init file: %s" lwarn initialization error "An error has occurred while loading %s:\n\n%s\n\nBacktrace follows:\n\n%s\n\nTo ensure normal operation, you should investigate the cause of the error\nin your initialization file and remove it. Use the `-debug-init' option\nto XEmacs to enter the debugger when the error occurs and investigate the\nexact problem." backtrace-in-condition-handler-eliminating-handler t] 8> #<compiled-function nil "...(10)" [init-file-had-error load-user-init-file-p load-user-init-file nil] 2>)
# (condition-case ... . ((error)))
# bind (debug-on-error debug-on-error-from-init-file debug-on-error-should-be-set debug-on-error-initial)
load-init-file()
# bind (command-line-args-left)
command-line()
# (condition-case ... . ((t (byte-code " Â" [error-data data nil] 1))))
# bind (error-data)
normal-top-level()
# (condition-case ... . error)
# (catch top-level ...)
My erlang menu and imenu don't appear in this case.
To ensure normal operation, you should investigate the cause of the error
in your initialization file and remove it. Use the `-debug-init' option
to XEmacs to enter the debugger when the error occurs and investigate the
exact problem.
However reverting back to older versions of erlang, I get better results:
Code:
rpm -q -a | grep erlang
erlang-doc-R11B5-4.6
erlang-R11B5-4.6
And rebuild of distel and voila it works. Has anyone else had any issues with Distel and a newer Erlang install?
Regards:
Bill M.
I'm using a recent distel download, changelog of most recent update being 05-23-2008. |
|
|
| Back to top |
|
| michal |
Posted: Tue Jul 15, 2008 7:26 am |
|
|
|
User
Joined: 20 Jul 2006
Posts: 44
Location: London
|
Hi,
In your /home/maniatty/.xemacs/init.el you probably have definition of paths to erlang mode similar to this:
Code:
(setq load-path (cons "/usr/local/lib/erlang/lib/tools-2.5.5/emacs/" load-path))
(setq erlang-root-dir "/usr/local/lib/erlang")
(setq exec-path (cons "/usr/local/lib/erlang/bin" exec-path))
(require 'erlang-start)
After upgrading OTP to R12B-3, the path to erlang mode files has changed from tools-2.5.5 to tools-2.6.1, so change the above.
/Michal |
_________________ http://www.erlang-consulting.com |
|
| Back to top |
|
| Bill M. |
Posted: Thu Jul 17, 2008 2:41 am |
|
|
|
User
Joined: 06 Jun 2008
Posts: 24
Location: New York
|
Thanks, that seems to do the trick.
Regards:
Bill M. |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|