Problems running unit tests on Windows 10

I was just wondering if there are any known issues with the unit tests, specifically the YailEvalTest?
After running ant tests, all of the YailEvalTests fail with the following error:


java.lang.RuntimeException: invalid syntax in eval form:
<string>:1:19: Invalid escape character syntax

at gnu.expr.Language.eval(Language.java:950)
at gnu.expr.Language.eval(Language.java:883)
at gnu.expr.Language.eval(Language.java:865)
at com.google.appinventor.buildserver.YailEvalTest.setUp(YailEvalTest.java:34)

All of the blocklyeditor, appengine and the other buildserver tests passā€¦

I should mention that Iā€™m using Windows 10 and I havenā€™t made any changes to this file. Does anyone else experience this problem? If not, I suppose itā€™s a problem with my setup. Any ideas how to fix it?

A quick glance at the code makes me think that the APP_INVENTOR_ROOT_DIR isnā€™t being escaped properly on Windows, resulting in C:\Users\foobar\Documents\... trigger all sorts of issues with \-based escaping in the YAIL code. Try changing the code in common/ā€¦/TestUtil.java so that it returns the absolute path with / substituted for \\ and see if that makes any difference. Nothing has changed here, so Iā€™m not sure why it would be failing now though.

1 Like

This was solved by this PR:

1 Like