You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
C++ completion returns nothing with libclang 18 on Ubuntu 24.04 #19559
On Ubuntu 24.04 with the system libclang 18, C++ code completion in an Rcpp source file produces no completions. RStudio loads libclang and gets the file's compile arguments, but libclang fails to parse the translation unit, so get_cpp_completions returns null and no popup appears.
Seen in CI for #19549 (linux-server and linux-desktop e2e jobs, Ubuntu 24.04 runners, R 4.6.1). .rs.isClangAvailable() reports:
The same file completes as expected on macOS, both locally with the Command Line Tools libclang 21.0.0 and on the macOS CI runners. I haven't reproduced it on a Linux machine outside CI, and the cause of the parse failure isn't known yet.
Steps to reproduce
On Ubuntu 24.04, install libclang-18 (so /usr/lib/llvm-18/lib/libclang.so.1 exists) and the Rcpp package.
Activity
Run the C++ completion ARIA test only on macOS sessions
Announce C/C++ completion popup selections to screen readers (#19549)
share the precompiled header fallback across all libclang parses
rebuild a precompiled header that libclang rejects
accept either libclang wording for an unknown flag in test-cpp
fix c++ completion with c++20 and upstream libclang (#19563)