ostinelli / SublimErl

An Erlang Plugin for Sublime Text 2, which enables code completion and allows you to run tests within the editor itself.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BIF functions not showing in completion

aberman opened this issue · comments

  1. Open an Erlang file
  2. Go into a function and type erlang:is_

Actual: None of the is_ functions are showing (e.g. is_record, is_binary, etc.)

Expected: All of the functions exported in erlang should show in the completion list.

i believe these are native implementations: i've looked into ./erts-5.9/src/erlang.erl, and there are no is_record/1, is_binary/1, is_list/1, ... function definitions, hence the parser is not finding them.

do you happen to know where these get defined?

Unfortunately I have no idea, since they're not in erlang.erl. I'm going to assume that since erlang is in the erts package that there is some C stuff going on there as well which might account for them.

yes, these are BIF and by convention show up as being in the erlang module.

i was asking if you know in which module they might be implemented, but actually it doesn't matter i'm probably gonna add these manually to the completion.

ps: updated title to appropriate issue name.

Cool, looks good!