Article Preview
Buy Now
FEATURE
Stuck in Quarantine
Fixing Xojo's Quarantine Issue
Issue: 20.2 (March/April 2022)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 8,637
Starting Page Number: 28
Article Number: 20203
Related Web Link(s):
http://www.xdevmag.com/browse/15.5/15507
http://www.xdevmag.com/browse/16.2/16207
Excerpt of article text...
I am a huge fan of Xojo's Custom Code Reformatting feature—you install a XojoScript in Xojo's Scripts folder and have it change the standard way Xojo formats code in the editor (see
xDev 15.5 and 16.2http://www.xdevmag.com/browse/15.5/15507
andhttp://www.xdevmag.com/browse/16.2/16207
).After a recent Xojo update last fall, however, I noticed my script wasn't working. At the time, I was busy with
xDev
deadlines and didn't have time to troubleshoot. It wasn't a huge deal as my own code was the main thing I was editing and it was already formatted correctly. I just turned off Xojo's automatic formatting and forgot about it.Recently, however, I started working with some old code formatted in a manner I didn't like, so I turned the feature back on and saw it still wasn't working. I began to investigate, double-checking my script, installing the standard demo script from Xojo's documentation (
https://docs.xojo.com/UserGuide:Custom_Code_Reformatting
), and doing all sorts of troubleshooting.This was tedious, as you have to relaunch Xojo each time to get it to notice any changes to your Custom Code Reformatting setup. Eventually, I was completely stumped and out of ideas, as it seemed to me nothing I did made any difference—it was as though Xojo wasn't even seeing my script!
I checked Feedback and Forums for reports on the problem and found no mentions of it. Baffled, I posted a question on the Forum (
https://forum.xojo.com/t/reformatcode-xojo-script-broken-in-2021r3/68272/5
). Soon others were saying the feature worked fine for them, which was even more bewildering. Then I received a solution from the awesome Tim Parnell (Thanks, Tim!) who correctly identified that my copy of Xojo was in "quarantine."What the Heck is Quarantine?
...End of Excerpt. Please purchase the magazine to read the full article.