Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The REPL on https://fennel-lang.org/ fails to load with [sprintf] unexpected placeholder #485

Closed
missblit opened this issue Sep 9, 2024 · 2 comments

Comments

@missblit
Copy link

missblit commented Sep 9, 2024

The REPL on https://fennel-lang.org/ fails to load with [sprintf] unexpected placeholder

Steps to reproduce:

  1. Open https://fennel-lang.org/ in Firefox or Chrome
  2. Observe that the REPL near the top of the page makes it to 99% but then gets stuck.
  3. Open the JS console and observe the error message: [sprintf] unexpected placeholder
  4. Try again but replacing "%.f" with "%.0f" in https://fennel-lang.org/fennel/fennel.lua, and observe that it now works.

As seen on the hell site: https://news.ycombinator.com/item?id=41484078
Screenshot 2024-09-08 at 17-38-13 the Fennel programming language

My thoughts: This is probably caused by this bug: fengari-lua/fengari#147 you can try to resolve that, or alternatively you can replace the instance (is it this?) of "%.f" with "%.0f" or whatever.

@technomancy
Copy link
Collaborator

Thanks for letting us know! It says a lot about Fengari that we have been using it for so long without any trouble that we don't even bother to check compatibility upon a release nowadays.

I've turned the web repl back to 1.5.0 for now while we investigate the issue.

Repository owner deleted a comment from samqiu Sep 13, 2024
@technomancy
Copy link
Collaborator

OK, I think I have a fix in 222e14c.

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

No branches or pull requests

2 participants