GithubHelp home page GithubHelp logo

Comments (7)

spex66 avatar spex66 commented on May 22, 2024 2

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.

dao avatar dao commented on May 22, 2024 1

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.

jenciso avatar jenciso commented on May 22, 2024 1

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.

simeji avatar simeji commented on May 22, 2024

What was happen?

from jid.

al123xiaaaa avatar al123xiaaaa commented on May 22, 2024

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.

jenciso avatar jenciso commented on May 22, 2024

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.

basbossink avatar basbossink commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.