Cannot submit code (Sky-Span)


#1

Hi, first of all my wizard name is Luskaner:

I’m trying to submit a game but I cannot do, this is the error that appears on the javascript console:

Uncaught Error: Aether options are invalid: [
    {
        "message": "invalid type: undefined (expected boolean)",
        "code": 0,
        "dataPath": "/includeFlow",
        "schemaPath": "/properties/includeFlow/type",
        "subErrors": null,
        "stack": "Error: invalid type: undefined (expected boolean)\n    at new s (http://codecombat.com/javascripts/aether.js:9157:7)\n    at a.createError (http://codecombat.com/javascripts/aether.js:9198:8)\n    at a.validateType (http://codecombat.com/javascripts/aether.js:9245:72)\n    at a.validateBasic (http://codecombat.com/javascripts/aether.js:9239:15)\n    at a.validateAll (http://codecombat.com/javascripts/aether.js:9228:404)\n    at a.validateObjectProperties (http://codecombat.com/javascripts/aether.js:9263:66)\n    at a.validateObject (http://codecombat.com/javascripts/aether.js:9258:210)\n    at a.validateAll (http://codecombat.com/javascripts/aether.js:9228:515)\n    at Object.o.validateMultiple (http://codecombat.com/javascripts/aether.js:9170:54)\n    at t.exports (http://codecombat.com/javascripts/aether.js:2617:47)\n    at new e (http://codecombat.com/javascripts/aether.js:2319:22)\n    at t.a.exports.t.transpileSession (http://codecombat.com/javascripts/app.js:4324:137)\n    at t.a.exports.t.rankSession (http://codecombat.com/javascripts/app.js:4321:394)\n    at HTMLButtonElement.e (http://codecombat.com/javascripts/vendor.js:507:27)\n    at HTMLDivElement.Z.event.dispatch (http://codecombat.com/javascripts/vendor.js:292:389)\n    at HTMLDivElement.m.handle (http://codecombat.com/javascripts/vendor.js:284:212)"
    }
] 

No matter how many code I comment, this still happens (if you so desire i’ll post my code).
I’m using Google Chrome 37.0.2062.124 m on Windows.

Thanks in advance,
Luskaner


#2

Sorry about that! Thanks for the heads up; I’ve committed a fix here. I will send it up in a production deploy soon.


#3

No problem i guess you guys need more unit tests :wink:


#4

We certainly do. The codebase has been growing like crazy, far outstripping my limited patience for adding tests, much to Scott’s dismay.