Skip to content

Conversation

mkokho
Copy link

@mkokho mkokho commented Aug 4, 2017

Hey Felix :) Small fix for the tool, maybe some Windows users exist out there.

error was:
.\common.go:75: cannot use syscall.Stdout (type syscall.Handle) as type int in argument to terminal.IsTerminal

found solution here:
golang/go#12978 (comment)

tested both terminal and non terminal :)

$ ./kt consume -pretty -topic WordsWithCountsTopic
{
"partition": 0,
"offset": 0,
"key": "",
"value": "1"
}
$ ./kt consume -pretty -topic WordsWithCountsTopic > x
$ cat x
{"partition":0,"offset":0,"key":"","value":"1"}

error was:
.\common.go:75: cannot use syscall.Stdout (type syscall.Handle) as type int in argument to terminal.IsTerminal

found solution here:
golang/go#12978 (comment)

tested both terminal and non terminal :)

$ ./kt consume -pretty -topic WordsWithCountsTopic
{
  "partition": 0,
  "offset": 0,
  "key": "",
  "value": "1"
}
$ ./kt consume -pretty -topic WordsWithCountsTopic > x
$ cat x
{"partition":0,"offset":0,"key":"","value":"1"}
@fgeller
Copy link
Owner

fgeller commented Aug 4, 2017

hey misha! :)

what a weird case - thanks for looking into it and providing a solution!

@fgeller fgeller merged commit 58498fa into fgeller:master Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants