add new task       

Task ID:  4151  Some manager 1 scripts gives errors in 7.8    
 
Created by fai04d on 2016-05-03 3:12 PM, 749 days ago
Project:  User Interface
Category:  Bug
Priority:  [no priority]
Assigned to:  [not assigned]  
Status:  closed
Apsim Version:7.8
Your Name:
Contact Details:
 
 

show inline images      show change history

 comment 42590 posted by hol353 on 2017-04-21 3:30 PM, 396 days ago 

Fixed in R3898

 comment 40388 posted by zur003 on 2016-05-12 11:47 AM, 740 days ago 

OK. I've fixed this in revision 3898, but I'm not closing it off just yet because I think we need to consider the consequences of this bug. It means that the Apsim 7.8 has a bunch of stuff in the Management toolbox that will fail when the user attempts to use them. That's a pretty serious problem. How do we provide user support for this?

 comment 40387 posted by zur003 on 2016-05-12 10:05 AM, 740 days ago 

That "white space" consists of tab characters.

Two things ought to be done:

1) Replace all tab characters in Management.xml with spaces.

2) Fix up the manager code so that tabs are considered as equivalent to spaces.

This is a pretty serious problem, as it can cause very basic simulations to fail, and the reason will be very non-obvious to the average user.

 comment 40369 posted by fai04d on 2016-05-03 3:12 PM, 749 days ago 
Some of the old manager scripts seem to have extra white space at the end of them which is causing them to fail with the following error:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
APSIM Fatal Error
-------------------
Cannot use character " " where it is indicated in line

^
Component name: paddock.Sow on a fixed date
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Removing the trailing white space from the script fixes the problem. It's present in at least three scripts; 'Sow on a fixed date', 'Reset water, nitrogen, surfaceOM and phosphorus on fixed date' and Fertilise at sowing'.