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


mdeatherage's picture

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


Nik's picture

Does this bug exist in Late

Does this bug exist in Late Night Software Script Debugger?

Nik's Latest Crappy Software


mdeatherage's picture

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

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text.
  • Each email address will be obfuscated in a human readble fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.
  • Images can be added to this post.

More information about formatting options

Captcha Image: you will need to recognize the text in it.
Please type in the letters/numbers that are shown in the image above.