-
Notifications
You must be signed in to change notification settings - Fork 3
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
SyntaxError iex: syntax error before: abci_server #5
Comments
I finally overcame the problem after posting the question in the Elixir Slack group https://elixir-lang.slack.com/archives/C03EPRA3B/p1517016786000068. First with some help I was able to show information about the
I then created a fake Foo function:
And then lastly I called the
I've updated this Pull Request #3 with proposed updates to the Readme, since the Generated Docs may not be clear enough for beginners |
The line
is intended to be used in Erlang shell, hence it uses the Erlang syntax. As noted, syntax for Elixir shell will be different. |
When I load the abci_server Docs in my Web Browser with:
The Documentation tells me I can:
So to try it out I add abci_server to mix.exs
Then I install the Mix dependencies
Then I run IEx within context my Elixir App (loading app and dependencies into IEx runtime)
Then I create a fake module just to test it out try and Start the abci_server as instructed as follows, but it gives me error
(SyntaxError) iex:2: keyword argument must be followed by space after: abci_server:
when I try to run the serverI'm still new to Elixir/Erlang, but I found this post elixir-lang/elixir-lang.github.com#980 and it indicates that I should add a space after the colon
:
, but then it just gives me a generic syntax error:So I did more research and I found this link which says I can use Erlang packages that are installed as dependencies from an Elixir project’s Mix file https://elixirschool.com/en/lessons/advanced/erlang/#erlang-packages.
So according to their guide, if I include an Erlang Library in mix.exs as
{:abci_server, git: "https://github.com/KrzysiekJ/abci_server.git", tag: "v0.4.0"},
, then I should be able to check it has loaded and use it’s associated functions when I run IEx withiex(3)> :abci_server.__info__(:functions)
, but doing so just returns** (UndefinedFunctionError) function :abci_server.__info__/1 is undefined or private
The text was updated successfully, but these errors were encountered: