Talk:ASH Errors

From Kolmafia
Revision as of 09:31, 28 July 2010 by imported>PhilmASTErpLus
Jump to navigation Jump to search

Is this like were things like Script parsing error (X.ash, line Y) are listed?--Icon315 22:33, 14 April 2010 (UTC)

It's where they WILL be listed, once they are listed. --Bale 22:52, 14 April 2010 (UTC)

What Bale said. Also, I changed that to orange; I kept trying to click on it. :( --StDoodle (#1059825) 00:35, 15 April 2010 (UTC)

Also, if anyone's feeling particularly ambitious, https://kolmafia.svn.sourceforge.net/svnroot/kolmafia/src/net/sourceforge/kolmafia/textui/Parser.java should help. Just look for all the instances of parseException. (Speaking of which, would it be useful if these were presented in the order that they're checked?) --Heeheehee 00:17, 17 April 2010 (UTC)

I think alphabetical order would be better: this page is going to be excellent for first-time ASH scripters to understand what's wrong with their script. --Slyz 10:41, 17 April 2010 (UTC)

Should we add the correct examples? Or are the fixes clear enough? --Slyz 08:36, 18 April 2010 (UTC)

If anything particularly complicated shows, we can give both. But so far, if you can't follow as written, I'm not sure you ever will. (That's the hypothetical "you," not the specific "hey Slyz what's wrong with you, you"). --StDoodle (#1059825) 23:35, 19 April 2010 (UTC)


The following code results in an error.

void my_function( string myvar = "value" )
{
   /* Do something */
}

Error message:

Cannot initialize parameter myvar (filename.ash, line X)

--PhilmASTErpLus 09:30, 28 July 2010 (UTC)