bcpeinhardt / glance_printer

Turn glance AST back into a gleam src string
5 stars 3 forks source link

glance_printer doesn't work with the latest glance #2

Open mooreryan opened 2 weeks ago

mooreryan commented 2 weeks ago

The glance_printer package does not currently work with the latest version of glance. I figured I would take a look at trying to get it working with the latest version, but when building and running tests from the github repo I get a few errors (like in-exhaustive case expressions). I assume that this is because glance itself accepts more than the gleam compiler. That leads to my question of, when developing, is there a way you run the tests such that the compiler doesn't give errors?

bcpeinhardt commented 2 weeks ago

TBH I'm not sure if I'll continue to update glance_printer. The majority of times people have used it they've been advised in the discord that it's not the appropriate tool for their use case haha. What are you currently trying to accomplish with glance_printer?

mooreryan commented 2 weeks ago

Some sort of codegen (probably what most others were attempting as well)--reading in some gleam code, generating AST with glance, making some additions, refactors, etc, and printing out with glance_printer.

bcpeinhardt commented 2 weeks ago

I've published an updated version (v1.2.0) which should work with v0.11.0 of glance for you :) I did it quite hastily so let me know if you have issues.