gleam-lang / gleam

⭐️ A friendly language for building type-safe, scalable systems!
https://gleam.run
Apache License 2.0
17.39k stars 723 forks source link

bug: Rebar3 parse transform fails on windows #1603

Closed HarryET closed 1 month ago

HarryET commented 2 years ago

This is occurring when trying to build https://github.com/harryet/shimmer on windows

Gleam Output

PS B:\Development\shimmer> gleam run
Downloading packages
 Downloaded 18 packages in 0.50s
  Compiling gleam_stdlib
  Compiling gleam_http
  Compiling thoas
===> Analyzing applications...
===> Compiling thoas
  Compiling gleam_json
  Compiling metrics
===> Analyzing applications...
===> Compiling metrics
  Compiling parse_trans
===> Analyzing applications...
===> Compiling parse_trans
  Compiling cowlib
===> Analyzing applications...
===> Compiling cowlib
  Compiling gun
===> Analyzing applications...
===> Compiling gun
src/gun.erl:654:29: Warning: erlang:get_stacktrace/0 is removed; use the new try/catch syntax for retrieving the stack backtrace

  Compiling gleam_erlang
  Compiling gleam_otp
  Compiling gleeunit
  Compiling mimerl
===> Analyzing applications...
===> Compiling mimerl
  Compiling ssl_verify_fun
===> Analyzing applications...
===> Compiling ssl_verify_fun
  Compiling certifi
===> Analyzing applications...
===> Compiling certifi
  Compiling unicode_util_compat
===> Analyzing applications...
===> Compiling unicode_util_compat
  Compiling idna
===> Analyzing applications...
===> Compiling idna
  Compiling hackney
===> Analyzing applications...
===> Compiling hackney
===> Compiling src/hackney_ssl.erl failed
src/hackney_ssl.erl:none: undefined parse transform 'ct_expand'

error: Shell command failure

There was a problem when running the shell command `rebar3`.

Rebar3 Output

This is in a new reabr3 project with only hackeny as a dependency

PS B:\Development\mylib> rebar3 compile 
===> Verifying dependencies...
===> Fetching hackney v1.18.1
===> Fetching certifi v2.9.0
===> Fetching idna v6.1.1
===> Fetching metrics v1.0.1
===> Fetching mimerl v1.2.0
===> Fetching parse_trans v3.3.1
===> Fetching ssl_verify_fun v1.1.6
===> Fetching unicode_util_compat v0.7.0
===> Analyzing applications...
===> Compiling unicode_util_compat
===> Compiling idna
===> Compiling metrics
===> Compiling parse_trans
===> Compiling certifi
===> Compiling ssl_verify_fun
===> Compiling mimerl
===> Compiling hackney
===> Analyzing applications...
===> Compiling mylib
PS B:\Development\mylib> 
lpil commented 2 years ago

Thanks Harry!

HarryET commented 2 years ago

Thanks Harry!

No problems 😄

lpil commented 1 month ago

Closing as this hasn't come up again since