in backend/analyzer/installedIDEs/InstallationsFinder.go [237:251]
func getIdeInfoByPackage(ideaPackage string) (parameterValue IdeInfo, err error) {
var a IdeInfo
var fileContent []byte
fileContent, err = ioutil.ReadFile(ideaPackage + IdeProductInfoRelatedToInstallationPath[runtime.GOOS])
if err != nil {
for currentOs, path := range IdeProductInfoRelatedToInstallationPath {
if content, er := ioutil.ReadFile(ideaPackage + path); er == nil {
fileContent = content
log.Printf("Could not find product-info.json for %s, but found it for %s ", runtime.GOOS, currentOs)
}
}
}
err = json.Unmarshal(fileContent, &a)
return a, err
}