Closed rradczewski closed 1 year ago
Hello! I agree this is an unfortunate problem with how Erlang modules work. In this case the project overwrites the application
module that is part of Erlang/OTP itself, causing the VM to crash when it attempts to use this module in some vital way.
We want to guard against this sharp edge for sure. Here's an issue that can be tracked: https://github.com/gleam-lang/gleam/issues/1267
Creating an empty file named
src/application.gleam
will cause a crash as follows:I stumbled upon this by accident while creating a kata-bootstrap for gleam, and I kept getting crashes when running
gleam new application; cd application/; gleam test
.Might just be a small issue that someone with experience would have spotted right away, but the error was quite confusing to me as someone who hasn't worked in the erlang/beam ecosystem. Feel free to close this issue if it isn't that big of a problem.