bakpakin / Fennel

Lua Lisp Language
https://fennel-lang.org
MIT License
2.48k stars 126 forks source link

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

Closed missblit closed 2 months ago

missblit commented 2 months ago

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: https://github.com/fengari-lua/fengari/issues/147 you can try to resolve that, or alternatively you can replace the instance (is it this?) of "%.f" with "%.0f" or whatever.

technomancy commented 2 months ago

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.

technomancy commented 2 months ago

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