Skip to content

Commit abe3256

Browse files
feat: update required protocol version to 12 [IDE-426] [IDE-376] (#187)
* feat: update required protocol version to 12 [IDE-426] [IDE-376] * docs: synchronizing README from snyk/user-docs * docs: update changelog --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a7fbd8c commit abe3256

4 files changed

Lines changed: 28 additions & 19 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [2.2.0] - Unreleased
44
### Changes
5+
- update required protocol version to 12
6+
- integrate latest docs incl. troubleshooting
7+
8+
## [2.2.0] - v20240619.131238
9+
### Changes
510
- fixes the generated ignore id so that it is ignored during scanning
611

712
## [2.2.0] - v20240529.110806

README.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,17 @@ This page explains supported environments, support, and giving feedback and prov
2424
* Third-party[ dependency scanning (SCA, Snyk Open Source)](https://docs.snyk.io/ide-tools/eclipse-plugin/third-party-dependency-scanning-sca-snyk-open-source)
2525
* [Troubleshooting for the Eclipse plugin](https://docs.snyk.io/ide-tools/eclipse-plugin/troubleshooting-for-the-eclipse-plugin)
2626

27-
## Where you can download the Eclipse plugin
27+
## Supported operating systems and architecture
2828

29-
* **Eclipse Marketplace (recommended)**: [https://marketplace.eclipse.org/content/snyk-security-code%E2%80%8B-open-source%E2%80%8B-iac-configurations](https://marketplace.eclipse.org/content/snyk-security-code%E2%80%8B-open-source%E2%80%8B-iac-configurations)
30-
* Preview update site (CI/CD, on commit): [https://static.snyk.io/eclipse/preview](https://static.snyk.io/eclipse/preview)
31-
* Stable update site (weekly): [https://static.snyk.io/eclipse/stable](https://static.snyk.io/eclipse/stable)
32-
* Manual downloads: [https://github.com/snyk/snyk-eclipse-plugin/releases](https://github.com/snyk/snyk-eclipse-plugin/releases)
3329

34-
**Signing Information for Jars**
30+
Snyk plugins are not supported on any operating system that has reached End Of Life (EOL) with the distributor.&#x20;
3531

36-
If you want to verify the correct provenance of your download, verify the signing details from the Eclipse dialog using this data.
3732

38-
<figure><img src="https://github.com/snyk/user-docs/raw/HEAD/docs/.gitbook/assets/image (134) (2) (1) (1) (1) (1) (1) (1) (1) (1).png" alt="The signing key details to verify the integrity and origin of the download plugin"><figcaption><p>The signing key details to verify the integrity and origin of the download plugin</p></figcaption></figure>
39-
40-
The plugin runs on
33+
You can use the Eclipse plugin in the following environments:
4134

42-
* macOS
43-
* Linux
44-
* Windows
35+
* Linux: AMD64 and ARM64
36+
* Windows: 386 and AMD64
37+
* MacOS: AMD64 and ARM64
4538

4639
## Versions of the plugin supported in Eclipse
4740

@@ -59,13 +52,18 @@ The latest plugin version may not be supported in all Eclipse versions. Thus, if
5952
* For Snyk Code, the Eclipse plugin supports the languages and frameworks supported by Snyk Code. For more information, see [Supported languages, frameworks, and feature availability overview, Snyk Code section](https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#code-analysis-snyk-code).
6053
* For Snyk IaC, the Eclipse plugin supports the following IaC templates: Terraform, Kubernetes, CloudFormation, and Azure Resource Manager.
6154

62-
## Supported operating systems and architecture
55+
## Where you can download the Eclipse plugin
6356

64-
You can use the Eclipse plugin in the following environments:
57+
* **Eclipse Marketplace (recommended)**: [https://marketplace.eclipse.org/content/snyk-security-code%E2%80%8B-open-source%E2%80%8B-iac-configurations](https://marketplace.eclipse.org/content/snyk-security-code%E2%80%8B-open-source%E2%80%8B-iac-configurations)
58+
* Preview update site (CI/CD, on commit): [https://static.snyk.io/eclipse/preview](https://static.snyk.io/eclipse/preview)
59+
* Stable update site (weekly): [https://static.snyk.io/eclipse/stable](https://static.snyk.io/eclipse/stable)
60+
* Manual downloads: [https://github.com/snyk/snyk-eclipse-plugin/releases](https://github.com/snyk/snyk-eclipse-plugin/releases)
6561

66-
* Linux: AMD64 and ARM64
67-
* Windows: 386 and AMD64
68-
* MacOS: AMD64 and ARM64
62+
**Signing Information for Jars**
63+
64+
If you want to verify the correct provenance of your download, verify the signing details from the Eclipse dialog using this data.
65+
66+
<figure><img src="https://github.com/snyk/user-docs/raw/HEAD/docs/.gitbook/assets/image (134) (2) (1) (1) (1) (1) (1) (1) (1) (1).png" alt="The signing key details to verify the integrity and origin of the download plugin"><figcaption><p>The signing key details to verify the integrity and origin of the download plugin</p></figcaption></figure>
6967

7068
## How to install the Snyk Eclipse plugin
7169

plugin/src/main/java/io/snyk/languageserver/LsConfigurationUpdater.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.io.File;
44

5+
import io.snyk.languageserver.download.LsBinaries;
56
import org.apache.commons.lang3.SystemUtils;
67
import org.eclipse.lsp4j.DidChangeConfigurationParams;
78

@@ -82,6 +83,7 @@ static class Settings {
8283
private final String osArch = SystemUtils.OS_ARCH;
8384
private final String osPlatform = SystemUtils.OS_NAME;
8485
private final String scanningMode;
86+
private final String requiredProtocolVersion = LsBinaries.REQUIRED_LS_PROTOCOL_VERSION;
8587

8688
public Settings(String activateSnykOpenSource, String activateSnykCode, String activateSnykIac, String insecure,
8789
String endpoint, String additionalParams, String additionalEnv, String path, String sendErrorReports,
@@ -205,5 +207,9 @@ public String getOsPlatform() {
205207
public String getScanningMode() {
206208
return scanningMode;
207209
}
210+
211+
public String getRequiredProtocolVersion() {
212+
return requiredProtocolVersion;
213+
}
208214
}
209215
}

plugin/src/main/java/io/snyk/languageserver/download/LsBinaries.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
public class LsBinaries {
1010
private static final Preferences PREFERENCES = Preferences.getInstance();
11-
public static final String REQUIRED_LS_PROTOCOL_VERSION = "10";
11+
public static final String REQUIRED_LS_PROTOCOL_VERSION = "12";
1212

1313
public static URI getBaseUri() {
1414
return URI.create(PREFERENCES.getPref(CLI_BASE_URL));

0 commit comments

Comments
 (0)