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
Hi all,
I don't know whether this is a bug or rather something I'm doing/understanding wrong, so here goes.
I have a ROS2 project I'm developing mainly in C++, using VSCode and the C/C++ extension. Here's a link to the complete project, if needed, but I'll post the important details here.
As you can see, I'm using a compile_commands.json file (generated by colcon) though I'm still new to this, and I've also set the includePath value with all folders in which I have possible used includes.
Right now most of the code seems to be recognized, but I still have some red squiggles saying "cannot open source file math.h"
and the functions definitions seem not to be found.
I've tried adding the compilerPath setting, linking to /usr/bin/gcc, but strangely enough that seems to make things worse: the scan job seems to be spinning forever and it won't complete. I guess there's too much to scan?
EDIT: after a long time, it finished scanning but things are not looking good: now the issue for math.h is fine, it seems, but it says functions definitions are not found. I have found this issue which might be related to this though, so I think using compilerPath is a no-go for now...
So now I'm trying to understand how I can get rid of the error for math.h (which of course is present in /usr/include/) to get everything nice and clear.
Any suggestions? 😄
EDIT2: some details:
VSCode version: 1.85.2
C/C++ extension version: 1.18.5
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I don't know whether this is a bug or rather something I'm doing/understanding wrong, so here goes.
I have a ROS2 project I'm developing mainly in C++, using VSCode and the C/C++ extension. Here's a link to the complete project, if needed, but I'll post the important details here.
I have the following
c_cpp_properties.json
fileand this
settings.json
fileAs you can see, I'm using a
compile_commands.json
file (generated by colcon) though I'm still new to this, and I've also set theincludePath
value with all folders in which I have possible used includes.Right now most of the code seems to be recognized, but I still have some red squiggles saying "cannot open source file math.h"
and the functions definitions seem not to be found.
I've tried adding the
compilerPath
setting, linking to/usr/bin/gcc
, but strangely enough that seems to make things worse: the scan job seems to be spinning forever and it won't complete. I guess there's too much to scan?EDIT: after a long time, it finished scanning but things are not looking good: now the issue for
math.h
is fine, it seems, but it says functions definitions are not found. I have found this issue which might be related to this though, so I think usingcompilerPath
is a no-go for now...So now I'm trying to understand how I can get rid of the error for math.h (which of course is present in
/usr/include/
) to get everything nice and clear.Any suggestions? 😄
EDIT2: some details:
VSCode version: 1.85.2
C/C++ extension version: 1.18.5
Beta Was this translation helpful? Give feedback.
All reactions