Open mpogue2 opened 6 months ago
Details:
And, sure enough, this like contains an extra double quote. I bet that's what caused the crash.
Renaming THAT file, and SquareDesk now starts up normally. So, it does appear to be inside that file. File attached, and we know it's that line, and we know that the line contains an extra double quote character.
File: ECR_2024.02.28b.csv
I bet the problem is that parseCSV is returning garbage, because of the extra double quote. Yeah, if parseCSV doesn't return the right number of items, it should ignore that line.
OK, I edited ECR_2024.02.28.csv to eliminate all the large number of extra lines. Loads into palette slot #2 correctly now.
Double quotes in a pathname need to be written as doubleQuote doubleQuote to be valid CSV, because the entire pathname is written out surrounded by doubleQuotes.
NOTE: If our simple CSV parser encounters a naked double quote in a CSV file, yes the CSV file is malformed, but squareDesk will crash. In this case the only thing you can do is to delete the offending line from the CSV file. This might be hard to figure out, because the error message is obscure.
Commit: e50cedbf6c22c1a9a509649d7e51cc9cccd46585