Cannot compile gleam_stdlib when using mix_gleam #3483
Replies: 2 comments 2 replies
-
|
And you added gleam_stdlib to the mix deps? # in mix.exs
# ...
defp deps do
[
# ...
{:gleam_stdlib, "~> 0.34 or ~> 1.0"},
{:gleeunit, "~> 1.0", only: [:dev, :test], runtime: false},
# ...
]
end
# ... |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I believe I have a reproduction of the issue that @mradke ran into. For me, it was in the context of attempting to add Gleam to an existing Phoenix application. The default Phoenix template has a slightly more involved Here is a simplified repo with each commit representing the set of steps to reproduce and subsequently "fix" the issue with a hack: Steps to Reproduce
Note: In-between test attempts I would run Observations
The "Fix"My hack fix was to modify the
This "hack fix" is illustrated, here: I'm unsure what the true underlying issue is or what the appropriate solution is, but I thought I'd illustrate my findings here in case that helps point someone who knows more about this system in a good direction. System Environment
(Copied to gleam-lang/mix_gleam#44) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m currently trying to test gleam inside of a mix project. I followed the GitHub - gleam-lang/mix_gleam: ⚗️ Build Gleam code with mix readme but when I try to compile I’ll get the following error:
Could not compile :gleam_stdlib, no "mix.exs", "rebar.config" or "Makefile" (pass :compile as an option to customize compilation, set it to "false" to do nothing)The configuration in mix.exs looks like this:
Elixir version: 1.16.3 (compiled with Erlang/OTP 25)
Gleam version: 1.3.2
Any pointers why this is happening?
Beta Was this translation helpful? Give feedback.
All reactions