Unexpected reply: [rex [badrpc [EXIT [undef ([distel rpc_entry (distel modules ("cr"))] [rpc -handle_call/3-fun-0- 5])]]]]
Eric Liang <[email protected]> Tue, 08 Sep 2009 15:23:49 +0800
| Newsgroups | gmane.comp.lang.erlang.distel.devel |
|---|---|
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============8513895492655462174==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature";
boundary="------------enig3CCA6FEA7584ECDE03894F54"
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig3CCA6FEA7584ECDE03894F54
Content-Type: multipart/alternative;
boundary="------------030106050404060900080203"
This is a multi-part message in MIME format.
--------------030106050404060900080203
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi all,
I've tried Distel in emacs22, but unfortunately it does not work well.
What I've done is exactly in accordance with Bill Clementson's blog post:=
http://bc.tech.coop/blog/070528.html
They are:
1. Download the latest code from :=20
http://distel.googlecode.com/svn/trunk/
2. Modify the .emacs. I did confirm the load-path and distel-dir
settings are correct. Here is it:
;; This is needed for Erlang mode setup
(setq erlang-root-dir "/usr/local/lib/erlang")
(setq load-path (cons "/usr/local/lib/erlang/lib/tools-2.5.1/em=
acs" load-path))
(setq exec-path (cons "/usr/local/lib/erlang/bin" exec-path))
(require 'erlang-start)
;; This is needed for Distel setup
(let ((distel-dir "/Users/bc/Projects/distel/elisp"))
(unless (member distel-dir load-path)
;; Add distel-dir to the end of load-path
(setq load-path (append load-path (list distel-dir)))))
(require 'distel)
(distel-setup)
;; Some Erlang customizations
(add-hook 'erlang-mode-hook
(lambda ()
;; when starting an Erlang shell in Emacs, default in the =
node name
(setq inferior-erlang-machine-options '("-sname" "emacs"))=
;; add Erlang functions to an imenu menu
(imenu-add-to-menubar "imenu")))
;; A number of the erlang-extended-mode key bindings are useful=
in the shell too
(defconst distel-shell-keys
'(("\C-\M-i" erl-complete)
("\M-?" erl-complete)=09
("\M-." erl-find-source-under-point)
("\M-," erl-find-source-unwind)=20
("\M-*" erl-find-source-unwind)=20
)
"Additional keys to bind when in Erlang shell.")
(add-hook 'erlang-shell-mode-hook
(lambda ()
;; add some Distel bindings to the Erlang shell
(dolist (spec distel-shell-keys)
(define-key erlang-shell-mode-map (car spec) (cadr spec)=
))))
When I open a .erl file, it works well and Distel dose exist in the
Erlang tag of the emacs' menubar. But when I type C-M-i behind the word
"cr" to complete the function name,the emacs received this message:
Unexpected reply: [rex [badrpc [EXIT [undef ([distel rpc_entry
(distel modules ("cr"))] [rpc -handle_call/3-fun-0- 5])]]]]
I checked the code in Distel, it looks like that it will call
completions() which will call the get() by the argument:A an empty
string("") in otp_doc.erl. The function get() will call to_list() on
the argument:A,which will get the error:
*** ERROR: Shell process terminated! ***
=3DERROR REPORT=3D=3D=3D=3D 8-Sep-2009::15:02:42 =3D=3D=3D
Error in process <0.66.0> on node 'emacs@doubleclick' with exit
value:
{undef,[{lib,format_exception,[4,error,undef,[{erl_internal,bif,[to_l=
ist,1]},{erl_lint,expr,3},{erl_lint,exprs,3},{erl_lint,exprs_opt,3},{erl_=
eval,check_command,2},{shell,exprs,6},{shell,eval_exprs,6},{shell,eval_lo=
op..
I guess this is the reason for the completion failure, but have no idea
how to fix it. Can anyone here give me a hand?
As a newbie in Erlang, it's very possible I've stepped in the wrong
way.However, any suggestions will be appreciated.
Thanks in advance.
Eric
--------------030106050404060900080203
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor=3D"#ffffff" text=3D"#000000">
Hi all,<br>
I've tried Distel in emacs22, but unfortunately it does not work well.
What I've done is <span>exactly in accordance with </span>Bill
Clementson's blog post:<br>
<blockquote><a class=3D"moz-txt-link-freetext" href=3D"http://bc.tech.coo=
p/blog/070528.html">http://bc.tech.coop/blog/070528.html</a> <br>
</blockquote>
They are:<br>
<ol>
<li>Download the latest code from :=C2=A0
<a class=3D"moz-txt-link-freetext" href=3D"http://distel.googlecode.com/s=
vn/trunk/">http://distel.googlecode.com/svn/trunk/</a></li>
<li>Modify the .emacs. I did confirm the load-path and distel-dir
settings are correct. Here is it:<br>
<blockquote><span class=3D"rss:item">
<pre>;; This is needed for Erlang mode setup
(setq erlang-root-dir "/usr/local/lib/erlang")
(setq load-path (cons "/usr/local/lib/erlang/lib/tools-2.5.1/emacs" load-=
path))
(setq exec-path (cons "/usr/local/lib/erlang/bin" exec-path))
(require 'erlang-start)
;; This is needed for Distel setup
(let ((distel-dir "/Users/bc/Projects/distel/elisp"))
(unless (member distel-dir load-path)
;; Add distel-dir to the end of load-path
(setq load-path (append load-path (list distel-dir)))))
(require 'distel)
(distel-setup)
<span class=3D"rss:item"><pre>;; Some Erlang customizations
(add-hook 'erlang-mode-hook
(lambda ()
;; when starting an Erlang shell in Emacs, default in the node name
(setq inferior-erlang-machine-options '("-sname" "emacs"))
;; add Erlang functions to an imenu menu
(imenu-add-to-menubar "imenu")))
;; A number of the erlang-extended-mode key bindings are useful in the sh=
ell too
(defconst distel-shell-keys
'(("\C-\M-i" erl-complete)
("\M-?" erl-complete)=09
("\M-." erl-find-source-under-point)
("\M-," erl-find-source-unwind)=20
("\M-*" erl-find-source-unwind)=20
)
"Additional keys to bind when in Erlang shell.")
(add-hook 'erlang-shell-mode-hook
(lambda ()
;; add some Distel bindings to the Erlang shell
(dolist (spec distel-shell-keys)
(define-key erlang-shell-mode-map (car spec) (cadr spec)))))</pre>=
</span></pre>
</span></blockquote>
</li>
</ol>
When I open a .erl file, it works well and Distel dose exist in the
Erlang tag of the emacs' menubar. But when I type C-M-i behind the word
"cr" to complete the function name,the emacs received this message:<br>
<blockquote>Unexpected reply: [rex [badrpc [EXIT [undef ([distel
rpc_entry (distel modules ("cr"))] [rpc -handle_call/3-fun-0- 5])]]]]<br>=
</blockquote>
I checked the code in Distel, it looks like that it will call
completions() which will call the get() by the argument:A=C2=A0 an empty
string("")=C2=A0 in otp_doc.erl.=C2=A0 The function get() will call to_li=
st() on
the argument:A,which will get the error:<br>
<blockquote>*** ERROR: Shell process terminated! ***<br>
<br>
=3DERROR REPORT=3D=3D=3D=3D 8-Sep-2009::15:02:42 =3D=3D=3D<br>
Error in process <0.66.0> on node 'emacs@doubleclick' with exit
value:
{undef,[{lib,format_exception,[4,error,undef,[{erl_internal,bif,[to_list,=
1]},{erl_lint,expr,3},{erl_lint,exprs,3},{erl_lint,exprs_opt,3},{erl_eval=
,check_command,2},{shell,exprs,6},{shell,eval_exprs,6},{shell,eval_loop..=
<br>
</blockquote>
I guess this is the reason for the completion failure, but have no idea
how to fix it. Can anyone here give me a hand?<br>
<br>
As a newbie in Erlang, it's very possible I've stepped in the wrong
way.However, any suggestions will be appreciated. <br>
<br>
Thanks in advance.<br>
<br>
Eric<br>
</body>
</html>
--------------030106050404060900080203--
--------------enig3CCA6FEA7584ECDE03894F54
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkqmBosACgkQuynMGc+0oe5+dwCgquivR4rmoO1xN1/VUQq+SWHv
j0cAn2jEOXl+Bw+NKMjytGuruUX+xc4L
=rBHX
-----END PGP SIGNATURE-----
--------------enig3CCA6FEA7584ECDE03894F54--
--===============8513895492655462174==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
--===============8513895492655462174==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Distel-hackers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/distel-hackers
--===============8513895492655462174==--