Not sure if this student did the same thing, but they were working on the same app. They cannot open their file as of this morning. Here it is.
MiniGolf 2.aia (16.2 KB)
Not sure if this student did the same thing, but they were working on the same app. They cannot open their file as of this morning. Here it is.
MiniGolf 2.aia (16.2 KB)
This is the escaped subcomponent problem again.
{
"authURL": [
"ai2a.appinventor.mit.edu"
],
"YaVersion": "237",
"Source": "Form",
"Properties": {
"$Name": "Screen1",
"$Type": "Form",
"$Version": "32",
"ActionBar": "True",
"AppName": "MiniGolf",
"Title": "Fling It Mini Golf By Brody R.",
"Uuid": "0",
"$Components": [
{
"$Name": "HorizontalArrangement1",
"$Type": "HorizontalArrangement",
"$Version": "4",
"Uuid": "559228230",
"$Components": [
{
"$Name": "score",
"$Type": "Label",
"$Version": "6",
"Text": "score",
"Uuid": "1012759222"
},
{
"$Name": "stroke",
"$Type": "Label",
"$Version": "6",
"Text": "Stroke",
"Uuid": "-1204730806"
}
]
},
{
"$Name": "Hole",
"$Type": "Ball",
"$Version": "8",
"Radius": "15",
"Uuid": "-1531125588",
"X": "143",
"Y": "34"
},
{
"$Name": "Canvas1",
"$Type": "Canvas",
"$Version": "15",
"BackgroundColor": "&HFF00FF00",
"Height": "300",
"Width": "-2",
"Uuid": "864529745",
"$Components": [
{
"$Name": "Tee",
"$Type": "ImageSprite",
"$Version": "11",
"Picture": "tee_graphic.png",
"Uuid": "-149086664",
"X": "107",
"Y": "191"
},
{
"$Name": "LeftArrow",
"$Type": "ImageSprite",
"$Version": "11",
"Picture": "left_arrow.jpg",
"Uuid": "-537121361",
"X": "74",
"Y": "212"
},
{
"$Name": "right_arrow",
"$Type": "ImageSprite",
"$Version": "11",
"Picture": "right_arrow.jpg",
"Uuid": "-1454812472",
"X": "219",
"Y": "217"
},
{
"$Name": "GolfBall",
"$Type": "Ball",
"$Version": "8",
"Interval": "1",
"PaintColor": "&HFFFFFFFF",
"Radius": "10",
"Uuid": "-1252174831",
"X": "144",
"Y": "219"
},
{
"$Name": "obstacle",
"$Type": "ImageSprite",
"$Version": "11",
"Picture": "golf_obstacle1.png",
"Uuid": "1760534754",
"X": "35",
"Y": "57"
}
]
},
{
"$Name": "HorizontalArrangement2",
"$Type": "HorizontalArrangement",
"$Version": "4",
"Uuid": "121311718",
"$Components": [
{
"$Name": "ButtonNewGame",
"$Type": "Button",
"$Version": "8",
"Text": "New Game",
"Uuid": "-2037391905"
},
{
"$Name": "num",
"$Type": "Label",
"$Version": "6",
"BackgroundColor": "&HFF0000FF",
"FontBold": "True",
"FontSize": "28",
"Uuid": "-949303620"
}
]
},
{
"$Name": "Label2",
"$Type": "Label",
"$Version": "6",
"FontSize": "10",
"Text": "Use arrows to position ball on tee. Hit the ball by flinging it with your finger.",
"Uuid": "79323355"
},
{
"$Name": "Clock1",
"$Type": "Clock",
"$Version": "4",
"TimerInterval": "100",
"Uuid": "-2058360768"
}
]
}
}
Will attempt surgery ...
Corrected ...
MiniGolf 2.aia (16.2 KB)
I just merged this PR. It will go out in the next release.
I while ago I had another issue with a small demo aia I was working on which suddenly didnāt load any more ( and required scm surgery ). It contained only a 3x3 table arrangement with 9 buttons.
Editing the scm file found that the table arrangement had not only the Rows and Cols property, but also Row and Col ( which I see should be only in contained cells ). After deleting these two Row and Col from scm file everything worked again.
So maybe, when loading an aia we should simply discard properties not ābelongingā to the block?
P.S.
I could not reproduce the issue, no matter what I tried, so not sure how important is this, only reporting
Technically, one could put a TableArrangement inside a TableArrangement, so it is feasible that those properties be present. I agree that App Inventor should ignore them if any component has them but doesn't have a TableArrangement as a parent.