C++23 and CMake #384
Replies: 2 comments 3 replies
-
|
There is a lack of detail here and in #385. It's not enough to say something "doesn't work". We need to know exactly what you tried and what error message you got in return. Besides that, it's unclear to me if clangd is even supposed to support a situation like this. The official LLVM builds are not standalone. They require an MSVC installation, expect to interact with MSVC, do MSVC things (even with the GCC driver), and parse sources like MSVC. Looking at the logs, it seems using this particular clangd is hopeless. llvm-mingw is more compatible, at least expecting a Mingw-w64 toolchain. Using that I got closer to something functional. I used However even this incorrectly guesses GCC's directory layout (missing |
Beta Was this translation helpful? Give feedback.
-
|
This clangd is supposed to be standalone, isn't it? https://github.com/clangd/clangd I'm using https://github.com/clangd/clangd/releases/download/22.1.0/clangd-windows-22.1.0.zip. Having https://github.com/clangd/clangd/releases/download/22.1.0/clangd_indexing_tools-windows-22.1.0.zip or not doesn't make a difference. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Note: All tools are from this toolkit, except
clangdfrom official Github releases.Inspecting the
compile_commands.jsongenerated by CMake to see whyclangddoesn't work, I found:-fmodules-ts-fmodule-map-file=<path>These are what
clangdis complaining about being unknown and invalid.More intriguing is that, even after downgrading the C++ standard to C++17 to avoid modules,
clangdstill doesn't work.Neither
iostreamnorstdio.hare being found, which leaves me puzzled.This issue was reported previously here: clangd/clangd#2631, but the original poster ran out of patience and left before it was resolved.
Beta Was this translation helpful? Give feedback.
All reactions