elm-reactor icon indicating copy to clipboard operation
elm-reactor copied to clipboard

Import/Export erroneously disabled

Open aaronwhite opened this issue 7 years ago • 2 comments

We just witnessed this error when trying to export debugger state:

screen shot 2018-03-02 at 8 24 45 pm

The type referenced is:

type TemplateMsg =
    EditField TaskFieldUpdate
  | DragTask Int
  | DropTask Int
  | UpdateEditableState Int (EditState, Maybe String, Maybe String)
  | Save

type TaskFieldUpdate =
    Title String
  | RequiresUpload Bool

type EditState =
    None
  | Editing
  | Saving

I suspect that one fo the types contained begins with Task, the Elm Debugger assumed it was a Task (incorrectly)

Elm: 0.18 Browser: Chrome 64.0.3282.186 (Official Build) (64-bit)

aaronwhite avatar Mar 03 '18 01:03 aaronwhite

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

process-bot avatar Mar 03 '18 01:03 process-bot

The problem comes from the code here. I'll circle back to this later.

It was a bit difficult to reproduce this error without an http://sscce.org/. Is the style of the code in your image from your application? Or is that from Elm?

evancz avatar Jul 30 '18 18:07 evancz