gleam-lang / otp

📫 Fault tolerant multicore programs with actors

Home Page:https://hexdocs.pm/gleam_otp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Cannot not be compile after add `gleam_otp`

septemhill opened this issue · comments

After I run gleam add gleam_top under my terminal, the gleam.tomk add one more dependency
for gleam_top (gleam_otp = "~> 0.7")

But when I ran gleam run, it just show me the following error:

Screenshot 2023-09-01 at 6 58 49 PM

The gleam version is 0.30.5, and I ran it under MacOS, installed by homebrew

Hello! You need to upgrade your gleam_erlang version. Perhaps run gleam update.

Hi @lpil, thanks for your reply. But I've tried gleam update, it still didn't work.
I removed the existed project and create a new one, then it works now, thx !

Glad you got it working! It will have been that one of the version requirements in gleam.toml was quite restrictive so gleam update couldn't use the new version in this case.