ICalico Crashes when Returning 2D arrays

Issue #167 resolved
Keith O'Hara created an issue

In Python:

import System
System.Array.CreateInstance(float, 2, 2)

In F#:

Array2D.create 2 2 ""

Comments (5)

  1. Doug Blank

    The output in console gives the culprit, bad Calico.Repr() :

    Unhandled Exception: System.ArgumentException: Array was not a one-dimensional array.
      at System.Array.GetValue (Int32 index) [0x00000] in <filename unknown>:0 
      at Calico.MainWindow.ArrayTypeToString (System.Array args) [0x00000] in <filename unknown>:0 
      at Calico.MainWindow.Repr (System.Object obj) [0x00000] in <filename unknown>:0 
    

    Need to make that a bit more robust, and handle 2D arrays.

  2. Doug Blank

    Band-aid applied: "<Multidimensional array, rank=2>"

    Need to use Repr in GUI, and need to make Repr safe (recursively) and handle Arrays.

  3. Log in to comment