Comments (7)
Just run into this Panic
as well on WSL.
This traceback points to a problem with the termbox-go
dependency.
/gopath/src/github.com/simeji/jid/engine.go:91
==> err := termbox.Init()
And following problems with termbox-go
you will find missing support of WSL for
WSL does not current support signal driven IO on tty devices, but we are tracking the work
(microsoft/WSL#601)
So this is not a native jid
issue.
It is a pity, because I would like to get this interactive bash jq
interpreter to work :)
And not having to switch to https://jqplay.org/ for testing.
(=PA=)
from jid.
jid also crashes for me under Bash WSL. i first installed the latest (just now) x64 release from zip. after that failed, i compiled from source (per 'Build' in README.md). this also fails. the build was quiet.
i executed go test
and it passed:
:/mnt/c/projects/go/src/github.com/simeji/jid$ go test PASS ok github.com/simeji/jid 0.084s
:~$ echo '{"aa":"2AA2","bb":{"aaa":[123,"cccc",[1,2]],"c":321}}'| jid
panic: invalid argument
goroutine 1 [running]:
panic(0x59d340, 0xc82000a850)
/usr/local/go/src/runtime/panic.go:464 +0x3e6
github.com/simeji/jid.(*Engine).Run(0xc8200da000, 0x0, 0x0)
/mnt/c/projects/go/src/github.com/simeji/jid/engine.go:91 +0x94
main.run(0x7fef99524490, 0xc8200da000, 0xc820041f00, 0x7fef99524490)
/mnt/c/projects/go/src/github.com/simeji/jid/cmd/jid/jid.go:59 +0x39
main.main()
/mnt/c/projects/go/src/github.com/simeji/jid/cmd/jid/jid.go:54 +0x73a
from jid.
I upgrade my WSL, but the problem is there yet
jenciso@dellPE:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
jenciso@dellPE:~$ jid --version
jid version v0.7.2
jenciso@dellPE:~$ echo '{"aa":"2AA2","bb":{"aaa":[123,"cccc",[1,2]],"c":321}}'| jid
panic: invalid argument
goroutine 1 [running]:
panic(0x51fd20, 0xc42000a820)
/goroot/src/runtime/panic.go:500 +0x1a1
github.com/simeji/jid.(*Engine).Run(0xc4200d8000, 0x0, 0x0)
/gopath/src/github.com/simeji/jid/engine.go:91 +0x97d
main.run(0x5cac60, 0xc4200d8000, 0xc42003bf00, 0x5cac60)
/go/cmd/jid/jid.go:59 +0x49
main.main()
/go/cmd/jid/jid.go:54 +0x2ea
jenciso@dellPE:~$
from jid.
What was happen?
from jid.
Sorry,I haven't solved this problem yet.I'm used jid(amd64) in Ubuntu14.04(Windows Subsystem for Linux).
al123xiaaaa@HASEE-PC:~/jid$ uname -a
Linux HASEE-PC 3.4.0+ #1 PREEMPT Thu Aug 1 17:06:05 CST 2013 x86_64 x86_64 x86_64 GNU/Linux
al123xiaaaa@HASEE-PC:~/jid$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
from jid.
Same problem using WSL
jenciso@TEC1971:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
jenciso@TEC1971:~$
jenciso@TEC1971:~$ echo '{"aa":"2AA2","bb":{"aaa":[123,"cccc",[1,2]],"c":321}}'| jid
panic: invalid argument
goroutine 1 [running]:
panic(0x51fd20, 0xc42000a840)
/goroot/src/runtime/panic.go:500 +0x1a1
github.com/simeji/jid.(*Engine).Run(0xc4200ba000, 0x0, 0x0)
/gopath/src/github.com/simeji/jid/engine.go:91 +0x97d
main.run(0x5cac60, 0xc4200ba000, 0xc420037f00, 0x5cac60)
/go/cmd/jid/jid.go:59 +0x49
main.main()
/go/cmd/jid/jid.go:54 +0x2ea
jenciso@TEC1971:~$
from jid.
Maybe as a consolation/work-around jid does appear to function correctly using the _amd64 binary in the new in preview Windows Terminal \o/
from jid.
Related Issues (20)
- Support for less strict JSON HOT 2
- jq's .[] filter doesn't work HOT 4
- Add coloreful output like in jq HOT 2
- Incorrect work, when json file have similar keys.
- Dot in keyname clashes with drilldown token HOT 5
- version string is old HOT 1
- Reading a file by passing it as first argument HOT 2
- .. not supported
- Does NOT work inside tmux HOT 3
- Performance is extremely slow with a 7MB JSON file HOT 3
- Replace gox with goreleaser HOT 1
- Feature request: Raw search
- Feature request: Scroll with key arrows and pageup-down HOT 2
- Feature Request: Shift+TAB to jump to previous matching key
- Feature request: Cursor navigation and node selection
- How to show the array length?
- Add support for [] HOT 8
- Loaded JSON file is one-line form inside jid HOT 4
- JSON HOT 1
- Swallows keystrokes when editing line, no error reporting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jid.