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.3.0 #8

Merged
merged 72 commits into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
a93ea78
fix confusing append error message
giacomocavalieri May 30, 2024
3ce57eb
CHANGELOG!
giacomocavalieri May 30, 2024
482941a
Add test
giacomocavalieri May 30, 2024
e3d8958
fix-3210
giacomocavalieri May 30, 2024
5705674
Bump vec1 from 1.12.0 to 1.12.1
dependabot[bot] Jun 1, 2024
c3088d3
Bump insta from 1.38.0 to 1.39.0
dependabot[bot] Jun 1, 2024
d9b3c5a
Bump spdx from 0.10.4 to 0.10.6
dependabot[bot] Jun 1, 2024
d14fcda
Update annoyances
lpil Jun 2, 2024
f404100
wip warn for redundant capture
giacomocavalieri May 8, 2024
3cfbae4
move code to its own function
giacomocavalieri May 31, 2024
4f6d7a9
CHANGELOG!
giacomocavalieri May 31, 2024
b3f762f
clippy!
giacomocavalieri May 31, 2024
934298b
ci: remove wasm from nightly and add to release
bgwdotdev May 26, 2024
f7bf44d
Fix bug with redundant capture warning
giacomocavalieri Jun 2, 2024
ff68836
Add `maybe` as a reserved word for Erlang compile target
barszcz Jun 2, 2024
a3cf8a7
update test snapshot
barszcz Jun 2, 2024
e3cdc09
changelog
barszcz Jun 2, 2024
c0331eb
Changes!
lpil Jun 4, 2024
d233fb5
Suggest reduntant tuple action if case has a catch all discard
giacomocavalieri Jun 2, 2024
bd3cff6
CHANGELOG
giacomocavalieri Jun 2, 2024
272648e
Use better names
giacomocavalieri Jun 2, 2024
02f1fc0
Fix bug with offset
giacomocavalieri Jun 3, 2024
4b38c0e
fix excessive `gleam.mjs` generation
Jun 2, 2024
e61b914
Revert "fix excessive `gleam.mjs` generation"
lpil Jun 11, 2024
c54bd1d
Fix compiler crash when defining duplicate types
GearsDatapacks Jun 11, 2024
ae1b62c
Add fix to changelog
GearsDatapacks Jun 11, 2024
4c3b060
Add tests for redefinition of imported types
GearsDatapacks Jun 11, 2024
631f45b
Format
lpil Jun 12, 2024
3afe08c
initial implementation for completing importable modules
Acepie May 30, 2024
e34585f
changelog
Acepie May 30, 2024
8ea7d12
add import above first import instead of top of file
Acepie May 30, 2024
352def9
Add module name to completion
lpil Jun 12, 2024
4b1ad4b
completions now always include text edits and use previous word to im…
Acepie Jun 1, 2024
39eca0c
feedback
Acepie Jun 15, 2024
eb11eda
snapshot tests
Acepie Jun 15, 2024
38479d8
lints
Acepie Jun 15, 2024
40b03e5
move completions out to own module
Acepie Jun 15, 2024
25643af
lifetimes
Acepie Jun 15, 2024
103d252
fix bug with module names
Acepie Jun 15, 2024
2a0230b
use equality and fix bugs for module select
Acepie Jun 15, 2024
deb8b1e
Add annotation printer in language server
omprakaash Apr 20, 2024
bb19a81
Minor Fixes and more unit tests
omprakaash May 4, 2024
6d3c1d4
Remove unnecessary module prefix in type annotations and add more tests
omprakaash May 14, 2024
f5de337
Clean up docs and names
lpil May 24, 2024
e21c976
Extract TypeNames struct
lpil May 24, 2024
e0e2873
Move type name finding to TypeNames
lpil May 30, 2024
ff99bfe
Simplify interface
lpil May 30, 2024
ef07ca7
Simplify API more
lpil May 30, 2024
76aa883
Simplify, qualify types not in scope
lpil May 30, 2024
da0852c
Create functional interface
lpil Jun 18, 2024
1db67a4
Fix collision bug
lpil Jun 18, 2024
b593d67
Clippy
lpil Jun 18, 2024
5c3dd60
Rename
lpil Jun 18, 2024
f04d14f
Update content width of built docs to avoid horizontal scrolling
richard-viney Jun 16, 2024
f74d0fb
Fix #3279
Jun 17, 2024
e3d8f91
Return error when package not exist
Jun 17, 2024
d5211e4
Remove unused function
Jun 17, 2024
b064c70
Format
lpil Jun 18, 2024
c344b27
Tweak wording
lpil Jun 18, 2024
1d4468d
Changes!
lpil Jun 18, 2024
ac99242
Try to compile time error when trying to make non byte aligned array …
Pi-Cla May 8, 2024
30289ab
Log the change
Pi-Cla May 8, 2024
815bef5
Add Tests for Negative Sized Bit Arrays
Pi-Cla May 10, 2024
ee91ae6
rename tests
PgBiel Jun 20, 2024
363a6b3
gleam 1.3.0
PgBiel Jul 23, 2024
cde25a3
fix compilation of nix modules
PgBiel Jul 23, 2024
809f04c
foo -> wibble, bar -> wobble
PgBiel Jul 23, 2024
1972db0
update flake hash
PgBiel Jul 24, 2024
4a4be09
nix: add case clause guard arithmetic tests
PgBiel Jul 24, 2024
b6146b5
Update deps to fix build for new Rust
lpil Jul 25, 2024
9c0bd78
update cargo lock hash
PgBiel Jul 27, 2024
4f918a8
alright clippy
PgBiel Jul 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 4 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ jobs:
use-cross: true
run-integration-tests: false # Cannot run aarch64 binaries on x86_64
supports-nix: true
- os: macos-12 # intel
# macos>=14 runs exclusively on aarch64 and will thus fail to execute properly for x64
- os: macos-13 # intel
target: x86_64-apple-darwin
use-cross: false
run-integration-tests: true
supports-nix: true
- os: macos-14 # aarch64
- os: macos-latest # aarch64
toolchain: stable
target: aarch64-apple-darwin
use-cross: false
Expand Down Expand Up @@ -517,7 +518,7 @@ jobs:
deno-version: v1.x

