-
A helpful error message is now shown if the
manifest.toml
file has been edited to be invalid in some way. (zahash)error: Corrupt manifest.toml The `manifest.toml` file is corrupt. Hint: Please fun `gleam update` to fix it.
-
The error message shown when unable to find package versions that satisfy all the version constraints specified for a project's dependencies has been greatly improved. (zahash)
error: Dependency resolution failed An error occurred while determining what dependency packages and versions should be downloaded. The error from the version resolver library was: Unable to find compatible versions for the version constraints in your gleam.toml. The conflicting packages are: - hellogleam - lustre_dev_tools - glint
-
The compiler will now raise a warning for
let assert
assignments where the assertion is redundant. (Giacomo Cavalieri)warning: Redundant assertion ┌─ /home/lucy/src/app/src/app.gleam:4:7 │ 4 │ let assert x = get_name() │ ^^^^^^ You can remove this This assertion is redundant since the pattern covers all possibilities.
-
Empty case expressions are no longer parse errors and will instead be exhaustiveness errors. (Race Williams)
- Redundant alias names for imported modules are now removed.
(Giacomo Cavalieri)
is formatted to
import gleam/result as result
import gleam/result
- The code action to remove unused imports now removes the entire line is removed if it would otherwise be left blank. (Milco Kats)
-
Fixed RUSTSEC-2021-0145 by using Rust's
std::io::IsTerminal
instead of theatty
library. (Pi-Cla) -
Fixed the generated
mod
property in the Erlang application file when using theapplication_start_module
property ingleam.toml
. (Alex Manning) -
Fixed some reserved keywords would resulting in confusing error messages. (Giacomo Cavalieri)
-
Fixed variables in constant expressions not being escaped correctly when exporting to JavaScript. (PgBiel)