Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Gleam 1.7.0 #39

Merged
merged 319 commits into from
Jan 20, 2025
Merged

Update to Gleam 1.7.0 #39

merged 319 commits into from
Jan 20, 2025

Conversation

PgBiel
Copy link
Member

@PgBiel PgBiel commented Jan 20, 2025

Nix changes:

  • Updated 'use' code in expression.rs
  • Added support for let ... assert as
  • Updated record update generation: for now, it will remain the exact same (MyType(..old, new: 5) generates old // { new = 5; }), although upstream proposes a new way to update records using the type constructor, with let old' = old; in MyType old'.a old'.b 5, which was worked around for now.
  • Patched @target parsing to also consider nix target
  • Updated tests with new error message wrapping using upstream's manual text wrapping implementation
  • Ported some new bitarray language tests to nix

Devops changes:

  • New workflows for checking binary architecture, patched to check the Glistix binary

Other notable changes:

Todo:

  • Test new project
  • Test LSP
  • Compare diffs / range-diff

PgBiel and others added 30 commits January 19, 2025 21:08
Ideally, `src/abc.gleam` and `src/abc.erl` would cause an error. However, this can actually occur legitimately when downloading a Hex package with precompiled `.erl` source files, which would trigger false positives. Wonder what would be the best way to detect this situation, but doesn't seem trivial to solve.
- Test header file in separate subdir
- Test parent folder ffi in Erlang
- Prevent problems with infinite symlink loops
add mjs bug fix to changelog

update changelog to include erl ffi files

update changelog with js ffi change
We were previously including all paths in the filesystem, which
included, in particular, the root. Therefore, the "initial files"
included the root directory, causing everything to be deleted, not only
the initial files.
@PgBiel PgBiel marked this pull request as ready for review January 20, 2025 01:37
@PgBiel PgBiel merged commit 0295a45 into main Jan 20, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't FFI with Nix files in subdirectories