-
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
Compile commands parser not working with linked files or folders #120
Comments
Just an info that could be useful: in my case all Macros/Include Paths are working fine. |
What exactly does
Are the macros missing in the Preprocessor Include Path tab? Can you post the first |
The same issue here. I use the latest release of cmake4eclipse ( v 2.1.0 ). |
@nuccleon can you provide a minimal example project allowint to reprodue this? |
Yes, of course. You'll find an entire eclipse project attached.
Eclipse runs under Gentoo Linux. In the example, I have a DEFINE with the name _TARGET. I further have 3 project configurations with different _TARGET definitions (0,1 and 2). My expectation was, that the I further would expect, that depending on the selected project configuration (with different _TARGET values) the related code section in the Editor window is selected. Please let me know if you need some more details. |
@nuccleon I do not see any linked folders or files in your sample project. What am I missing? With your project, the C++ editor shows that the _TARGET macro is properly recognized with value==2. |
Hello all, I experienced the same behavior as gpxricky today. The indexer works fine with source files that are within the projects (-D flags are correctly detected). Did I missed a configuration? |
I have the same problem |
This is a...
Brief Description
The
CMAKE_EXPORT_COMPILE_COMMANDS Parser
does not seem to handle defines and include paths properly for files which are only linked to the project (either directly or via a linked folder).(If Bug Report) Brief Summary
The parser works fine if the file is stored in the Eclipse project with its correct file path. However when I change the folder to be a linked folder, the defines are not resolved anymore.
What is the expected behavior?
The correct behavior would be to resolve the defines and include paths according to the real path of the file instead of its virtual path.
What behavior are you observing?
Defines are not resolved properly.
Provide the steps to reproduce the issue, if applicable:
Useful Information
The text was updated successfully, but these errors were encountered: