Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Elm 0.15.1 (from 0.12) #9

Open
dusky3 opened this issue Oct 17, 2015 · 6 comments
Open

Update to Elm 0.15.1 (from 0.12) #9

dusky3 opened this issue Oct 17, 2015 · 6 comments

Comments

@dusky3
Copy link

dusky3 commented Oct 17, 2015

I was playing with the online debugger and even the following simple example that works at http://elm-lang.org/try throws a bunch of errors:

import Graphics.Element exposing (show)
main = show (toString 42)


Parse error at (line 1, column 25):
unexpected "e"
expecting "{-", " ", newline, reserved word 'as' or "("

When I remove exposing it throws this:

import Graphics.Element (show)
main = show (toString 42)


Error on line 2, column 14 to 22:
Could not find variable 'toString'

because as I can see in the hint it tries to import toString from JSON.toString. If I click on the hint it points to http://library.elm-lang.org/catalog/evancz-Elm/0.12/Json#toString and I get Server not found message.

It does't work even when I try this:

import Basics
import Graphics.Element (show)
main = show (Basics.toString 42)


Error on line 3, column 14 to 29:
Could not find variable 'Basics.toString'.

I believe that http://elm-lang.org/try and http://debug.elm-lang.org/try should use the same (latest) version of Elm otherwise the debugger is not usable at all.

BTW: the Try it! buttons next to the examples at http://debug.elm-lang.org are are not clickable, but if you click on the Debug it takes you to http://debug.elm-lang.org/try where you can see the examples (written in Elm 0.12).

@jvoigtlaender
Copy link
Contributor

According to the README of this repository, it is not really maintained anymore.

Maybe for the sake of keeping the http://debug.elm-lang.org/ site alive, it would make sense to update stuff nevertheless. But it could be a lot of work.

@dusky3
Copy link
Author

dusky3 commented Oct 17, 2015

I can read that it is not maintained anymore in the README, but when you come to http://debug.elm-lang.org/ it doesn't say anything there. There are lot of tutorials out there which suggest using the online version of the debugger, so it would be nice to include this information there as well.

@jvoigtlaender
Copy link
Contributor

Right. Up to @evancz to decide what form of warning to put on the http://debug.elm-lang.org/ page that while the examples there do work, newer code that is valid current Elm might not.

@iqualfragile
Copy link

actually update to 0.17.0

@doppioslash
Copy link

@iqualfragile I doubt it's that easy. Would need to have elm-reactor's time travelling debugging back, to begin with.

@iqualfragile
Copy link

there is http://package.elm-lang.org/packages/jinjor/elm-time-travel/1.0.6/
maybe that can be integrated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants