-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
On trying to copy the URL to clipboard for a shared request, a panic occurred:
hit browse
panic: No clipboard utilities available. Please install xsel, xclip, wl-clipboard or Termux:API add-on for termux-clipboard-get/set. [recovered]
panic: No clipboard utilities available. Please install xsel, xclip, wl-clipboard or Termux:API add-on for termux-clipboard-get/set.
goroutine 1 [running]:
github.com/rivo/tview.(*Application).Run.func1()
/home/hbagdi/go/pkg/mod/github.com/rivo/tview@v0.0.0-20220610163003-691f46d6f500/application.go:243 +0x4d
panic({0x902480, 0xc00007e2b0})
/usr/local/go/src/runtime/panic.go:884 +0x212
github.com/hbagdi/hit/pkg/cmd.(*browser).shareModal.func1.1.1(0x416167?, {0x972b76?, 0x92ece0?})
/home/hbagdi/hit/pkg/cmd/browse.go:160 +0xe5
github.com/rivo/tview.(*Modal).AddButtons.func1.1()
/home/hbagdi/go/pkg/mod/github.com/rivo/tview@v0.0.0-20220610163003-691f46d6f500/modal.go:106 +0x32
github.com/rivo/tview.(*Button).InputHandler.func1(0xc000171408?, 0x77223f?)
/home/hbagdi/go/pkg/mod/github.com/rivo/tview@v0.0.0-20220610163003-691f46d6f500/button.go:130 +0x42
github.com/rivo/tview.(*Box).WrapInputHandler.func1(0xc000261a00?, 0xc00062bea8?)
/home/hbagdi/go/pkg/mod/github.com/rivo/tview@v0.0.0-20220610163003-691f46d6f500/box.go:167 +0x53
github.com/rivo/tview.(*Form).InputHandler.func1(0xc0001714a0?, 0x778abf?)
/home/hbagdi/go/pkg/mod/github.com/rivo/tview@v0.0.0-20220610163003-691f46d6f500/form.go:673 +0xb7
github.com/rivo/tview.(*Box).WrapInputHandler.func1(0xc0005ae000?, 0x92ece0?)
/home/hbagdi/go/pkg/mod/github.com/rivo/tview@v0.0.0-20220610163003-691f46d6f500/box.go:167 +0x53
github.com/rivo/tview.(*Frame).InputHandler.func1(0xc000171508?, 0x77961f?)
/home/hbagdi/go/pkg/mod/github.com/rivo/tview@v0.0.0-20220610163003-691f46d6f500/frame.go:187 +0x7a
github.com/rivo/tview.(*Box).WrapInputHandler.func1(0xc000114120?, 0x92ece0?)
/home/hbagdi/go/pkg/mod/github.com/rivo/tview@v0.0.0-20220610163003-691f46d6f500/box.go:167 +0x53
github.com/rivo/tview.(*Modal).InputHandler.func1(0xc000171570?, 0x77f4df?)
/home/hbagdi/go/pkg/mod/github.com/rivo/tview@v0.0.0-20220610163003-691f46d6f500/modal.go:206 +0x90
github.com/rivo/tview.(*Box).WrapInputHandler.func1(0xc00021a1c0?, 0x7fb841f29800?)
/home/hbagdi/go/pkg/mod/github.com/rivo/tview@v0.0.0-20220610163003-691f46d6f500/box.go:167 +0x53
github.com/rivo/tview.(*Pages).InputHandler.func1(0x416167?, 0x10?)
/home/hbagdi/go/pkg/mod/github.com/rivo/tview@v0.0.0-20220610163003-691f46d6f500/pages.go:311 +0xa7
github.com/rivo/tview.(*Box).WrapInputHandler.func1(0xc00021d710?, 0xc000171678?)
/home/hbagdi/go/pkg/mod/github.com/rivo/tview@v0.0.0-20220610163003-691f46d6f500/box.go:167 +0x53
github.com/rivo/tview.(*Application).Run(0xc000268380)
/home/hbagdi/go/pkg/mod/github.com/rivo/tview@v0.0.0-20220610163003-691f46d6f500/application.go:335 +0x77d
github.com/hbagdi/hit/pkg/cmd.(*browser).Run(...)
/home/hbagdi/hit/pkg/cmd/browse.go:35
github.com/hbagdi/hit/pkg/cmd.executeBrowse({0xa21e98, 0xc000092940})
/home/hbagdi/hit/pkg/cmd/browse.go:323 +0x149
github.com/hbagdi/hit/pkg/cmd.Run({0xa21e98, 0xc000092940}, {0xc000024040, 0x2, 0x2})
/home/hbagdi/hit/pkg/cmd/run.go:79 +0x24d
main.main()
/home/hbagdi/hit/main.go:15 +0x8a
Steps To Reproduce
The panic message is self explanatory.Version
Development version 584cc8e5960ee355495f0748628333b09c85ccee.Hit file to use for reproducing the bug
@_global
~
baseURL: https://nodes.yolo42.com
version: 1
~
@gen-root-node
POST /v1/node
~y2j
title: root-node
~
@get-node
GET /v1/node/@1
@create-node
POST /v1/node
~y2j
title: "@1"
parent_id: "@2"
~
@delete-node
DELETE /v1/node/@1Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working