elm-lang / elm-reactor

Interactive development tool that makes it easy to develop and debug Elm programs.
BSD 3-Clause "New" or "Revised" License
428 stars 63 forks source link

Import/Export erroneously disabled #238

Open aaronwhite opened 6 years ago

aaronwhite commented 6 years ago

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)

process-bot commented 6 years ago

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.

evancz commented 6 years ago

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?