11package org .jetbrains .research .groups .ml_methods .error_reporting ;
22
33import com .intellij .openapi .application .ApplicationNamesInfo ;
4+ import com .intellij .openapi .application .PermanentInstallationID ;
45import com .intellij .openapi .application .ex .ApplicationInfoEx ;
56import com .intellij .openapi .diagnostic .Attachment ;
67import com .intellij .util .SystemProperties ;
@@ -16,7 +17,7 @@ class ErrorReportInformation {
1617 public enum InformationType {
1718 ERROR_DESCRIPTION , PLUGIN_NAME , PLUGIN_VERSION , OS_NAME , JAVA_VERSION , JAVA_VM_VENDOR ,
1819 APP_NAME , APP_FULL_NAME , APP_VERSION_NAME , IS_EAP , APP_BUILD , APP_VERSION , LAST_ACTION ,
19- ERROR_MESSAGE , ERROR_STACKTRACE , ERROR_HASH , ATTACHMENT_NAME , ATTACHMENT_VALUE
20+ PERMANENT_INSTALLATION_ID , ERROR_MESSAGE , ERROR_STACKTRACE , ERROR_HASH , ATTACHMENT_NAME , ATTACHMENT_VALUE
2021 }
2122
2223 private final EnumMap <InformationType , String > information = new EnumMap <>(InformationType .class );
@@ -28,18 +29,16 @@ private ErrorReportInformation(GitHubErrorBean error,
2829
2930 information .put (PLUGIN_NAME , error .getPluginName ());
3031 information .put (PLUGIN_VERSION , error .getPluginVersion ());
31-
3232 information .put (OS_NAME , SystemProperties .getOsName ());
3333 information .put (JAVA_VERSION , SystemProperties .getJavaVersion ());
3434 information .put (JAVA_VM_VENDOR , SystemProperties .getJavaVmVendor ());
35-
3635 information .put (APP_NAME , namesInfo .getProductName ());
3736 information .put (APP_FULL_NAME , namesInfo .getFullProductName ());
3837 information .put (APP_VERSION_NAME , appInfo .getVersionName ());
3938 information .put (IS_EAP , Boolean .toString (appInfo .isEAP ()));
4039 information .put (APP_BUILD , appInfo .getBuild ().asString ());
4140 information .put (APP_VERSION , appInfo .getFullVersion ());
42-
41+ information . put ( PERMANENT_INSTALLATION_ID , PermanentInstallationID . get ());
4342 information .put (LAST_ACTION , error .getLastAction ());
4443
4544 information .put (ERROR_MESSAGE , error .getMessage ());
0 commit comments