Skip to content

Conversation

@Zee2413
Copy link
Contributor

@Zee2413 Zee2413 commented Dec 23, 2025

Simplify FileStore error recovery to prevent startup crash on decryption failure

Problem

The language server can fail to start on Windows when the encrypted FileStore cache cannot be decrypted, resulting in
"Unsupported state or unable to authenticate data" error.

Fixes aws/aws-toolkit-vscode#8458

Solution

Simplify error recovery by removing the lockSync wrapper and directly overwriting the corrupted file with a fresh empty
store.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Zee2413 Zee2413 requested a review from a team as a code owner December 23, 2025 15:44
@satyakigh
Copy link
Collaborator

satyakigh commented Dec 23, 2025

The commit linked bumped the file DB version

@Zee2413 Zee2413 marked this pull request as draft December 23, 2025 16:36
@Zee2413 Zee2413 changed the title Bump filestore vesion to fix server crash due to change in encryption… Simplify FileStore error recovery to prevent startup crash on decryption failure Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problem connecting to AWS CloudFormation language server since latest toolkit update

2 participants