azynheira / distel

Automatically exported from code.google.com/p/distel
0 stars 0 forks source link

Missing completion on io: #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by refsdal....@gmail.com on 2 Mar 2009 at 3:07

GoogleCodeExporter commented 8 years ago
 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"]}

Original comment by mats.cro...@gmail.com on 6 Mar 2009 at 4:14

GoogleCodeExporter commented 8 years ago
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.

Original comment by refsdal....@gmail.com on 8 Mar 2009 at 4:18