Skip to content

"Reset cache and configure project" error - when server is unavailable #303

Open
@alisevych

Description

@alisevych

Description

Running action "Reset cache and configure project" when server is unavailable results in VS Code error:
"14 UNAVAILABLE read ECONNRESET"

To Reproduce

Preconditions:

  1. A project was already configured and the tests were generated on a remote server.
  2. No connection to the server (ssh service is stopped f.e.)

Steps to reproduce the behavior:

  1. Open the project in VS Code
  2. Run action "Reset cache and configure project"
  3. Generate tests for a file...

Expected behavior
2. Some notification from UTBot plugin should be displayed explaining that connection is lost.
3. New test should be generated.

Actual behavior
2. VS Code error message is displayed: "14 UNAVAILABLE read ECONNRESET"
3. No output is viewed - no errors and no new tests.

Visual proofs (screenshots, logs)

// Upload of image (even 100 KB) is blocked by github.
// I will keep the screenshot locally - please feel free to request it when bug analysis starts.

Environment

Windows 10 Pro
VS Code Version: 1.68.1 (user setup)
Server is configured as docker container. Was working fine when connection is up.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingvscode-pluginIssue related to VScode plugin

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions