question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

platformio.ini untouched, without src_dir

See original GitHub issue

Operating system

macOS 10.12.5

Description of problem

Upon build, Deviot overwrites platformio.ini with the user’s personal workspace data. It should not need to do this, and this workaround creates a nuisance and potential security risk for users of version control systems.

image

Steps to Reproduce

Do a new install of Deviot and PlatformIO. Use platformio.ini in the manner allowed and prescribed by platformio.ini documentation for a project that doesn’t have or want a src folder.

Actual Results

The platformio.ini file is altered, leading to the possibility that unique local environment info will be checked in as a change to the global repository.

Expected Results

The platformio.ini file is read, properly groked by Deviot, and left untouched.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:31 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
fiveanglecommented, Sep 21, 2017

I originally had Use PIO Structure selected and got compile errors, but did not mean to indicate deviot changed the files. I agree it would be good to confirm it doesn’t just to be sure. (I can’t check right now as not at my system).

Thanks again for the great plugin ! ST3+Deviot/PIO is soooooo much better than Atom 🥇

-=dave

0reactions
thinkyheadcommented, Feb 5, 2018

Great! I really want to get back to building Marlin 2.0.x for the other platforms. I’ve got boards to flash!

Read more comments on GitHub >

github_iconTop Results From Across the Web

default_envs - Platformio Docs
src_dir. The path to the project's directory with source code. PlatformIO uses it for the pio run command. The default value is src...
Read more >
“platformio.ini” (Project Configuration File)
ini is a configuration file that lets you set up your development environment, share your code and configurations with others, and leverage a...
Read more >
Build options — PlatformIO v6.1 documentation
These flags/options affect the preprocessing, compilation, assembly, and linking processes for C and C++ code. All compiler and linker flags can be used....
Read more >
Compiling library examples without recompiling unchanged files
--board d1_mini --build-dir /tmp/piobuild --keep-build-dir. I also tried a platformio.ini with [platformio] src_dir = examples/mqtt_pub ...
Read more >
Best way to flash same code with different configs?
... put my devices into flash mode individually anyway), but since the platformio.ini remains untouched, only very few cpps are recompiled.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found