What steps will reproduce the problem? 1. Writing io:<M-?>
What is the expected output? "Possible completions are: columns format fread fwrite get_chars get_line get_password nl parse_erl_exprs parse_erl_form put_chars read request requests rows scan_erl_exprs scan_erl_form setopts write"
What do you see instead? There are no completions.
What version of the product are you using? On what operating system? Both distel from SVN revision 89 and the Xmas edition gives me this. erl -version == Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 5.6.3 Ubuntu 8.10.
Possible fix? I don't know if this is preferable or not. $ svn diff distel.erl
Index: distel.erl
--- distel.erl (revision 89) +++ distel.erl (working copy) @@ -672,7 +672,7 @@
xref_completions(F,A) -> fun(server) -> distel_completions; - (opts) -> [{xref_mode, modules}]; + (opts) -> [code:lib_dir()]; (otp) -> true; (query_) -> to_list(fmt(F,A)) end.
This fixes the problem for me. But maybe it breaks something else I don't know about.
Best, Ivar Refsdal.
Comment #1
Posted on Mar 6, 2009 by Quick Kangarooworks for me. please try (in the erlang shell); distel:functions(io,"").
should print;
{ok,["columns","format","fread","fwrite","get_chars", "get_line","nl","parse_erl_exprs","parse_erl_form", "put_chars","read","rows","scan_erl_exprs","scan_erl_form", "setopts","write"]}
Comment #2
Posted on Mar 8, 2009 by Happy Dogdistel:functions(io, ""). {ok,[]}
distel:functions(rpc, ""). {ok,["abcast","async_call","block_call","call","cast", "code_change","eval_everywhere","handle_call","handle_cast", "handle_info","init","multi_server_call","multicall", "nb_yield","parallel_eval","pinfo","pmap", "safe_multi_server_call","sbcast","server_call","start", "start_link","stop","terminate","yield"]}
Also tried installing Erlang from source, including erlang-mode. Same result.
Status: Started
Labels:
Type-Defect
Priority-Medium