{"action":"created","issue":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2078","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2078/labels{/name}","comments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2078/comments","events_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2078/events","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/2078","id":121138056,"number":2078,"title":"cgo struct fields highlighted as syntax errors","user":{"login":"bits01","id":10517679,"avatar_url":"https://avatars.githubusercontent.com/u/10517679?v=3","gravatar_id":"","url":"https://api.github.com/users/bits01","html_url":"https://github.com/bits01","followers_url":"https://api.github.com/users/bits01/followers","following_url":"https://api.github.com/users/bits01/following{/other_user}","gists_url":"https://api.github.com/users/bits01/gists{/gist_id}","starred_url":"https://api.github.com/users/bits01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bits01/subscriptions","organizations_url":"https://api.github.com/users/bits01/orgs","repos_url":"https://api.github.com/users/bits01/repos","events_url":"https://api.github.com/users/bits01/events{/privacy}","received_events_url":"https://api.github.com/users/bits01/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/labels/resolving","name":"resolving","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"ignatov","id":426890,"avatar_url":"https://avatars.githubusercontent.com/u/426890?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatov","html_url":"https://github.com/ignatov","followers_url":"https://api.github.com/users/ignatov/followers","following_url":"https://api.github.com/users/ignatov/following{/other_user}","gists_url":"https://api.github.com/users/ignatov/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatov/subscriptions","organizations_url":"https://api.github.com/users/ignatov/orgs","repos_url":"https://api.github.com/users/ignatov/repos","events_url":"https://api.github.com/users/ignatov/events{/privacy}","received_events_url":"https://api.github.com/users/ignatov/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/milestones/6","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/milestones/1.0.0","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/milestones/6/labels","id":169045,"number":6,"title":"1.0.0","description":"","creator":{"login":"mtoader","id":372850,"avatar_url":"https://avatars.githubusercontent.com/u/372850?v=3","gravatar_id":"","url":"https://api.github.com/users/mtoader","html_url":"https://github.com/mtoader","followers_url":"https://api.github.com/users/mtoader/followers","following_url":"https://api.github.com/users/mtoader/following{/other_user}","gists_url":"https://api.github.com/users/mtoader/gists{/gist_id}","starred_url":"https://api.github.com/users/mtoader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtoader/subscriptions","organizations_url":"https://api.github.com/users/mtoader/orgs","repos_url":"https://api.github.com/users/mtoader/repos","events_url":"https://api.github.com/users/mtoader/events{/privacy}","received_events_url":"https://api.github.com/users/mtoader/received_events","type":"User","site_admin":false},"open_issues":64,"closed_issues":533,"state":"open","created_at":"2012-09-02T21:49:33Z","updated_at":"2015-12-14T12:30:40Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-12-09T01:08:41Z","updated_at":"2015-12-14T19:38:45Z","closed_at":"2015-12-12T21:27:53Z","body":"Example:\r\n\r\nimport \"C\"\r\nvar cs *C.S\r\ncs.name   <--- name will be highlighted in red: Unresolved reference\r\n(name is actually valid in that struct, the code compiles and runs fine from the command line)\r\n\r\nI realize it's probably hard to be smart about cgo, but it could at least skip errors on data structures from the \"C\" package so that the screen doesn't light up all red."},"comment":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/comments/164537390","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/2078#issuecomment-164537390","issue_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2078","id":164537390,"user":{"login":"bits01","id":10517679,"avatar_url":"https://avatars.githubusercontent.com/u/10517679?v=3","gravatar_id":"","url":"https://api.github.com/users/bits01","html_url":"https://github.com/bits01","followers_url":"https://api.github.com/users/bits01/followers","following_url":"https://api.github.com/users/bits01/following{/other_user}","gists_url":"https://api.github.com/users/bits01/gists{/gist_id}","starred_url":"https://api.github.com/users/bits01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bits01/subscriptions","organizations_url":"https://api.github.com/users/bits01/orgs","repos_url":"https://api.github.com/users/bits01/repos","events_url":"https://api.github.com/users/bits01/events{/privacy}","received_events_url":"https://api.github.com/users/bits01/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T19:38:45Z","updated_at":"2015-12-14T19:38:45Z","body":"Not sure whether this fix is in the nightly 0.10.837 -- how can I find out what a nightly build includes?\r\nBut, it still seems to have error issues with a simple example:\r\n\r\n/*\r\ntypedef struct {\r\n  int x;\r\n  unsigned char y;\r\n  char *name;\r\n} S;\r\n*/\r\n\r\ncs := C.S{}\r\nfmt.Println(cs.x)\r\nfmt.Println(cs.y)\r\nfmt.Println(cs.name)\r\n\r\nSame for:\r\ncs := &C.S{}\r\ncs.x, cs.y, cs.name all show as errors."}}