Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Cryptic error message when starting line with let #131

Open
stevenheidel opened this issue Oct 23, 2016 · 3 comments
Open

Cryptic error message when starting line with let #131

stevenheidel opened this issue Oct 23, 2016 · 3 comments

Comments

@stevenheidel
Copy link

stevenheidel commented Oct 23, 2016

I tried the following line in the elm-repl:

let sample = "Multipart/mixed; boundary=\"sample_boundary\";"

My problem here is that I added a let at the beginning when it shouldn't be there. So this works:

> sample = "Multipart/mixed; boundary=\"sample_boundary\";"
"Multipart/mixed; boundary=\"sample_boundary\";" : String

However, the one with the let gives me this cryptic error message:

> let sample = "Multipart/mixed; boundary=\"sample_boundary\";"
-- SYNTAX PROBLEM -------------------------------------------- repl-temp-000.elm

I need whitespace, but got stuck on what looks like a new declaration. You are
either missing some stuff in the declaration above or just need to add some
spaces here:

5| t_s_o_l = ()
   ^
I am looking for one of the following things:

    whitespace

No idea what t_s_o_l is.

EDIT:
elm repl --version
0.17.1

@process-bot
Copy link

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 evancz changed the title Cryptic error message when trying to define a string Cryptic error message when starting line with let Oct 24, 2016
@ehamberg
Copy link

We also just hit this issue in 0.18.0:

---- elm-repl 0.18.0 -----------------------------------------------------------
 :help for help, :exit to exit, more at <https://github.com/elm-lang/elm-repl>
--------------------------------------------------------------------------------
> let x = 1
-- SYNTAX PROBLEM -------------------------------------------- repl-temp-000.elm

I need whitespace, but got stuck on what looks like a new declaration. You are
either missing some stuff in the declaration above or just need to add some
spaces here:

4| t_s_o_l = ()
   ^
I am looking for one of the following things:

    whitespace

@plumpNation
Copy link

plumpNation commented Apr 13, 2017

Working use case of let in is shown here -> https://guide.elm-lang.org/architecture/user_input/forms.html

Cannot help with the t_s_o_l, need to look furthur.

#85

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

No branches or pull requests

4 participants