Skip to content
Prev 834 / 919 Next

C diagnostics in rstudio

Apologies if this is double posted as I initially sent from an account not registered.
 
I've noticed that diagnostics and completions for C code do not seem to be working within rstudio on f36 (2022.02.4+500-1). Is there something additional required to enable them outside of rstudio itself? Using .rs.setClangDiagnostics(2) within rstudio gives me the following output:

Attemping to load libclang for x86_64-redhat-linux-gnu 
/usr/libexec/rstudio/bin/rsclang/libclang.so
(Not Found)
/usr/lib/libclang.so
(Not Found)
/usr/lib/llvm/libclang.so
(Not Found)
/usr/lib64/libclang.so
(Not Found)
/usr/lib64/llvm/libclang.so
(Not Found)
/usr/lib64/llvm13/lib/libclang.so.1
(Not Found)

For reference in /usr/lib64 I have
clang
libclang-cpp.so.14
libclang.so.14.0.5
libclang.so.14.0.5
llvm13

Cheers

Tim