zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.31k stars 3.1k forks source link

Still can't switch from .h file to .cpp file #16668

Open 1925381584 opened 2 months ago

1925381584 commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Hi, I find this pr https://github.com/zed-industries/zed/pull/14646 has be merged. but I still can't switch from .h files to .cpp files

Environment

Zed: v0.151.0 (Zed Dev eb9eae09b1186ca54895a80a352da76591625032) OS: Windows 10.0.19045 Memory: 15.7 GiB Architecture: x86_64 GPU: Intel(R) Iris(R) Xe Graphics || Intel Corporation || Intel driver

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

[Zed.log](https://github.com/user-attachments/files/16711004/Zed.log)

SomeoneToIgnore commented 2 months ago

I've noticed it not working in certain projects with this in the logs:

2024-08-22T13:29:13.797572Z [INFO] Clangd returned an empty string when requesting to switch source/header from "os.cc"

and, indeed, an empty response from clangd in LSP logs.

Seems that clang could be misconfigured?

1925381584 commented 2 months ago

I don't know, In other respects, clangd is available normally. In my log, There is such a sentence, Not sure if this is the reason image