I have been adding some features to kGTD and am nearly done, but I just ran into a problem with compiling below. This seems to be a compiler bug, but I want to see if anyone else (ie. Ethan) has run into a similar situation. I’ve also posted this in the applescript newsgroup:
When I compile the Sync applescript (currently 665,241 bytes (652k)), the script fails to compile without any notices or errors. The compiling process typically (when it works) takes a few seconds or so. In comparison, when I add code, or in this case, simply a comment and try it again, it fails as shown by the fact that it returns immediately without updating the colors in the code to reflect variables, comments, etc. New code instead stays in it’s purple “edited” color. There are no warnings or errors displayed, and when I save the document and try to come back to it, it is set to “run-only” (luckily, I had a copy of it on the clipboard). Any clue what’s going on?
One additional note. When I pull some unrelated code out, to make the file size smaller, the compile does work. For this reason (and the fact that simply adding a comment at times breaks the code), I am positive that there is nothing wrong with the code itself.
Also, I’ve tried just pulling code into another file and trying it that way, and while it compiles fine like this, I don’t know enough about applescript to successfully use include files (reference issues mostly).
Thanks! Eric
Eric: You are likely
Eric:
You are likely running into the style run limit described by Chris Nebel in this E-mail message. Try setting all of your compiler styles to the same style and see if it works.
—Matt
Does this bug exist in Late
Does this bug exist in Late Night Software Script Debugger?
The bug is not in any script
The bug is not in any script editor, but in the built-in AppleScript decompiler. It’s not a limit in text size, either, but in the number of styled text runs. It would affect any program that gets decompiled styled script text back from AppleScript.
—Matt
Post new comment