- name: Install Bun
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2

- name: Install Erlang
uses: erlef/setup-beam@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
mv glistix glistix-arm64

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down
48 changes: 46 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ jobs:
- os: ubuntu-latest
target: aarch64-unknown-linux-musl
use-cross: true
- os: macos-latest
# macos>=14 runs exclusively on aarch64 and will thus fail to execute properly for x64
- os: macos-13
target: x86_64-apple-darwin
use-cross: false
- os: macos-11
- os: macos-latest
target: aarch64-apple-darwin
use-cross: false
- os: windows-latest
Expand Down Expand Up @@ -108,3 +109,46 @@ jobs:
${{ env.ASSET }}
${{ env.ASSET }}.sha256
${{ env.ASSET }}.sha512

build-release-wasm:
name: build-release-wasm
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
profile: minimal
override: true

- name: Install wasm-pack
run: curl -sSL https://rustwasm.github.io/wasm-pack/installer/init.sh | sh

- name: Build wasm
run: wasm-pack build --release --target web compiler-wasm

- name: Build wasm archive
run: |
VERSION="${GITHUB_REF#refs/tags/}"
ARCHIVE="glistix-$VERSION-browser.tar.gz"

tar -C compiler-wasm/pkg/ -czvf $ARCHIVE .

openssl dgst -r -sha256 -out "$ARCHIVE".sha256 "$ARCHIVE"
openssl dgst -r -sha512 -out "$ARCHIVE".sha512 "$ARCHIVE"
echo "ASSET=$ARCHIVE" >> $GITHUB_ENV

- name: Upload release archive
uses: softprops/action-gh-release@v2
with:
draft: true
prerelease: false
fail_on_unmatched_files: true
files: |
${{ env.ASSET }}
${{ env.ASSET }}.sha256
${{ env.ASSET }}.sha512
18 changes: 1 addition & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Gleam's Changelog

## v1.3.0 - Unreleased
## Unreleased

### Build tool

Expand All @@ -11,19 +11,3 @@
### Language Server

### Bug Fixes


## v1.2.1 - 2024-05-30

### Bug Fixes

- Fixed a bug where the compiler could fail to detect modules that would clash
with Erlang modules.
([Louis Pilfold](https://github.com/lpil))

- Fixed a bug where dependency version resolution could crash for certain
release candidate versions.
([Marshall Bowers](https://github.com/maxdeviant))

- Fixed a bug where trailing comments would be moved out of a bit array.
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ javascript-prelude-test-watch: ## Run the JavaScript prelude core tests when fil

.PHONY: test-watch
test-watch: ## Run compiler tests when files change
watchexec --changes-only -e rs,toml,gleam,html,capnp "cargo test --quiet"
watchexec -e rs,toml,gleam,html,capnp "cargo test --quiet"

.PHONY: export-hex-tarball-test
export-hex-tarball-test: ## Run `gleam export hex-tarball` and verify it is created
Expand Down
Loading
Loading