Skip to content

Conversation

technomancy
Copy link
Contributor

This brings in the latest version of Fennel, which is 0.4.1-dev. The actual release of 0.4.1 is still a few days away, but the remaining issues do not affect TIC-80 at all. I would like to update this PR later so that it includes the final version of 0.4.1 anyway, but I wanted to open this as WIP so that it doesn't get missed for the 0.8.0 release of TIC.

One big improvement in this version is the reporting when there is a compiler error:

nice-error

Include fennelfriend module, which shows more friendly error messages
upon compilation errors.
Also add fennelfriend compiler helpers into options during
compilation.

This gives us better error messages, but the "pinpointing" of the
error which we have in CLI fennel does not work here, because it
depends upon being able to io.open the source file to find the source
code which is throwing the error.

We need some way of pinpointing errors when the source is only
available as a string.
Previously error suggestions could only work when the source file was
stored on disk, not when it was a string.
Copy link
Owner

@nesbox nesbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!
Thank you.

@nesbox nesbox merged commit 298036f into nesbox:master May 18, 2020
@nesbox nesbox added this to the 0.80.0 milestone May 18, 2020
@technomancy technomancy deleted the fennel-0.4 branch May 18, 2020 20:04
@nesbox
Copy link
Owner

nesbox commented May 18, 2020

Hmm, I see the Amethyst Waters game which is written on Fennel doesn't work now
https://stefandevai.itch.io/amethyst-waters
Could you please check it?

@technomancy
Copy link
Contributor Author

Yes, definitely. Sorry for the miscommunication here; "WIP" means "work in progress"; I wanted to post this for discussion even though it still needed more testing. =)

Thanks for catching this bug! Will get a fix in soon.

nesbox added a commit that referenced this pull request May 19, 2020
@nesbox
Copy link
Owner

nesbox commented May 19, 2020

Ok I reverted it yet here 8f332b9
Sorry for my misstep

@technomancy
Copy link
Contributor Author

No problem; I'll have something ready by the end of the week. Thanks.

@nesbox nesbox removed this from the 0.80.0 milestone Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants