-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Test runner Rewrite operation does not handle triple-quoted strings correctly #272
Comments
Hello. Thanks for opening an issue on Exercism 🙂 At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories. This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you! If you're interested in learning more about this auto-responder, please read this blog post. |
@RamanBut-Husaim great find. Would you be willing to submit a PR to fix this? |
@ErikSchierboom I spent some time trying to understand what might be the issue here with no success, though, as I'm not so fluent with If there are no time restrictions to address the issue, assuming that I submitted a quick fix PR - exercism/fsharp#1308, I can continue the investigation in my spare time. Thank you. |
@RamanBut-Husaim It could also be that upgrading the Fantomas library fixes this |
Hello @ErikSchierboom , The incorrect escape happens as part of So it appears that the issue lives inside the Thanks. |
Thanks for checking! |
Source
https://forum.exercism.org/t/restapi-and-system-text-json-issue/15946
Description
The issue has been initially identified as part of the work on
rest-api
exercise for F# language. All tests are green locally, howeverexercism
platform test runner considers all tests as failed with the following error:The local debug showed that the issue is produced by the
Rewrite.fs
file. After the rewrite, the output of the test code has every"
inside the string escaped with additional\
, that makes the json inside the triple-quoted string invalid.Here is the full error output of the test in JetBrains Rider:
The entire content of the malformed file is:
Quick Fix
The replacement of triple-quoted strings
"""
with a single quote ones"
in the test file helps to address the issue. Here is the example of a test file that successfully passes the rewrite:The text was updated successfully, but these errors were encountered: