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

Copying and pasting code into REPL results in cryptic Deltron 3030 error #164

@Widdershin

Description

@Widdershin

Hello,

I have encountered a strange piece of behaviour using elm-repl.

Steps to reproduce:

  1. Copy the following two lines:
import List
a = []
  1. Open elm-repl, and paste the contents of your clipboard.

Expected result:

> import List
> a = []
[] : List a

Actual result:

 λ elm-repl
---- elm-repl 0.18.0 -----------------------------------------------------------
 :help for help, :exit to exit, more at <https://github.com/elm-lang/elm-repl>
--------------------------------------------------------------------------------
> import List

> a = []

/Users/nickj/Projects/<redacted>/repl-temp-000.js:6
 = d_e_l_t_r_o_n_3_0_3_0
 ^
SyntaxError: Unexpected token =
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:390:7)
    at startup (bootstrap_node.js:150:9)

Strangely enough, this behaviour is only apparent when copying and pasting multiple lines of code, not when typing the lines out by hand.

Additionally, it doesn't seem to matter which library we import (List is purely an example here).

OS: macOS Sierra 10.12.6
elm version: 0.18
node version: v6.10.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions