Skip to content

Conversation

CrowdHailer
Copy link
Contributor

This project works fine on master, the test calls into some Gleam code.

Switching a dependency to come from github does not correctly compile the Gleam code from another module. So here the Gleam code in this project is compiled but the standard library is not.

It seems that Gleam is compiled to erlang in the dependencies, you can see [email protected] by listing deps/gleam_stdlib/gen/src/ But those erlang modules are not available when running this application.

The test fails with the following error, indicating stlib modules are not available

  1) test greets the world (ElixirWithGleamTest)
     test/elixir_with_gleam_test.exs:5
     ** (UndefinedFunctionError) function :[email protected]/1 is undefined (module :gleam@string is not available)
     code: assert ElixirWithGleam.hello() == "!maelg morf ,olleH"
     stacktrace:
       :[email protected]("Hello, from gleam!")
       test/elixir_with_gleam_test.exs:6: (test)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant