[erlang-questions] Distel stays on interpreting
Kaiduan Xie
kaiduanx@REDACTED
Mon Jul 27 00:08:53 CEST 2009
Dale,
I believe distel is loaded because distel is shown under the Erlang
menu, and I can list all processes.
How to disable flymake?
My .emacs is shown below,
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(inhibit-startup-screen t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;; Erlang stuff
(setq erlang-root-dir "/usr/local/lib/erlang")
(setq load-path (cons "/usr/local/lib/erlang/lib/tools-2.6.2/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 "/home/kaiduanx/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)
("\M-." erl-find-source-under-point)
("\M-," erl-find-source-unwind)
("\M-*" erl-find-source-unwind)
)
"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)))))
Thanks,
kaiduan
On Sun, Jul 26, 2009 at 5:42 PM, Dale Harvey<harveyd@REDACTED> wrote:
> oh, also if you have flymake turned on, disable it then try, I believe the
> distel / flymake issue has been fixed, but again I havent tested.
>
> 2009/7/26 Dale Harvey <harveyd@REDACTED>
>>
>> I havent had the time to properly debug whats happening, however I have
>> found that this only happens for me when distel is loaded first time
>> specifically to do the interpretation.
>>
>> if you load up a file, press M-, to follow a function call to another
>> module, then ensures distel is loaded, then when you interpret a module it
>> (might) work.
>>
>> 2009/7/26 Kaiduan Xie <kaiduanx@REDACTED>
>>>
>>> Hi,
>>>
>>> I followed the instruction on http://bc.tech.coop/blog/070528.html to
>>> give distel a try, but it looked like that Distel stayed on
>>> interpreting forever. If I toggle a breakpoint on the current line, it
>>> says "Module is not interpreted, can't set breakpoints".
>>>
>>> The following is from the message buffer,
>>>
>>> loading = (otp_doc "/home/kaiduanx/distel/ebin/otp_doc.beam")
>>> load: [badrpc [EXIT [undef ([distel rpc_entry (distel reload_module
>>> (modtest2 nil))] [rpc -handle_call/3-fun-0- 5])]]]
>>> loading = (fdoc "/home/kaiduanx/distel/ebin/fdoc.beam")
>>> loading = (distel_ie "/home/kaiduanx/distel/ebin/distel_ie.beam")
>>> loading = (distel "/home/kaiduanx/distel/ebin/distel.beam")
>>> loading = nil
>>> (Successfully uploaded backend modules into node)
>>> Interpreting: modtest2
>>> if: Module is not interpreted, can't set breakpoints.
>>>
>>> Can someone point out what is wrong?
>>>
>>> Thanks,
>>>
>>> kaiduan
>>>
>>> ________________________________________________________________
>>> erlang-questions mailing list. See http://www.erlang.org/faq.html
>>> erlang-questions (at) erlang.org
>>>
>>
>
>
More information about the erlang-questions
mailing list