Search code examples
gogoland

Can't show the whole long line in GoLand console


I wrote the code as follows:

func main() {
    fmt.Println("111111111111111111111111111111111111111111111111111111111111" +
       "1111111111111111111111111111")
}

Though I have unselected the checkbox of "use soft wraps in console":

enter image description here

The output in GoLand console is:

enter image description here

The output in windows cmd is:

enter image description here

What can I do to show the whole long line in GoLand console, just in windows cmd?


Solution

  • This is because GoLand 2020.1 enabled pty on Windows but default and old settings were not correctly migrated.

    Before doing the workaround below, upgrade to 2020.1.2, which should solve the issue. If it doesn't, then proceed with the workaround below.

    Disable go.run.processes.with.pty registry key in Ctrl+Shift+A | Registry... and this will be solved.

    For more details, see the related issue.