Skip to content

Commit 2e9ec8a

Browse files
chore: remove reporting of attachments to sentry [IDE-1046] (#675)
* chore: remove reporting of attachments to sentry IntelliJ marked the API used as internal with 2025.1. This means we cannot report it anymore. In the future, we would use analytics service anyways for error reporting, so they turn up both in datadog and snowflake * fix: Add INTERNAL_API_USAGES to plugin verifier failure levels The plugin verifier task was missing `INTERNAL_API_USAGES` in its failure level configuration. This change adds it to ensure that internal API usages are also considered as failures during verification. This should lead to us catching compatibility issues with internal api changes in newer IDE versions. Relates to: #None
1 parent 88a34e0 commit 2e9ec8a

File tree

3 files changed

+31
-11
lines changed

3 files changed

+31
-11
lines changed

CHANGELOG.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,34 @@
11
# Snyk Security Changelog
2+
## [2.12.1]
3+
### Changed
4+
- remove usage of internal IntelliJ API to allow plugin release
25

3-
## [2.11.2]
6+
## [2.12.0]
47
### Changed
5-
- Using Code Lens or Code Actions to view an AI Fix now shows the affected issue in the tree view and details pane of the Snyk window.
8+
- chore: bump ls protocol version to 18 by @ShawkyZ in https://github.com/snyk/snyk-intellij-plugin/pull/646
9+
- chore: update IntelliJ plugin to support 2025.1, fix workspaceFolder config by @bastiandoetsch in https://github.com/snyk/snyk-intellij-plugin/pull/647
10+
- fix: force-save settings on receiving auth info by @bastiandoetsch in https://github.com/snyk/snyk-intellij-plugin/pull/650
11+
- feat: scan summary panel [IDE-894] by @andrewrobinsonhodges-snyk in https://github.com/snyk/snyk-intellij-plugin/pull/648
12+
- feat: add job to compare hashes of static resource files by @andrewrobinsonhodges-snyk in https://github.com/snyk/snyk-intellij-plugin/pull/649
13+
- feat: add reference folder to branch chooser by @bastiandoetsch in https://github.com/snyk/snyk-intellij-plugin/pull/652
14+
- fix: always set reference and base branch folder by @ShawkyZ in https://github.com/snyk/snyk-intellij-plugin/pull/653
15+
- fix: folderConfig type [IDE-871] by @bastiandoetsch in https://github.com/snyk/snyk-intellij-plugin/pull/655
16+
- chore: remove unnecessary scripts which were migrated to language server [IDE-655] by @DariusZdroba in https://github.com/snyk/snyk-intellij-plugin/pull/651
17+
- fix: check for disposal before updating the issue cache by @bastiandoetsch in https://github.com/snyk/snyk-intellij-plugin/pull/658
18+
- feat/ai fix issue panel [IDE-956] [IDE-760] by @andrewrobinsonhodges-snyk in https://github.com/snyk/snyk-intellij-plugin/pull/656
19+
- fix: only include folders in their parent projects when calculating content roots [IDE-1012] by @andrewrobinsonhodges-snyk in https://github.com/snyk/snyk-intellij-plugin/pull/659
20+
- refactor: remove unused code now that the IDE no longer sends AI fix … by @andrewrobinsonhodges-snyk in https://github.com/snyk/snyk-intellij-plugin/pull/662
21+
- fix: only update tree view on UI thread by @andrewrobinsonhodges-snyk in https://github.com/snyk/snyk-intellij-plugin/pull/661
22+
- fix: add border to delta sumamry toggle to improve visibility by @andrewrobinsonhodges-snyk in https://github.com/snyk/snyk-intellij-plugin/pull/660
23+
- fix: use URI to determine file path by @bastiandoetsch in https://github.com/snyk/snyk-intellij-plugin/pull/664
24+
- fix: update cache on receive diags by @andrewrobinsonhodges-snyk in https://github.com/snyk/snyk-intellij-plugin/pull/663
25+
- fix: tree node race selection on windows by @ShawkyZ in https://github.com/snyk/snyk-intellij-plugin/pull/667
26+
- fix: scale web fonts using 10px as a reference size. by @andrewrobinsonhodges-snyk in https://github.com/snyk/snyk-intellij-plugin/pull/666
27+
- fix: round severity icons updated [IDE-897] by @acke in https://github.com/snyk/snyk-intellij-plugin/pull/669
28+
- fix: update code and warning colours for ai fix and ignores by @andrewrobinsonhodges-snyk in https://github.com/snyk/snyk-intellij-plugin/pull/670
29+
- fix/icon updates [IDE-987] by @andrewrobinsonhodges-snyk in https://github.com/snyk/snyk-intellij-plugin/pull/671
30+
- fix: icon updates [IDE-897] by @andrewrobinsonhodges-snyk in https://github.com/snyk/snyk-intellij-plugin/pull/672
31+
- fix: create CLI download directory if it non existent by @DariusZdroba in https://github.com/snyk/snyk-intellij-plugin/pull/673
632

733
## [2.11.1]
834
### Changed

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ tasks {
189189
failureLevel.set(
190190
listOf(
191191
org.jetbrains.intellij.tasks.RunPluginVerifierTask.FailureLevel.COMPATIBILITY_PROBLEMS,
192-
org.jetbrains.intellij.tasks.RunPluginVerifierTask.FailureLevel.INVALID_PLUGIN
192+
org.jetbrains.intellij.tasks.RunPluginVerifierTask.FailureLevel.INVALID_PLUGIN,
193+
org.jetbrains.intellij.tasks.RunPluginVerifierTask.FailureLevel.INTERNAL_API_USAGES,
193194
)
194195
)
195196
}

src/main/kotlin/snyk/errorHandler/SnykErrorReportSubmitter.kt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package snyk.errorHandler
22

3-
import com.intellij.diagnostic.AbstractMessage
43
import com.intellij.diagnostic.PluginException
5-
import com.intellij.openapi.diagnostic.Attachment
64
import com.intellij.openapi.diagnostic.ErrorReportSubmitter
75
import com.intellij.openapi.diagnostic.IdeaLoggingEvent
86
import com.intellij.openapi.diagnostic.SubmittedReportInfo
@@ -23,21 +21,16 @@ class SnykErrorReportSubmitter : ErrorReportSubmitter() {
2321
for (event in events) {
2422
var throwable = event.throwable
2523
val description = additionalInfo ?: ""
26-
var attachments = listOf<Attachment>()
2724

28-
if (event.data is AbstractMessage) {
29-
throwable = (event.data as AbstractMessage).throwable
30-
attachments = (event.data as AbstractMessage).includedAttachments
31-
}
3225
if (throwable is PluginException && throwable.cause != null) {
3326
// unwrap PluginManagerCore.createPluginException
3427
throwable = throwable.cause
3528
}
29+
3630
SentryErrorReporter.submitErrorReport(
3731
throwable,
3832
consumer = consumer,
3933
description = description,
40-
attachments = attachments
4134
)
4235
}
4336
return true

0 commit comments

Comments
 (0)