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.
And there may be more, but I did several exercises from the Scheme track with the in-browser editor on my phone while I was hiding from social interaction at my in-laws, and I’m pretty sure this doesn’t happen there. Just kidding, this totally happens there, too.
For what it’s worth, I’m using Guile 3.0.5 on Debian Bullseye (but, like I said, this also happens when using the in-browser editor).
I just had some debugging output printing that I didn’t notice because when you run the tests locally it swallows up stdout. I removed them and now everything works for me except Accumulate.
encountered same error here. still got the error when testing on the website:
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. …
As there’s no obvious clue for bugs, I copy all the test codes to my local machine, including “test.scm” and “test-util.ss”, only to find my solution passed all the test smoothly, weird.