Closed pauldijou closed 7 years ago
I'm experiencing the very same issue. Just cloned this boilerplate https://github.com/gkubisa/elm-app-boilerplate
So, I've narrowed the issue to AppRoute.elm
in the boilerplate.
Experiments brought me to this https://github.com/gkubisa/elm-app-boilerplate/blob/master/elm/App/AppRoute.elm#L50
Renaming the toString
function to toStr
seems to "fix" the "error". I'm not sure if it's this ticket is a good place to discuss this, but I found it interesting since it relates to the very special toString
function...
Hi, thanks a lot for taking the time to debug this! Looks like the problem is that the current regex is not robust enough to handle code not following elm-format
rules (for type annotations and function definitions). In the case of AppRoute.elm
, there's no space between toString
and the succeeding colon. For now, try to format the files first using elm-format (e.g. elm-format src/
) before opening them. Will include a fix in the next release. Thanks again!
[Enter steps to reproduce below:]
Atom Version: 1.13.0 Electron Version: 1.3.13 System: Ubuntu 16.04.1 Thrown From: elmjutsu package, v2.18.0
Stack Trace
Uncaught Error: Trying to send an unexpected type of value through port
fileContentsChangedSub
: Expecting an object with a field namedname
at _[2].values.values[3] but instead got: {"args":["url"]}Commands
Config
Installed Packages