Working through the chapter.
I think I’ve followed everything, but when I run idx -S mix
ex(1)> Issues.GithubIssues.fetch("elixir-lang", "elixir")
** (UndefinedFunctionError) undefined function: Issues.GithubIssues.fetch/2
Which is the same problem which was given to solve at the end to section 12.5.
There seems to be something needed in the application configuration to get lib/issues/github_issues.exs recognized and compiled.
If I issue the command
before I do
Issues.GithubIssues.fetch("elixir-lang", "elixir") then it does work, but this produces a file Elixir.issues.GithubIssues.beam in the top level directory of the project, while the other beam files are in the ebin directory. Neither this nor the “need” to manually compile this file seems right, but I can’t figure out how I’m supposed to do this.
I also notice that the file name for this file is given on page 130 as “project/1/issues/lib/issues/github_issues.ex” Is this supposed to be .exs ? I tried both ways but .ex didn’t work