Search code examples
lasso-lang

Lasso 9 Compatibility with Lasso 8 define_tag Syntax


I have a fairly complex Lasso 8 method (custom tag) that I want to run in both Lasso 8 and Lasso 9. (During our transition to Lasso 9 we have setup virtual hosts pointing to the same web root with different host names.) I have simplified the Lasso 8 method down to the following, and it will still not run in Lasso 9:

<?LassoScript

define_tag('old8method', -required='input', -type='string');
    return(#input);
/define_tag;

old8method('test');

?>

Results in the following error from Lasso 9:

Error Code: -1 Error Msg: Position was out of range: 0 max is 1 Error Stack:

3:1 myfile.lasso

Whether working with my 200-line method or this simplified test, the error is the same.

Any suggestions for modifying the Lasso 8 define_tag code so that Lasso 9 works with it?


Solution

  • This was a bug in the initial release of 9.2.6. If on Linux, try updating using your package manager. If OS X, download the latest installer from the LassoSoft website and re-install. If that doesn't fix it, revert back to 9.2.5 and file a bug with LassoSoft for the specific platform you're using.