Missing completion on io #2

Open
richcarl opened this Issue Jul 25, 2011 · 0 comments

Projects

None yet

1 participant

@richcarl

From http://code.google.com/p/distel/issues/detail?id=15

Reported by refsdal....@gmail.com, Mar 2, 2009

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 by project member mats.cro...@gmail.com, Mar 6, 2009

works 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"]}

Status: Started
Owner: mats.cronqvist
Comment 2 by refsdal....@gmail.com, Mar 8, 2009

distel: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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment