FIRST-Tech-Challenge / SkyStone

FTC SDK
https://www.firstinspires.org/robotics/ftc/what-is-first-tech-challenge
275 stars 1.04k forks source link

BUG: Blockly + Safari(?) losing team programs #142

Closed penrods closed 4 years ago

penrods commented 4 years ago

Yesterday at a meet I learned of a serious Blockly bug that is impacting young teams. Although I haven't experience it myself, the impact of this is serious enough that I think it needs addressed ASAP.

Apparent Sequence of Events:

According to a description/workaround on Reddit, the issue involves spaces being replaced by " " at some point in that cycle. I know Safari isn't recommended, but solving this sounds pretty simple and the consequences of doing something that appears to work are severe. With some effort is is possible to recover the programs, but novice teams are more likely to just start over and/or just get discouraged.

cwm9cwm9 commented 4 years ago

I am the person who wrote the Reddit post.

Spaces in identifier names within the downloaded file were replaced with their \  equivalents. No other spaces were affected. The problem occured while saving from an iPad. The .xml importer could not interpret the file after this. No error was thrown.

I am attaching an example of the corrupt file. To be clear, only the affected file cannot be opened.

nbsp contaminated.zip

The file will not upload direclty until repaired. (Perhaps it is possible to direclty import the file manually for debugging purposes?)

A simple search and replace of \  with a space on the downloaded .blk was sufficient to recover the file.

lizlooney commented 4 years ago

@cwm9cwm9 Your details were really valuable. I've tracked down the cause of the problem. Thank you!