luckyfengyong / goclipse

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

Content assist does not work for some source code file #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I create a project with around 1,000 SLOCs with multiple files.
2. Try to use content assist like using hot key or this.

What is the expected output? What do you see instead?
The content assist works.
Instead, content assist works in some files but not all .go files.

What version of the product are you using? On what operating system?
0.7.6.v450

Please provide any additional information below.
Since it's a private project,  I can't provide source code. Any way to dump 
some log file for you to debug?

Original issue reported on code.google.com by lionghos...@gmail.com on 9 Oct 2013 at 9:05

GoogleCodeExporter commented 9 years ago
I find a test case.
package main 

import (
    "os"
    "fmt"
    "io/ioutil"
)

func main() {
    if len(os.Args) < 2 {
        fmt.Println("Please specify input file")
        return
    }
    byteBuf,err:=ioutil.ReadFile(os.Args[1])
    if err!=nil{
        fmt.Println(err)
        return
    }
    str:=string(byteBuf)
    fmt.Println(str)
}

Original comment by lionghos...@gmail.com on 17 Oct 2013 at 12:05