Menu

#97 Difficulties with "write" in procedures

v1.0.x
fixed
None
v1.0.9
Bug Fix
2016-09-26
2016-08-31
Erik Hänel
No

There are problems with write, if it's used inside of procedures. It won't evaluate the following lines:

write to_uppercase("Blackbox view") -set file="<savepath>/result.txt" -noquotes -mode=append
write to_uppercase("Blackbox view") -set file=<savepath>/result.txt -noquotes -mode=append

Analysis:
Error is related with an extra whitespace at the beginning of the line. This is not recognized as command expression in

int BI_CheckKeyword(string&, Datafile&, Output&, Settings&, Parser&, Define&, PlotData&, Script&, bool)

Implementation:
Changed all occurences of sCmd[0] to sCommand[0], what is actually the correct version for the conditions in which sCmd[0] was used.

Documentation:
Not needed - bug fix.

Tests:
Fix was tested in the context of its error occurence. No deviations detected. Fix was implemented successfully.

1 Attachments

Discussion

  • Erik Hänel

    Erik Hänel - 2016-08-31
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2016-08-31
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,3 +3,11 @@
     write to_uppercase("Blackbox view") -set file="<savepath>/result.txt" -noquotes -mode=append
     write to_uppercase("Blackbox view") -set file=<savepath>/result.txt -noquotes -mode=append
     ~~~
    +
    +**Analysis:**
    +
    +**Implementation:**
    +
    +**Documentation:**
    +
    +**Tests:**
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2016-08-31
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -5,6 +5,10 @@
     ~~~
    
     **Analysis:**
    +Error is related with an extra whitespace at the beginning of the line. This was not recognized as command expression in
    +~~~C
    +int BI_CheckKeyword(string&, Datafile&, Output&, Settings&, Parser&, Define&, PlotData&, Script&, bool)
    +~~~
    
     **Implementation:**
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2016-08-31
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -5,13 +5,15 @@
     ~~~
    
     **Analysis:**
    -Error is related with an extra whitespace at the beginning of the line. This was not recognized as command expression in
    +Error is related with an extra whitespace at the beginning of the line. This is not recognized as command expression in
     ~~~C
     int BI_CheckKeyword(string&, Datafile&, Output&, Settings&, Parser&, Define&, PlotData&, Script&, bool)
     ~~~
    
     **Implementation:**
    +Changed all occurences of `sCmd[0]` to  `sCommand[0]`, what is actually the correct version for the conditions in which `sCmd[0]` was used.
    
     **Documentation:**
    +Not needed - bug fix.
    
     **Tests:**
    
    • status: implementing --> testing
     
  • Erik Hänel

    Erik Hänel - 2016-09-26
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -17,3 +17,4 @@
     Not needed - bug fix.
    
     **Tests:**
    +Fix was tested in the context of its error occurence. No deviations detected. Fix was implemented successfully.
    
    • status: testing --> fixed
     

Anonymous
Anonymous

Add attachments
Cancel