I can’t get my solution to the accumulate exercise to run successfully on exercism.org
It works in my local environment using the “make guile” command. Am I missing something?
Looking at the community solutions, it seems to be broken for everyone. There is no published solution that passes the latest tests.
The error shown is following:
An error occurred
An error occurred while running your tests. This might mean that there was an issue in our infrastructure, or it might mean that you have something in your code that’s causing our systems to break.
Please check your code, and if nothing seems to be wrong, try running the tests again.
hmm… maybe I should have looked not only at chez’ output, but also at guile’s intermediate output.
While I could not figure out how the weird representation of 1+ as \x31;+ would cause the error, look what appears in guile’s output: ... (unquote #{1+}#) ..., which is much closer to the error message.
So I removed the guile invocation and now the original test suite (running only in chez scheme) passes in docker, too.
If I understand the call sequences correctly, a chez-scheme script runs the submitted code in both chez and guile, reading their output … and then failing to handle guile’s reader extension. So the chez-error-message is caused by unparseable guile-syntax.
The incr hack above avoids the unportable syntax and all is well.