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

support gleam language #325

Merged
merged 5 commits into from
Oct 17, 2024
Merged

support gleam language #325

merged 5 commits into from
Oct 17, 2024

Conversation

nohzafk
Copy link
Contributor

@nohzafk nohzafk commented Oct 9, 2024

support gleam language

@nohzafk
Copy link
Contributor Author

nohzafk commented Oct 9, 2024

I don't know why the test failed. Please help a little bit.

I followed instruction of Adding a formatter on README, and make fmt-test FORMATTERS=gleam from inside the fmt-docker shell shows

root@ebaa7dbdcc14:/src# make fmt-test FORMATTERS=gleam
[format-test] success: formatter gleam (file in.gleam)

here is my doom-emacs config and it works fine

(use-package! gleam-ts-mode
  :mode "\\.gleam\\'"
  :config
  (after! apheleia
    (setf (alist-get 'gleam-ts-mode apheleia-mode-alist) 'gleam)
    (setf (alist-get 'gleam apheleia-formatters) '("gleam" "format" "--stdin"))))

(after! treesit
  (add-to-list 'auto-mode-alist '("\\.gleam\\'" . gleam-ts-mode)))

@raxod502
Copy link
Member

emacs: /usr/local/bin/gleam: Exec format error

That's a sure sign of trying to run a binary that was compiled for a different architecture. Looks like you put the aarch64-unknown-linux-musl one in the download script, whereas we are using x86-gnu in CI. I'll update that.

@raxod502 raxod502 merged commit b9cd808 into radian-software:main Oct 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants