{"action":"created","issue":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1397","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1397/labels{/name}","comments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1397/comments","events_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1397/events","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/1397","id":59398830,"number":1397,"title":"[1.0.0.alpha#134] plugin show unsolved error,but compile well.","user":{"login":"bronze1man","id":1107541,"avatar_url":"https://avatars.githubusercontent.com/u/1107541?v=3","gravatar_id":"","url":"https://api.github.com/users/bronze1man","html_url":"https://github.com/bronze1man","followers_url":"https://api.github.com/users/bronze1man/followers","following_url":"https://api.github.com/users/bronze1man/following{/other_user}","gists_url":"https://api.github.com/users/bronze1man/gists{/gist_id}","starred_url":"https://api.github.com/users/bronze1man/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bronze1man/subscriptions","organizations_url":"https://api.github.com/users/bronze1man/orgs","repos_url":"https://api.github.com/users/bronze1man/repos","events_url":"https://api.github.com/users/bronze1man/events{/privacy}","received_events_url":"https://api.github.com/users/bronze1man/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-01T15:01:05Z","updated_at":"2015-03-01T15:27:59Z","closed_at":null,"body":"![image](https://cloud.githubusercontent.com/assets/1107541/6431303/6c05b04e-c066-11e4-8f5a-dee68c11565b.png)\r\n\r\n```go\r\npackage goCommand\r\n\r\nimport (\r\n\t\"fmt\"\r\n\t\"path/filepath\"\r\n\r\n\t\"github.com/bronze1man/kmg/kmgCmd\"\r\n\t\"github.com/bronze1man/kmg/kmgConfig\"\r\n\t\"github.com/bronze1man/kmg/kmgConsole\"\r\n\t\"runtime\"\r\n)\r\n\r\nfunc init() {\r\n\tkmgConsole.AddAction(kmgConsole.Command{\r\n\t\tName:   \"GoCrossCompileInit\",\r\n\t\tDesc:   \"cross compile init target in current project\",\r\n\t\tRunner: runGoCrossCompileInit,\r\n\t})\r\n}\r\n\r\nfunc runGoCrossCompileInit() {\r\n\tkmgc, err := kmgConfig.LoadEnvFromWd()\r\n    kmgConsole.ExitOnErr(err)\r\n\tGOROOT := kmgc.GOROOT\r\n\tif GOROOT == \"\" {\r\n        kmgConsole.ExitOnErr(fmt.Errorf(\"you must set $GOROOT in environment to use GoCrossComplieInit\"))\r\n\t}\r\n\tvar makeShellArgs []string\r\n\tvar makeShellName string\r\n\trunCmdPath := filepath.Join(GOROOT, \"src\")\r\n\tif runtime.GOOS == \"windows\" {\r\n\t\tmakeShellName = \"cmd\"\r\n\t\tmakeShellArgs = []string{\"/C\", filepath.Join(GOROOT, \"src\", \"make.bat\"), \"--no-clean\"}\r\n\t} else {\r\n\t\tmakeShellName = filepath.Join(GOROOT, \"src\", \"make.bash\")\r\n\t\tmakeShellArgs = []string{\"--no-clean\"}\r\n\t}\r\n\tfor _, target := range kmgc.CrossCompileTarget {\r\n\t\tcmd := kmgCmd.NewOsStdioCmd(makeShellName, makeShellArgs...)\r\n\t\tkmgCmd.SetCmdEnv(cmd, \"GOOS\", target.GetGOOS())\r\n\t\tkmgCmd.SetCmdEnv(cmd, \"GOARCH\", target.GetGOARCH())\r\n\t\tcmd.Dir = runCmdPath\r\n\t\terr = cmd.Run()\r\n        kmgConsole.ExitOnErr(err)\r\n\t}\r\n\treturn\r\n}\r\n```\r\n\r\nThe working project is open source: \r\nhttps://github.com/bronze1man/kmg\r\n\r\nProblem file url:\r\nhttps://github.com/bronze1man/kmg/blob/c42dbbfa564e17627ebbf09e08c083ae45a5daa5/kmg/internal/goCommand/GoCrossCompileInit.go"},"comment":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/comments/76601662","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/1397#issuecomment-76601662","issue_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1397","id":76601662,"user":{"login":"zolotov","id":140920,"avatar_url":"https://avatars.githubusercontent.com/u/140920?v=3","gravatar_id":"","url":"https://api.github.com/users/zolotov","html_url":"https://github.com/zolotov","followers_url":"https://api.github.com/users/zolotov/followers","following_url":"https://api.github.com/users/zolotov/following{/other_user}","gists_url":"https://api.github.com/users/zolotov/gists{/gist_id}","starred_url":"https://api.github.com/users/zolotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolotov/subscriptions","organizations_url":"https://api.github.com/users/zolotov/orgs","repos_url":"https://api.github.com/users/zolotov/repos","events_url":"https://api.github.com/users/zolotov/events{/privacy}","received_events_url":"https://api.github.com/users/zolotov/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T15:27:59Z","updated_at":"2015-03-01T15:27:59Z","body":"Can't recreate. What exactly inspection report it was? As far as I understand it can't be unresolved, unresolved inspection just isn't run on variable declarations."}}