Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

playground: error when it contains more than one operation #116

Open
avelino opened this issue Feb 8, 2018 · 0 comments
Open

playground: error when it contains more than one operation #116

avelino opened this issue Feb 8, 2018 · 0 comments

Comments

@avelino
Copy link
Member

avelino commented Feb 8, 2018

Input:

(+ 1 2)
(print "test")

Output:

>> (+ 1 2) (print "test")

Err: 1 parsing errors: obtained more than one node: [<[]Value>("+" 1 2) <[]Value>("print" "test")]

Server output:


2018/02/08 19:40:32 currentForm = {map[run:0x6cbcf0 clean:0x6cc1a0]} msgs = [run]
2018/02/08 19:40:33 http: panic serving 201.6.226.29:4191: runtime error: invalid memory address or nil pointer dereference
goroutine 41 [running]:
net/http.(*conn).serve.func1(0xc420256280)
        /usr/lib/go-1.9/src/net/http/server.go:1697 +0xd0
panic(0x7280a0, 0x961fa0)
        /usr/lib/go-1.9/src/runtime/panic.go:491 +0x283
github.com/rumlang/playground/forms.runRumRepl(0xc420260140, 0xc42012a580, 0xc4202c2400, 0x1, 0x1)
        /home/avelino/src/github.com/rumlang/playground/forms/home.go:104 +0x2cb
github.com/trumae/valente.FormImpl.Run(0xc42020e690, 0xc420260140, 0xc42012a580, 0x0, 0x0)
        /home/avelino/src/github.com/trumae/valente/valente.go:77 +0x391
github.com/trumae/valente.(*App).Run(0xc42012a580)
        /home/avelino/src/github.com/trumae/valente/valente.go:150 +0x6e
main.main.func2(0x935120, 0xc42021c460, 0xc420250500)
        /home/avelino/src/github.com/rumlang/playground/main.go:141 +0x580
net/http.HandlerFunc.ServeHTTP(0x79fce8, 0x935120, 0xc42021c460, 0xc420250500)
        /usr/lib/go-1.9/src/net/http/server.go:1918 +0x44
net/http.(*ServeMux).ServeHTTP(0x96c9a0, 0x935120, 0xc42021c460, 0xc420250500)
        /usr/lib/go-1.9/src/net/http/server.go:2254 +0x130
net/http.serverHandler.ServeHTTP(0xc420085380, 0x935120, 0xc42021c460, 0xc420250500)
        /usr/lib/go-1.9/src/net/http/server.go:2619 +0xb4
net/http.(*conn).serve(0xc420256280, 0x9356e0, 0xc42012a6c0)
        /usr/lib/go-1.9/src/net/http/server.go:1801 +0x71d
created by net/http.(*Server).Serve
        /usr/lib/go-1.9/src/net/http/server.go:2720 +0x288
2018/02/08 19:40:34 Reusing session 87e65a39-8443-4271-8fe3-a5b251ca9407
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant