Louis Pilfold

Results 1853 comments of Louis Pilfold

I think this now teaches too many things at the same time, and it doesn't make clear that the rest of the list is assigned to a variable. I prefer...

For sure! Let's improve this lots. The current errors are nowhere near as good as they are expected to be, not sure why.

Wow, how did that slip through! What a horrid bug. Thanks all

Oh dear! That's unfortunate. Thank you for the report

Oh yes! This is a bug, sorry about that. https://github.com/gleam-lang/gleam/blob/bed57729dfed84c609f5b002c5337a76abcf96ae/compiler-core/templates/gleam%40%40main.erl#L22 We are ensuring the root application is started, but it should be the application that the module being run belongs...

It'll have to be the name of the application that contains that module rather than module itself.

I've tried running that in a few projects with various deps and it always returns `undefined` for me. Is there something else we'd need to add to make it work?

The module being run must be from a dependency package rather than the root package.