ppradeepk / golangide

Automatically exported from code.google.com/p/golangide
0 stars 0 forks source link

fmt.Scan not working properly within golang ide build ouput window #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enter a program that uses fmt.Scan to input several values . eg:

package main

import "fmt"

func main() {
    a, b, c, d := new(int), new(int), new(int), new(int)
    n, er := fmt.Scan(a, b, c, d)
    fmt.Println(n, er)
    fmt.Println(*a, *b, *c, *d)
}

2.Compile and run the program within liteide 
3.Enter 4 numeric values separated by 'returns' 
  eg 1, enter, 2, enter, 3, enter, 4, enter

What is the expected output? What do you see instead?
expected : 1 2 3 4
happens : program terminates after 3rd value. Output is 1 1 2 1 - the first 
value entered appears more than once

What version of the product are you using? On what operating system?
X12 (1.875) XP SP3, 32bit

Please provide any additional information below.

fmt.Scanln and fmt.Scanf appear to work correctly.
behaviour is as expected when program run from command line (cmd.exe)
space separated values work as expected

Original issue reported on code.google.com by iJonCarr...@gmail.com on 15 Jul 2012 at 10:06

GoogleCodeExporter commented 9 years ago

Original comment by Visua...@gmail.com on 16 Jul 2012 at 1:00

GoogleCodeExporter commented 9 years ago
fixed 
http://code.google.com/p/liteide/source/detail?r=7139f0bb120ea30ed618e3c5174dade
95407acdd

Original comment by Visua...@gmail.com on 16 Jul 2012 at 2:45