-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake Compilation DB Provider include pathes pointing nowhere #187
Comments
AFAICT, copying the header files from the container into .../HEADERS is handled by CDT's docker launcher plugin at the end of a build (see The CMake Compilation DB Provider does not handle copying but detects that the build was running in a container and the maps the directories reported inside the container (such as
Windows | Show View | Error Log. Problems encountered by the CMake Compilation DB Provider areshown in the Problems View at severity level 'Info'. |
that's the only error I find in the error log, can't make much of it, but it looks like CDT. Problem view has lot's of errors, all
This is interesting as the build was not running in '.../_Ubuntu 18.04 Release/' but in '.../_Ubuntu 22.04 Debug' (I have different build configurations for different Ubuntu Releases, which are built with a docker container based on the matching Ubuntu Release) |
The stack trace stems from either CDT or org.eclipse.linuxtools.
These are compiler errors, take a look at the Console view, C/C++ Build console. The message compile_commands.json' was not created in the build is confusing to me: If the file does not exist, the code causing the NPE would never be called. Maybe it is a message that has not been deleted? You could check the timestamps. |
yes, right. the message about compile_commands.json was old. It doesn't contain a timestamp, but it could be deleted, and doesn't appear again. |
Describe the bug
The entries of the CMake Compilation DB Provider are pointing to pathes like
<workspace>/.metadata/.plugins/org.eclipse.cdt.docker.launcher/HEADERS/unix_var_run_docker_sock/<imagename>/usr/include
(and others)Problem is,
<workspace>/.metadata/.plugins/org.eclipse.cdt.docker.launcher/
is empty, no HEADERS dir.Since this is a build inside a docker container, Compilation DB is expecting, that some one copies the headers from the container there, but doesn't. AsI don't know who should do this copying step, it might be that this isn't a problem from cmake4eclipse, but some other component. (But I have to start asking somewhere :) )
Expected behavior
The needed inlcudes should be, where Compilation DB expects them or Compilation DB should search them at the right place
(From a more higher level, I want the Indexer to work. During my investigation, this is what I noticed, but if there is a different way to make the indexer work, that's fine for me too)
Useful Information
What is in Eclipse's Error Log?
<pls tell me, where I find those if needed>
Thx for help!
The text was updated successfully, but these errors were encountered: