#[solved]《this was an erlang issue》 lustre dev tools erroring out

1 messages · Page 1 of 1 (latest)

small tusk
#

I have two machines running the same version of erlang:

$ erl -v
Erlang/OTP 27 [erts-15.2.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns] 

both gleam 1.9.1. One of them compiles a project just fine, while the other shows me this:

gleam run -m lustre/dev      
   Compiled in 0.09s
    Running lustre/dev.main
=INFO REPORT==== 14-Apr-2025::01:22:57.671482 ===
    application: filepath
    exited: stopped
    type: temporary

=INFO REPORT==== 14-Apr-2025::01:22:57.703728 ===
    application: argv
    exited: stopped
    type: temporary

=INFO REPORT==== 14-Apr-2025::01:22:57.703923 ===
    application: lustre
    exited: stopped
    type: temporary

=INFO REPORT==== 14-Apr-2025::01:22:57.704118 ===
    application: gleam_otp
    exited: stopped
    type: temporary

=INFO REPORT==== 14-Apr-2025::01:22:57.704342 ===
    application: gleam_erlang
    exited: stopped
    type: temporary

=INFO REPORT==== 14-Apr-2025::01:22:57.705134 ===
    application: gleeunit
    exited: stopped
    type: temporary

=INFO REPORT==== 14-Apr-2025::01:22:57.705264 ===
    application: gleamy_lights
    exited: stopped
    type: temporary

=INFO REPORT==== 14-Apr-2025::01:22:57.705610 ===
    application: gleam_community_colour
    exited: stopped
    type: temporary

=INFO REPORT==== 14-Apr-2025::01:22:57.705799 ===
    application: envoy
    exited: stopped
    type: temporary

=INFO REPORT==== 14-Apr-2025::01:22:57.705918 ===
    application: gleam_json
    exited: stopped
    type: temporary

=INFO REPORT==== 14-Apr-2025::01:22:57.706114 ===
    application: gleam_stdlib
    exited: stopped
    type: temporary

runtime error: Erlang error

An Erlang assignment pattern did not match.

unmatched value:
  Error(Fs(#([110, 111, 32, 115, 117, 99, 104, 32, 102, 105, 108, 101, 32, 111, 114, 32, 100, 105, 114, 101, 99, 116, 111, 114, 121], [102, 115, 46, 97, 112, 112])))

stacktrace:

Now I made sure to hard-set the versions for lustre (4.6.3) and its dev tools (1.6.5) to match their working counterparts, and that didn't change this behaviour

Maybe I'm just being silly again but...

orchid yacht
#

that error says "no such file or directory" "fs.app"

#

did you recently update your erlang install on one of these machines

small tusk
#

just double checked. both erlang are 27.3.1-1

#

the working one and the broken one

orchid yacht
#

thats not what i asked tho

small tusk
#

squint ... oh right

uhm, so I have two machines erroring out, and two running fine, the one I'm currently trying on is a fresh arch install, so obviously erlang has been installed...well... yesterday

#

but I also have a windows machine showing the same error, that one hasn't had any changes in the past few months

#

the windows machine I just threw aside because i considered it a windows problem before

#

interesting stuff innit? 😭

orchid yacht
#

the version of fs dev tool depends on changed in the latest release

#

dunno you’re not really offering up much to go off of ^.^

small tusk
#

hmm

#

I'll be reinstalling stuff later

#

see if anything changes

#

if it does i hope I'll know whatever altered the version of the fs tool i guess

#

also thank you for reading with me, you pinned it on fs which I couldn't yesterday so that's already a step forward

orchid yacht
#

you can find many many many hits by searching "erlang no such file or directory app"

#

are you sure you did not update your erlang version in these projects

small tusk
#

just realised: the faulty machines have never compiled a erlang targeted gleam project before

maybe the install looks the same as on other machines but is faulty somehow?

I'm 🤏 this close to just opening my personal laptop at work to find out hahah

orchid yacht
#

how did you install erlang?

small tusk
#

AUR on the machine this error comes from, Winget on the machine that has the same issue

#

i might uninstall and reinstall with asdf

small tusk
small tusk
orchid yacht
#

i have no idea im afraid

#

you have a problem with your erlang installation

#

i dont linux :3

small tusk
small tusk
#

i booted up my laptop and got jumpscared by my manager lmao

okay I'll go on an adventure later :3

fallen scroll
small tusk
#

hmm... tried asdf erlang latest (27.1-1) and proved (27.0)...

#

hmm...

orchid yacht
#

you will need to rebuild the project if you have changed erlang version

small tusk
#

right bunnyfacepalm hold on

#

WOOHOOO

#

Okay so steps taken:

  1. Uninstall any aur/yay erlang version, including rebar
  2. Reinstall both erlang and rebar using asdf (version 27 works, latest also works)
  3. CLEAN THE PROJECT
  4. YE IT WORK
#

thank you for your time, all <3

#

(thank you for your time hayleigh)

fallen scroll
#

Okay so steps taken:

  1. Uninstall any aur/yay erlang version, including rebar
    👍
small tusk
#

ye that was the entire problem haha

#

now looking into

#

windows

#

for which i guess mise would be available

fallen scroll
#

I use mise, is more versatile. One tool to fit all my needs

small tusk
#

[solved]《this was an erlang issue》 lustre dev tools erroring out

#

clearing lustres name

fallen scroll
#

I dont know windows so cant help

small tusk
#

nawh that's alright

#

don't expect it to be much trouble, plus I only dev on windows if I absolutely have to

fallen scroll
#

try mise and will see

#

I see u're using bun, mise can install lots of langs and tools

small tusk
#

yeah I must say I never considered mise, but now that I've seen its docs I think it'll replace asdf for me