Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi. First off: nice job on platformIO! It's a great project (Especially when there's no
arduino
package anymore on fedora). I just hope that one day you'll be able to get rid of microsoft's evil VScode Cpp extension as discussed hereBut anyway, here's a commit, which deals with two issues I have with the instructions in
shell-commands.rst
.The first method is causing issues with python. Specifically, adding the
$HOME/.platformio/penv/bin
(wich contains apython3
symlink) breaks my python install. Without adding this directory to my$PATH
variable, I'm having someModuleNotFoundError
errors while executing some (non related to PlatformIO) python programs i.e. something's wrong with python's virtual environment. I'm not a big python virtual environment expert so I don't know why, but without the directory in the$PATH
variable everything is fine. To fix this I propose to use symlinks and~/.local/bin
instead (which is usually already filled with python files).On my freshly installed system, there is no
/usr/share/bin/
directory. According to a quick google search, this is uncommon but can happen. Also according to the warning onthis page
of PlatformIO's documentation, requiring administrator permissions is against the spirit of PlatformIO so I thought about removing the method entirely, but I guess there are some use cases to a system-wide symlinks? When not "logged in as the user PlatformIO is installed and configured for"? Idk but I left it and added a smallmkdir -p
in case others do not have this directory on their systems.