antonmedv / fx

Terminal JSON viewer & processor
https://fx.wtf
MIT License
19.01k stars 441 forks source link

Panic error when invoked directly on Windows #289

Closed sergeevabc closed 7 months ago

sergeevabc commented 8 months ago

Windows 7 x64, FX 21.0–31.0, example.json

Documentation says I could run fx directly, but…

$ fx example.json
panic: prepare console: set console mode: The parameter is incorrect.

goroutine 1 [running]:
main.main()
        /home/runner/work/fx/fx/main.go:192 +0xfb9

However, the following command works

$ fx example.json .glossary .title
example glossary
antonmedv commented 8 months ago

Works for me.

image

I guess this is a windows specific problem.

sergeevabc commented 8 months ago

I guess this is a windows specific problem.

Which exists since version 21.0 (when you switched to Go), i.e. since 2022-04.