VSCode - HLASM LS Language Server error -32097
search cancel

VSCode - HLASM LS Language Server error -32097

book

Article ID: 377699

calendar_today

Updated On:

Products

Brightside

Issue/Introduction

Every time VSCode is launched HLASM Language support outputs several errors about a Language Server client with code -32097, Unsure how to resolve/fix, cannot find info in documentation of notable help.

Errors from latest run:
[Error - hh:mm:ss xM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - hh:mm:ss xM] Connection to server got closed. Server will restart.
true
[Error - hh:mm:ss xM] HLASM extension Language Server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 

Environment

Brightside
VS Code
HLASM Language support extension 

Cause

The language server binary was blocked by an AV software, system policy or a similar mechanism. 

Resolution

Based on message "HLASM extension Language Server client: couldn't create connection to server.", is it possible that the language server binary was blocked by an AV software, system policy or a similar mechanism.

If that's the case and it cannot be workaround (e.g. due to company policy), you can click the "Switch to WASM version" button from the extension settings "Hlasm: Server Variant", 
restart VSCode and the extension will use a backup non-native version the language server.