Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Outline does not display when importing "C" #176

Open
joegrasse opened this issue Dec 9, 2015 · 3 comments
Open

Outline does not display when importing "C" #176

joegrasse opened this issue Dec 9, 2015 · 3 comments

Comments

@joegrasse
Copy link

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
Copy link
Author

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

@bruno-medeiros
Copy link
Contributor

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: golang/go#13971 but I don't think it will be easy to fix this feature

@joegrasse
Copy link
Author

Thanks for looking at it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants