-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GITBOOK-7359: new page: IDES; TS for 0kb downloads of cli or lang-ser…
…ver in windows
- Loading branch information
1 parent
955006e
commit f604f9b
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...plugin-fails-with-scan-failed-on-windows-systems-with-.exe-download-blocking.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# IDE plugin fails with "Scan failed" on windows systems with .exe download blocking | ||
|
||
## **Problem** | ||
|
||
When you are using Snyk plugins in an IDE on Windows systems, the Snyk scan may fail.  | ||
|
||
You may see an error message in the logs that indicates `Error running command snyk.start: command 'snyk.workspace.scan' not found. This is likely caused by the extension that contributes snyk.start.` | ||
|
||
## **Cause** | ||
|
||
This issue is often seen on Windows systems that have company policy in a firewall or other tool to prevent automatic .exe download by showing an interactive popup requesting approval.  | ||
|
||
In the IDE, this popup is not shown, and the .exe file cannot be downloaded. This may result in a 0KB file being created in the download location.  | ||
|
||
To determine if this is the case, navigate to the location for the CLI or Language Server shown in your Snyk plugin settings in the IDE. If either the CLI or Language Server files are 0KB, this is likely the issue. | ||
|
||
## **Solution** | ||
|
||
The preferred solution for this is to allowlist [static.snyk.io](http://static.snyk.io/) in the baseline policy for .exe files, so that downloads from this location are exempt from .exe popup approvals for all users.  | ||
|
||
You can use the following temporary solutions in the interim if the preferred solution will take time to approve.  | ||
|
||
* Manually download the relevant .exe file directly from either [Snyk CLI Releases](https://github.com/snyk/cli/releases) or [Snyk Language Server Releases](https://github.com/snyk/snyk-ls/releases), and place it in the location listed in your plugin settings. Ensure that you turn off the option to Automatically Manage Dependencies. | ||
|
||
or | ||
|
||
* If the CLI exe is downloaded, you can use it to provide the language server function. Redirect the language server location to the CLI location in the plugin settings, and ensure that you turn off the option to Automatically Manage Dependencies.  |