-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
escript: exception error: undefined function erl_eval:expr/3 #14
Comments
What is the exception on "OSX 10.11.6, and erlang version is 19."? |
Sorry, I thought you should read the title. |
Sorry, I missed it :) On OSX, it looks as if you had an incomplete Erlang installation which doesn't have the erl_eval:expr/3 function. According to the documentation, that function is present in the newest Erlang versions as well. Could you try whether you have this function by trying to call it directly:
You can also write a small escript to make sure that the Erlang installation used by escripts has this module:
Execution:
If you see "undefined function" errors instead of the "no function clause" errors, then there is something wrong with the installation. On Linux, you are right in what the cause of the error is. This is a missing feature from vim-erlang-omnicomplete; it doesn't define macros based on |
Hmm, looks like I am using an incomplete version of erlang. But another interesting thing is that this exception only happens when I try to find external functions for jiffy, other modules are working fine. And this exception is thrown when calling |
Probably completion for the other applications work because the I suggest you install a complete Erlang version (it seems to be a reasonable expectation from vim-erlang-omnicomplete to expect that each function that is part of Erlang is available). With regard to the |
I think it's caused by the platform_define problem, as I compiled the code on R16B, so the beam file is encoded in R16B, but when I write codes, my laptop is running v19, so the problem happens, I tried to compile the jiffy on v19 and this plugin works fine. |
I get this exception on my mac when I tried to find external functions of jiffy.
OSX 10.11.6, and erlang version is 19.
I also tested on ubuntu12.04, which is running R16B02 on it, it returns fine but with another error msg:
This error is caused by mapping syntex, which is not supported in R16, and jiffy has a define for it, but it seems that the edoc api doesn't read the jiffy's config:
The text was updated successfully, but these errors were encountered: