aws-toolkit-vscode icon indicating copy to clipboard operation
aws-toolkit-vscode copied to clipboard

Vscode connection Problem language

Open Alekkk777 opened this issue 2 months ago • 3 comments

[Error - 17:46:06] Server initialization failed. Message: Request initialize failed with message: No native build was found for platform=darwin arch=x64 runtime=electron abi=136 uv=1 libc=glibc node=22.20.0 electron=37.7.0 attempted loading from: <PATH_TO_CACHE>/cloudformation-languageserver/1.0.0/cloudformation-languageserver-1.0.0-darwin-x64-node22/node_modules/lmdb and package: @lmdb/lmdb-darwin-x64 Error resolving package: Cannot find module '@lmdb/lmdb-darwin-x64' Require stack:

  • <PATH_TO_CACHE>/cloudformation-languageserver/1.0.0/cloudformation-languageserver-1.0.0-darwin-x64-node22/node_modules/lmdb/package.json

    Code: -32603 [Error - 17:46:06] AWS CloudFormation client: couldn't create connection to server. Code: -32603

{ "stack": "Error: PeriodicExportingMetricReader: metrics export failed (error Error: socket hang up)\n\t at PeriodicExportingMetricReader._doRun (<PATH_TO_CACHE>/cloudformation-languageserver/1.0.0/cloudformation-languageserver-1.0.0-darwin-x64-node22/node_modules/@opentelemetry/sdk-metrics/build/src/export/PeriodicExportingMetricReader.js:88:19)\n\t at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n\t at async PeriodicExportingMetricReader._runOnce (<PATH_TO_CACHE>/cloudformation-languageserver/1.0.0/cloudformation-languageserver-1.0.0-darwin-x64-node22/node_modules/@opentelemetry/sdk-metrics/build/src/export/PeriodicExportingMetricReader.js:57:13)", "message": "PeriodicExportingMetricReader: metrics export failed (error Error: socket hang up)", "name": "Error" }

[05:46:06 PM] INFO: [Init] AWS CloudFormation initializing... ClientInfo: { "name": "Visual Studio Code", "version": "1.106.2" } NodeEnv: "production" AwsEnv: "prod" aws: { "clientInfo": { "extension": { "name": "amazonwebservices.cloudformation", "version": "1.0.0" }, "clientId": "<REDACTED_CLIENT_ID>" }, "telemetryEnabled": true } [05:46:06 PM] INFO: [Init] Machine: "darwin-x64" Process: "darwin-x64" Runtime: "node=22.20.0 v8=13.8.258.32-electron.0 uv=1.51.0 modules=136"

Alekkk777 avatar Nov 20 '25 16:11 Alekkk777

We are working on fixing this

satyakigh avatar Nov 20 '25 21:11 satyakigh

https://github.com/aws-cloudformation/cloudformation-languageserver/releases/tag/v1.1.0 fixes this problem

satyakigh avatar Nov 21 '25 17:11 satyakigh

@Alekkk777 restarting your vscode should trigger an cloudformation-languageserver update and resolve your issue. Please verify. Thanks!

atennak1 avatar Nov 21 '25 20:11 atennak1