cucumber / vscode

Official Visual Studio Code Extension for Cucumber
MIT License
65 stars 16 forks source link

Server initialization failed. #234

Open CoreySchnedl opened 3 months ago

CoreySchnedl commented 3 months ago

👓 What did you see?

[Error - 12:45:07 PM] Server initialization failed. Message: Request initialize failed with message: bad export type for tree_sitter_c_sharp_external_scanner_create: undefined Code: -32603 [Error - 12:45:07 PM] Cucumber Language Server client: couldn't create connection to server. Message: Request initialize failed with message: bad export type for tree_sitter_c_sharp_external_scanner_create: undefined Code: -32603

Using cucumber v1.10.0 Using vscode in WSL v1.90.0

✅ What did you expect to see?

The extension working. It is currently not usable.

📦 Which tool/library version are you using?

Using cucumber v1.10.0 Using vscode in WSL v1.90.0

🔬 How could we reproduce it?

  1. Install extension
  2. Restart vscode
  3. See error [Error - 12:45:07 PM] Server initialization failed.

📚 Any additional context?

No response

dcuenca-fluidra commented 3 months ago

Same here. We had to downgrade VSCode to 1.89 and disable auto updates to continue having this great plugin working.

jm-paulin commented 3 months ago

Ah, just saw that. created #235. will close as this is a dup.

jclery-pass commented 3 months ago

Same problem here.

barrymichaeldoyle commented 2 months ago

This has been a problem for a while now 😞 I saw VSCode just released a new update and it is still not working.

elDin-Dev commented 2 months ago

Yes, i test every 2 days with VS Code insider (1.92.0-insider) the problem still there

jhassine commented 2 months ago

The error also happens inside a devcontainer

martin-shields-sage commented 2 months ago

I have the same issue as well

jm-paulin commented 2 months ago

Would cucumber/language-service#209 help to address this issue @kieran-ryan ?

rolger commented 1 month ago

It also fails for me with the same message. Maybe this could help:

I setup an enviroment in gitpod and the same error occured. Then I tried the same on my Window 10 environment and it worked fine. So, really was wondering what is the difference. Then I used a local installation of Ubuntu and it fails again. So it seems that it depends on the operating system.

Version: 1.92.1 (system setup)
Commit: eaa41d57266683296de7d118f574d0c2652e1fc4
Date: 2024-08-07T20:16:39.455Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631

and

Extensions installed on WSL: Ubuntu:
cucumberopen.cucumber-official@1.10.0
formulahendry.dotnet-test-explorer@0.7.8
ms-azuretools.vscode-docker@1.29.2
ms-dotnettools.csharp@2.39.29
ms-dotnettools.vscode-dotnet-runtime@2.1.1
redhat.java@1.33.0
visualstudioexptteam.intellicode-api-usage-examples@0.2.8
visualstudioexptteam.vscodeintellicode@1.3.1
vscjava.vscode-gradle@3.16.4
vscjava.vscode-java-debug@0.58.0
vscjava.vscode-java-dependency@0.24.0
vscjava.vscode-java-pack@0.29.0
vscjava.vscode-java-test@0.42.0
vscjava.vscode-maven@0.44.0
guenhter commented 1 month ago

I also get this problem. What is the right location to address this issue: Is it the cucumber-language-server, it is tree-sitter? I guess it is not the vscode cucumber plugin itself, is it?

Ramin2c commented 3 weeks ago

I just tested and the issue is still there in 1.90.0, 1.91.0 and 1.92.0 Downgraded to 1.89.0 and it works like it should.

Used winget to install an older version:

winget install -e --id Microsoft.VisualStudioCode -v 1.89.0

NOTE: the current version needs to uninstalled, either manually or through Programs

jm-paulin commented 3 weeks ago

Just had the vscode v1.93.0 update, and same issue.... 😭 😭 😭

ViniciusResende commented 2 weeks ago

Facing the same issue with the following: WSL WSL version: 2.2.4.0 Kernel version: 5.15.153.1-2 WSLg version: 1.0.61 MSRDC version: 1.2.5326 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26091.1-240325-1447.ge-release Windows version: 10.0.22631.4169

Visual Studio Version: 1.93.1 (user setup) Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 Date: 2024-09-11T17:20:05.685Z Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.22631

Linux Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy