Skip to content

Does not display last line if not terminated by newline when using docker #76

@netgusto

Description

@netgusto

Currently, the last log line is not displayed if the output is not terminated by newline, when using docker toolchains.

This is probably due to the docker client buffering the log until the line is complete.

To reproduce, snippet in go:

package main

import "fmt"
import "time"

func main() {
	fmt.Println("Hello, World!")
    currentTimeMillis := time.Now().UnixNano() / int64(time.Millisecond)
    fmt.Printf("Current Time Millis: %d", currentTimeMillis)
}

Output may or may not contain last line:

Screenshot 2020-02-17 at 10 50 44

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions