-
Notifications
You must be signed in to change notification settings - Fork 56
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
Having Deviot be more platformio compliant/tolerant #165
Comments
The Example 1 is a bug, it shouldn't be showing the error. It's caused because deviot will store the last environment you use in other project, so in that case is trying to compile with a environment not initialized, that is why the error is displayed. But what is weird to me, it should initialized the environment. but I'll check and fix this. The Example 2 is a case I didn't think of when I started the project, because I usually don't work with symlinks, however is an improvement I'll defenetelly add it |
Improving the Example 2 will let to work with both cases
I'll check this, but I'm almost sure if you open a
How is that? platformio work with that file to compile/upload the sketch, or you mean do not add any extra flag?
Yes, at this moment it's universal... added to the to-do list
Yes, there is a lot things to do with that, I'm working in bug that has been took some weeks, and after that I'll try to add more attention to the documentation. I started this project to improve my python skill too, so don't worry. Any contribution is welcome, you can check the sublime api, it may help you to understand the deviot code, and maybe to help me improve deviot |
An observation that is possibly related:
|
Unless
Per #137, it seemed like maybe
I can help with that if you'd like. I haven't contributed heavily to many projects, so it can feel "weird" documenting someone else's creation, but if this is helpful count me in!
Cool! I'm coming from mostly |
At this moment it will, but I'll improve that to do it only when not symlink is present
Yes, that issue is fixed, and it was because the The issue with
You can start with what's most comfortable for you, there's no pressure with that, I've screwed up many times, I've rewritten deviot about 3 times, I won't bother if someone else does it too, it's the only way to learn. 😄 |
The problem with the symplink should be fixed now, please test it |
Most of the problem are fixed and will be included in v2.2, the new features and improvements will be added in v2.3 (I'll open a issue to track this) |
In tinkering around with the
Use PlatformIO Structure
option, I was surprised that it overwrites things that are already there. In my mind, it would be awesome if Deviot were compatible withplatformio
and the Arduino IDE (based on the option). I think this could be similar to #137 in that things that are already fine as they are get rearranged a bit.Example 1
Let's say one has been working with
platformio
and wants to try Deviot. They have an existing project structure like so:Inside
platformio.ini
:Start ST3 and do
Deviot -> Compile
:With
platformio
natively:Oddly, creating a second project from scratch using
Deviot -> New sketch
did not prompt to ask for a board and populated theplatform.ini
automatically:The
platformio
docs suggest thatenv
can be anything, but Deviot seems to needenv
to match what it wants.Example 2
If one has a top level
file.ino
file symlinked fromsrc/file.ino
, Deviot moves it anyway. The use case here is that the directory remains Arduino IDE compatible; if you try and opensrc/file.ino
, Arduino will prompt to put it in a directory with the same name. Structure before:Start ST3, open the top level symlink, compile and the screen goes blank!
Deviot replaces the "real file" with a symlink pointing to itself. In my opinion, if the directory is already
platformio
compliant, nothing should be done.Some ideas which I'd be happy to try and help on (with guidance/suggestions):
platformio
compatible directories (perhaps undesirable, but doing the symlink thing has been working for me to have a 'hybrid' structure)platformio
compliant, don't touch it, or perhaps cache the contents and only add/update options if the user selects something new/different?platformio.ini
files, or at least work with them if they are compliantUse PlatformIO Structure
a per-file setting. It appears to be universal at the moment; if the user doesn't want it made into this structure, they have to toggle the option on a per-file optionLet me know if there's anything of merit here. I'm learning
python
and have switched to using this for all of my micro-controller tinkering... I'm happy to try and contribute as I've been looking forpython
projects to work on anyway for better/faster hands-on learning :) Thanks for tolerating all my activity!The text was updated successfully, but these errors were encountered: