msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.25k stars 1.21k forks source link

zed: not able to use MSYS2's clangd #21712

Open BLumia opened 4 weeks ago

BLumia commented 4 weeks ago

Description / Steps to reproduce the issue

I'm reporting this issue here because...

Please, report any issue in msys2/MINGW-packages/issues first.           --windows.md

Currently it seems Zed won't recognize MSYS2's clangd, don't support setting the location of clangd manually, and also won't be able to download its own clangd successfully.

Reproduce steps:

  1. Create a simple CMake-based C++ project
  2. run cmake -Bbuild . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug to ensure compile_commands.json is generated
  3. run zed . to start the zed editor, which is installed by running pacman -S mingw-w64-ucrt-x86_64-zed
  4. See result.

Feel free to let me know if you need any additional information.

Expected behavior

The clangd-based C++ intellisense features should be available (able to Ctrl+Click to jump to definition, etc.)

Actual behavior

The clangd-based C++ intellisense features is not working at all, we can also "Downloading clangd..." on the status bar, and it also won't finish download. Beside that, it also seems we can not set the location of clangd manually.

Verification

Windows Version

MINGW64_NT-10.0-22631

MINGW environments affected

Are you willing to submit a PR?

No (since it might be a Zed issue instead of MSYS2 packaging issue)

Biswa96 commented 4 weeks ago

Could you get some hint in Process Monitor (filter: process name zed.exe)?

BLumia commented 3 weeks ago

The filtered results are seven figured and I'm not sure where to look at. Could you explain in detail? btw, does it mean it works as intended on your device?

Biswa96 commented 3 weeks ago

It does not work in my device and fails with some vulkan related error probably due to absense of dGPU.