Skip to content
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

[CDT] Invalid project path: Include path not found #35

Open
mcoufal opened this issue May 26, 2021 · 2 comments
Open

[CDT] Invalid project path: Include path not found #35

mcoufal opened this issue May 26, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@mcoufal
Copy link

mcoufal commented May 26, 2021

I have created simple C++ helloworld project and I get following warnings:
Invalid project path: Include path not found (/usr/include)
Invalid project path: Include path not found (/usr/local/include)

It seems that eclipse does not look for header files on the host or does not have access to them.

Also, similar problem occurs when trying to use QT Test runner in C/C++ unit testing - adding 'qmake-qt5' as external tool is impossible, since /usr/include/qt5 directory is not found.

Is there a plan to support any of these scenarios?

My configuration:
Eclipse SDK
Version: 2021-06 (4.20)
Build id: I20210526-0600
OS: Linux, v.5.6.6-300.fc32.x86_64, x86_64 / gtk 3.24.29, WebKit 2.32.0
Java vendor: Oracle Corporation
Java runtime version: 15.0.2+7-27
Java version: 15.0.2
Eclipse C/C++ Development Tools 10.2.0.202103011047
missing_includes

@vrubezhny
Copy link
Contributor

@mcoufal Having installed everything from:

  • C/C++ Development Tools - 10.3.0.202106080120
  • C/C++ Development Tools SDK - 10.3.0.202106080120

I have the Include Headers locations added by the flatpak ones, so for an imported existing project it looks like:

Screenshot from 2021-07-07 17-44-01

... and for newly created project:

Screenshot from 2021-07-07 17-46-02

After a project was imported/created a "Discover compiler built-in language settings/CDT Scanner Discovery" appeared in Progress View and these additional Include items appeared immediately once it was finished - so I suppose it was the result of its work (but I haven't figured it out yet for sure).

It looks like you haven't installed something required to provide such a discovering.
Could you please try checking if everything is installed for C/C++ Development or try updating to the latest build,

@mcoufal
Copy link
Author

mcoufal commented Jul 12, 2021

For some reason, I can't get it to work in any Eclipse I install, I tried release from flathub (http://flathub.org/repo/flathub.flatpakrepo):

Name Application ID Version Branch Installation
Eclipse IDE for Java Developers org.eclipse.Java 4.20 stable system

and also nightly from http://eclipse.matbooth.co.uk/flatpak/nightly/eclipse.flatpakrepo:

Name Application ID Version Branch Origin Installation
Eclipse SDK org.eclipse.Sdk master eclipse-nightly system

I have installed everything from C/C++ Development Tools and C/C++ Development Tools SDK (using 'Install New Software' wizard and respective repos http://download.eclipse.org/releases/2021-0[6,9]) and I can also see same jobs as you mentioned after I create the project (Discover compiler built-in language settings/CDT Scanner Discovery) in the Progress View.

I'm also attaching my configuration, if that helps. Any idea what's wrong?
eclipse_config.txt

@Mailaender Mailaender added the bug Something isn't working label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants