codewars / codewars.com

Issue tracker for Codewars
https://www.codewars.com
BSD 2-Clause "Simplified" License
2.09k stars 218 forks source link

Solution gets out of sync in translation #248

Open bkaestner opened 8 years ago

bkaestner commented 8 years ago

When one works quite a while on a translation and then saves, the solution can get out of sync with the one used in the tests:

  1. Translate a kata (might only occur after some time)
  2. Save
  3. Change the solution
  4. ??? (Tests get applied on the old solution)
  5. Reload.
  6. Save again.
  7. Publish.

┆Issue is synchronized with this Clickup by Unito

BrendanVadacoraBell commented 8 years ago

Related to this, I find editing the translation in the code-wars session can cause all lines to throw "not an expression" or missing ";", etc. However, in a perfect submission, i.e. if all tests, solution and starter solution are entered, saved and run at the same time (without any prior editing/saving) then the translation is compiled and tested as expected.

I even published a java translation after all tests passed in code-wars, edited the description after publishing and then re-running caused a compilation error on every line.

bkaestner commented 8 years ago

My previous experience was similar, but in JavaScript. I haven't tried again afterwards.