GoClipse / goclipse

Eclipse IDE for the Go programming language:
http://goclipse.github.io/
Eclipse Public License 1.0
841 stars 290 forks source link

Outline does not display when importing "C" #176

Open joegrasse opened 8 years ago

joegrasse commented 8 years ago

When writing a cgo application, the code outline doesn't work.

GoClipse Version 0.13.0.v201510291605

Simple code example that shows the problem.

package main

/*
#include <time.h>
#include <stdlib.h>
*/
import "C"
import "fmt"

func Random() int {
    return int(C.rand())
}

func Seed() {
    C.srand(C.uint(C.time(nil)))
}

func main() {
  Seed()
  fmt.Print(Random())
}
joegrasse commented 8 years ago

Is there anything else I can provide to help with this issue?

bruno-medeiros commented 8 years ago

I've just tried it out, and it seems to be an oracle limitation (oracle is used to provide the outline). I've opened a bug report: https://github.com/golang/go/issues/13971 but I don't think it will be easy to fix this feature

joegrasse commented 8 years ago

Thanks for looking at it.