elm-lang / elm-reactor

Interactive development tool that makes it easy to develop and debug Elm programs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import/Export erroneously disabled

aaronwhite opened this issue · 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)

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.

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?