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

Eclipse export generates wrong formatted Include Paths inside the .cproject #3529

Closed
bittailor opened this issue Jan 5, 2017 · 8 comments
Closed

Comments

@bittailor
Copy link
Contributor

bittailor commented Jan 5, 2017

Description

  • Type: Bug
  • Priority: Minor

When exporting a application to eclipse mbed export -i eclipse_gcc_arm and importing it into an Eclipse workspace Eclipse shows lots of Invalid project path: warnings:

screen shot 2017-01-05 at 13 04 46

This is because the include paths are wrong formatted for eclipse. They are /./<path> instead of /<project>/<path>:

screen shot 2017-01-05 at 13 05 30

I locally fixed the generator to format it correctly (will do a pull request) and the warnings are gone:

screen shot 2017-01-05 at 14 09 24

and the paths look like this:

screen shot 2017-01-05 at 14 07 08


Bug

Target
NUCLEO_F401RE

Toolchain:
GCC_ARM

Toolchain version:
not relevant

mbed-cli version:
1.0.0

meed-os sha:
0789928

DAPLink version:
not relevant

Expected behavior
correct formatted Eclipse include paths

Actual behavior
wrong formatted Eclipse include paths

Steps to reproduce

  • exporting an application to eclipse mbed export -i eclipse_gcc_arm
  • importing it into an Eclipse workspace
bittailor added a commit to bittailor/mbed-os that referenced this issue Jan 5, 2017
Eclipse CDT expects the include paths to include the project name like '/<project>/<include-path>' for workspace include directories.
See issue ARMmbed#3529.
@0xc0170
Copy link
Contributor

0xc0170 commented Jan 5, 2017

cc @theotherjimmy

@bittailor
Copy link
Contributor Author

See pull request #3531

@janjongboom
Copy link
Contributor

janjongboom commented Jan 5, 2017

@bittailor Which OS is this on? I don't have this issue on macOS 10.11.2 (as in: I see that the paths are wrong, but Eclipse doesn't give me any warnings)...

@bittailor
Copy link
Contributor Author

OS is OS X El Capitan 10.11.6 so nearly the same as yours.
Eclipse is Neon Release (4.6.0)

@bittailor
Copy link
Contributor Author

bittailor commented Jan 5, 2017

@janjongboom do you also have no warning signs (orange triangle with exclamation mark) on the include directories when you open Properties with a right click on the mbed project and then go to C++ General => Paths and Symbols and then select Includes tab?

screen shot 2017-01-05 at 13 05 30

@janjongboom
Copy link
Contributor

@bittailor Ah there, yes, I see that. Good catch. 👍

@theotherjimmy
Copy link
Contributor

@bittailor, your PR was merged. Can this issue be closed?

@bittailor
Copy link
Contributor Author

Fixed with PR #3531

adbridge pushed a commit that referenced this issue Jan 13, 2017
Eclipse CDT expects the include paths to include the project name like '/<project>/<include-path>' for workspace include directories.
See issue #3529.
simonqhughes pushed a commit to simonqhughes/mbed-os-1 that referenced this issue Jan 31, 2017
Eclipse CDT expects the include paths to include the project name like '/<project>/<include-path>' for workspace include directories.
See issue ARMmbed#3529.
simonqhughes pushed a commit that referenced this issue Jan 31, 2017
Eclipse CDT expects the include paths to include the project name like '/<project>/<include-path>' for workspace include directories.
See issue #3529.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants