RUrlus / carma

Converters between Armadillo matrices (C++) and Numpy arrays using Pybind11
Apache License 2.0
87 stars 24 forks source link

clangd can't find carma correctly. #131

Closed r1cheu closed 4 months ago

r1cheu commented 4 months ago

Hi @RUrlus! Thanks for the great work! As the title suggests, I'm encountering an issue where clangd is unable to correctly locate carma (even though using carma poses no problems), which is preventing the use of LSP and is quite frustrating. Attached below are screenshots that provide hints about the issue when I attempt to include carma: image

image image

I've also tried including the numpy path in the .clangd configuration file, but unfortunately, this did not resolve the issue.

RUrlus commented 4 months ago

Hi @r1cheu, thanks!

Unfortunately carma doesn't do anything special in regard to clangd. This depends entirely on your configuration of clangd where carma is located. I personally use clangd with compile_commands.json which I symlink from the build directory in the root directory of the project.

Regarding the last image, that error/warning is expected as you do include armadillo before carma in that particular translation unit.

r1cheu commented 4 months ago

Hi @r1cheu, thanks!

Unfortunately carma doesn't do anything special in regard to clangd. This depends entirely on your configuration of clangd where carma is located. I personally use clangd with compile_commands.json which I symlink from the build directory in the root directory of the project.

Regarding the last image, that error/warning is expected as you do include armadillo before carma in that particular translation unit.

ok, got it. thanks for your prompt response.