Hi @bilal.nouicer ,
The IDE does give some errors which are sometimes false-positives. You can safely ignore them.
Some tips for you:
Do not run any program using the IDE’s built-in terminal.
Do not believe all the warnings/errors shown by the IDE.
The errors and warning that you must be concerned about are those that you get when you build your ROS2 package with colcon build
.
I have completed ROS1 and ROS2 Basics in both C++ and Python. So with that experience I am telling you this. I have also faced those errors from the IDE when I wrote my programs. Most of the times, they are false positives.
Here is a heads-up for you, when you program action server and clients, you will get a lot more of these false-positive errors. Just ignore and continue. Fix only the errors that colcon build ...
puts out during compilation.
Regards,
Girish
Thanks a lot for the answer !