<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56297>56297</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            MLIR VSCode: TypeError: Cannot read properties of undefined (reading 'catch')
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            mlir:core
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            River707
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          silvasean
      </td>
    </tr>
</table>

<pre>
    I have started seeing this failure:

```
TypeError: Cannot read properties of undefined (reading 'catch')
    at /usr/local/google/home/silvasean/.vscode-server/extensions/llvm-vs-code-extensions.vscode-mlir-0.0.9/node_modules/vscode-languageclient/lib/common/textSynchronization.js:49:106
    at Array.forEach (<anonymous>)
    at DidOpenTextDocumentFeature.register (/usr/local/google/home/silvasean/.vscode-server/extensions/llvm-vs-code-extensions.vscode-mlir-0.0.9/node_modules/vscode-languageclient/lib/common/textSynchronization.js:39:42)
    at DidOpenTextDocumentFeature.initialize (/usr/local/google/home/silvasean/.vscode-server/extensions/llvm-vs-code-extensions.vscode-mlir-0.0.9/node_modules/vscode-languageclient/lib/common/textSynchronization.js:27:18)
    at LanguageClient.initializeFeatures (/usr/local/google/home/silvasean/.vscode-server/extensions/llvm-vs-code-extensions.vscode-mlir-0.0.9/node_modules/vscode-languageclient/lib/common/client.js:1265:21)
    at LanguageClient.doInitialize (/usr/local/google/home/silvasean/.vscode-server/extensions/llvm-vs-code-extensions.vscode-mlir-0.0.9/node_modules/vscode-languageclient/lib/common/client.js:818:18)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at LanguageClient.start (/usr/local/google/home/silvasean/.vscode-server/extensions/llvm-vs-code-extensions.vscode-mlir-0.0.9/node_modules/vscode-languageclient/lib/common/client.js:700:13)
```

I have `    "mlir.server_path": "/usr/local/google/home/silvasean/bin/torch-mlir-lsp-server",`.
And I verified that the file is there.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzdVk1vozAQ_TVwsYIcEyAcOHSTVorUaqW22mtlzATcGjtrm2jTX79joB9brdSttJc2isbGM56Z98Z4qE1zqnak40cgznProSEOQOqW-E46sudSDRai9Cyi24g-yZzO__Hx9nSAc2uNRTOy4VobTyzwhhysOYD1EhwxezLoBvZSY4SIrYM-RIlYIbgXHY4RKyd_BH_co-picBalMoIrHFtjWgU46UwfBifVkTvgGufJ0QnTwMKBPULYBL88aCeNdsGDOvaLo1uMJi-ap029knZBE5qUaKtx5a43zaAgbJ1NFNftwFsQSoL2waWsUQrT9ybE9-j15qRFZ42Wj9yj--TeISGrEsWS5n9AO7OWn5K9sedcdIGOKEXejD71ZsBN52-p2Mrm-wH0LQbZGjH0mMIFcI-VSSy00nmwo5cvwVgaGFuxD3AgtfSSK_kIX4cFfB_w3KzfsnA5-9uM_l4hn7lwn46BaX0CvWR5FrAv34HdmN3nLflrwGus8N_KbAd9JYU1nrsH9w8XBN60Apy7leLBnenmGu5BhLM07g1pYhSp8ZrQIz2zeTh_GODu5wADhHTKHEX2Dvljn_jUrBeUBtbTZ6BvGtok57aIq4GHiLGQRTLlf3fgHnsWCx0vDB9hopbji2-s6CZgyh2eaUFXG4yYTClgKcmOoELuJfZN32E1fAdkLxUQbM84x-svbqq0KdOSx156BdXV5e6a_LjZTGUn_689x4NVVef9IZCIGAJQ6buhTpDmuYpPxUTn4Qzio3RuGCuV5aws4q5allkD-Z4yka9hXVK25kuWFbTJIC1ElseK16BcFWXfZtYxnDD4GYL0ZNtYVowyRtEbS1c5o0ldN6ygNRV5s87yWkQrCj1-uSQhk8TYNrbVmFQ9tA6VCjume1Fy52SrAeaA1xIJL2gxR-OD74ytnisYj3iqEcxvF1IQ6Q">