Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing completion on io #2

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

Missing completion on io #2

richcarl opened this issue Jul 25, 2011 · 0 comments

Comments

@richcarl
Copy link

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

Reported by [email protected], 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 [email protected], 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 [email protected], 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.

altrg referenced this issue in altrg/distel Aug 24, 2012
erl-ecs-compile-includes option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant