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

creating copies of source files #177

Closed
gorsat opened this issue Apr 15, 2015 · 1 comment
Closed

creating copies of source files #177

gorsat opened this issue Apr 15, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@gorsat
Copy link

gorsat commented Apr 15, 2015

When I build (run) it looks like platformio is creating copies of my source files under .pioenvs\autogen_nrf51_dk\src and then compiling those copies instead of simply compiling the originals. I'm using an IDE (e.g. Eclipse) so the "show error in editor" feature opens up the platformio copy of the source file rather than showing me the error in the original. It's not obvious that the editor is showing a copy of the file (file name is the same, contents are the same) and so it's easy to accidentally make a change in the copy. Of course, that change will have no effect on the next build results and, even worse, the changes will be overwritten when platformio once again copies the original source file. Because of these kinds of problems, creating copies of the source files seems to be, in general, an inadvisable approach. So why is platformio making copies of the sources? Does it really need to do that? Why doesn't it just compile them in place? Have I just configured it wrong?

(btw, platformio is a fantastic idea. if you can add a bit more in terms of automatic IDE integration and a few more details then you'll have an absolute winner.)

@ivankravets ivankravets added this to the 2.0.0 milestone Apr 22, 2015
@ivankravets ivankravets self-assigned this Apr 22, 2015
@ivankravets
Copy link
Member

Thanks for the report. I've just fixed it and will release in PlatformIO 2.0.

If you want to try PlatformIO 2.0 now, then run the simple commands:

pip uninstall platformio
pip install https://github.com/platformio/platformio/archive/feature/platformio_20.zip

P.S: Don't forget to use --force/-f option before each PlatformIO command if you are going to use within IDE. For example, platformio --force run. See #152.

Please report if it works for you now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants