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

PLATFORMIO_HOME_DIR not used well for eclipse init #806

Closed
milossoucek opened this issue Oct 14, 2016 · 4 comments

Comments

Projects
2 participants
@milossoucek
Copy link

commented Oct 14, 2016

Configuration

Operating system: windows7

PlatformIO Version (platformio --version): PlatformIO, version 3.1.0

Description of problem

When default platformio home directory is used ( under user profile ), initialization of project for eclipse works well.
But when I set up environment variable PLATFORMIO_HOME_DIR, then initialization of project for eclipse is not correct - "compiler" headers (like stdlib.h) are not visible in eclipse for code completion etc.

The source of problem is in generated file language.settings.xml, where path to compiler is wrong - it still includes ${USERPROFILE}, but it should not.

e.g. when I set up: PLATFORMIO_HOME_DIR=C:\PIO\IDE\HOME_DIR
then in project file language.settings.xml is line containing:
....name="CDT Cross GCC Built-in Compiler Settings" parameter="${USERPROFILE}C:\PIO\IDE\HOME_DIR\packages\toolchain....

tested with project setup for avr/uno and esp8266/d1-mini with same result

@ivankravets ivankravets modified the milestones: 3.2.0, 3.x.x Oct 26, 2016

@ivankravets ivankravets added the IDE label Jan 12, 2017

@ivankravets ivankravets modified the milestone: 3.x.x Mar 12, 2017

@ivankravets ivankravets added ide and removed ide:clion labels Feb 8, 2018

@ivankravets

This comment has been minimized.

Copy link
Member

commented Feb 13, 2018

Could you reproduce this issue with the latest http://docs.platformio.org/en/latest/installation.html#development-version ?

@milossoucek

This comment has been minimized.

Copy link
Author

commented Feb 14, 2018

Hi,
Uninstalled previous version with my modifications, and installed new development one. Tested on arduino uno and stm32 projects. Uno looks working fine, but STM still have the same problem.
Here is content of file from stm32 project:

And here is content of file for UNO project:

Even when i completely delete the files, then after run of "Rebuild C/C++ project Index" in eclipse the content is generated the same.

@milossoucek

This comment has been minimized.

Copy link
Author

commented Feb 14, 2018

For any reason, my paste of xml content is ignored.
So here they are as files.

language.settings.xml stm32.txt
language.settings.xml.uno.txt

@ivankravets ivankravets added this to the 4.0 milestone Jul 4, 2019

@ivankravets ivankravets added the bug label Jul 4, 2019

@ivankravets ivankravets added this to Done in PlatformIO 4.0 via automation Jul 4, 2019

@ivankravets

This comment has been minimized.

Copy link
Member

commented Jul 4, 2019

Please re-test with pio upgrade --dev.

@ivankravets ivankravets referenced this issue Jul 10, 2019

Closed

platformio 4.0.0 #41821

5 of 5 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.