I can clearly see the progress but Iām still somewhat hesitant. Itās good if someone works with a single configuration. But for everything else there is still a solid understanding of the underlying file and all its hidden secrets required.
If you have two or more configurations and no env or platformio section, there is no obvious way to select the default configuration and the configurations built by default.
Secret 1: Tab order matters; the first one is used for Intellisense and debugging.
Secret 2: There is default_envs. But it must go into the platformio section.
If you create the platformio section / PlatformIO Settings configuration, it is added to the right, called platformio and visually identical to other configurations. It would be much better, if it went to the left most position (and top position within the file), didnāt have a name but was clearly labelled as PlatformIO Settings (including the tab label).
If you create an env section / Common Configuration, it goes to the right most position as well and doesnāt look different from regular configurations. Again, it would be better if it was clearly distinguishable from regular configurations, had a title instead of a read-only name field and the tab was labelled Common Configuration because thatās what the previous action was supposed to create.
Other open issues:
When saving, all existing comments are discarded without warning.
A header is inserted into the saved file. Thatās ok when creating a new project; but afterwards itās more of an annoyance.
Shortcuts for copy/cut/paste do not work (on Mac, applies to other UIs as well)
If something is missed, please file a new issue/feature request and we will work on it,
@TD-er all issues that you reported were fixed too. Thanks!!!
@manuelbl what could be improved this time? The āauto-completionā for known fields is in progress and we have good results. It seems we can even implement in-line search for lib_deps.
Configuration save does work now.
But the formatting of the file is lost.
Would be nice if the = in a section is all aligned on the same column.
That makes reading a lot easier.
Also all comments are stripped, which I do find more of a problem.
I have blocks of comments to separate a number of envs which have much in common.
Since the project configurator also does not support multiple files, getting rid of comments does not help in keeping the ini files a bit structured.
An unfortunate known issue I raised earlier, and is currently in the "canāt be fixedā pile as Pythonās ConfigParser is just that dumb, and there donāt seem to be any viable maintained alternatives.
And do I detect another plea for multi-file configuration support? At least itās in the list to be implemented, but I donāt think it wonāt make the first releaseā¦
I suspect (and I hope Iām wrong) that the limitations of the ConfigParser may also foul implementing your alignment requestā¦ which does make it so much more readable. Then again, thereās nothing to stop some sort of ConfigParser write post-processing of the file? Maybe? Possibly?
First reactions - only taken it for a quick test driveā¦ and will add issues on pio-home for so can be task-listed/discussed/rejected.
Labels for the hover icons is taking the guesswork out of what they icons doā¦ thanks!
Can we get PlatformIO Configuration pinned to the left side of the tab strip, rather than somewhere on the right, and potentially between env blocks?
The errant unconfigured boolean options arenāt being inserted anymoreā¦ yay!
I still think the ToC button needs to go up the top, as it is not a tab specific option, and persists as you switch between tabs.
After saving changes with the GUI, there are always two blank lines at the end of platformio.ini ā¦ I can understand 1, but 2 is double dipping!
I like how the deleting of env was handled, much better now!
No more scary message about no options defined
Questions for discussion:
Should entries which have no value be deleted? Or should they be explicitly deleted to be removed from the platformio.ini. As a simply experimentā¦ clear the value of board for a envā¦ save the changeā¦ and board = still exists in the platformio.ini ā¦ I was expecting it to be deleted since it had no value set.
Is there benefit to having the PlatformIO Configuration tab always present? And perhaps also the ācommon configurationā? Then the plus button just adds environments. Or will this confuse users with extra āemptyā tabs? Unless, of course, the no options message was expanded on, to include a brief summary of the sorts of things that can be configured in that tab?
Thatās looking really good Ivan & Eugene That the PIO configuration and Common configuration tabs now auto insert to the right, and have different icons to all the other tabs makes them stand out more too.
My only niggle at present would be the folder icon in the top toolbarā¦ I clicked it without reading the tooltip, and went to the editor, not to an open dialog. Perhaps a pencil icon or some other icon that symbolises editing?
And now youāre just teasingā¦ I can see that PR about the serial port and env autocompleters thatās just begging to be brokenā¦ er, tested!!
The autocompletion is very helpful but currently hard to use:
If the platform is changed, board and framework are deleted. Very surprising. It would make sense if the value is incompatible with the selected platform. But the framework (Arduino in my test case) was available on both platforms.
Framework field is not working:
When I start to type, all entries have three dots prepended even if the field is empty (except in a single case I can no longer reproduce). Why?
When I select an entry from the autocompletion, the autocompletion disappears and the typed letters remain in the field. (What in fact happens is that the selected entry is inserted outside the visible area of the field content and in addition to the typed letters even though itās supposed to replace it.)
Multiple entries are inserted on separate lines but the field height does not grow. So the content is not visible and its not obvious what happens.
Unlike the other fields, the framework field has no search icon at the end of the field. Whatās this difference supposed to indicate?
At first the lib_deps field didnāt work. I entered text, clicked the search icon: no effect. Then after about 20 seconds, it started to work. But it still does not seem to work reliably. I guess itās loading some data in the background. If so, it badly needs some indication that itās working.
I am also confused that a newly created project does not appear in the Projects view. I have to first add it manually (Add Existing) before I can configure it.
Once the above issued have be ironed out, youāll be very close to the finish or even have made it.
That looks to be a bug, as itās much worse than that. If, for instance, you merely click on the platform entry, and then click away from it, it clears both the board and framework. I thought at first it worked if you clicked on the auto-complete prompt, but even then it deletes the other entries
The triple dots appears to be related to the multi-line nature of the framework field, and I can get it to behave half of the time. It seems to get confused if the field wasnāt completely empty to start withā¦ if there is any whitespace at all, it prepends the ... and will insert the selected entry on a new line. And yeah, it does confuse a bit that the field doesnāt auto-expand if add to.
I didnāt have any issues with the lib_deps search (yet! )ā¦ I typed, waited 1-1.5 seconds and it gave me optionsā¦ picked my optionā¦ and then pressed enter to add it (maybe that last bit isnāt so intuitive?) Or sooner if I clicked the search icon. But yes, perhaps a spinner similar to the one used on the main home screen whilst itās searching could be implemented, for when there are issues with internet connection, i.e. slow, etc. I suppose editing existing values is in the ātoo hard basketā for now? Or is that a āgo edit the platformio.ini fileā occasion.
Thank you for pointing out the newly created projects arenāt addedā¦ I completely forgot to mention that when I encountered it. IIRC, it does get added if you create it from the Projects page, but not from the home page?
This is on Windows 10 w/ PIO Home 3.1.0-beta.7 & Core 4.1.1b5
It looks like the search works in realtimeā¦ i.e. after you pause for a moment it does something ā¦ so thereās no need to hit the button or press enterā¦ but itās that something that isnāt working properlyā¦ as what it is actually matching/searching for I donāt know!
e.g. I can see that when I search for āpzemā that the list is reduced from four items to three instantly, but why it shows the other two matches I donāt know??
And whilst I thought the history issue was only related to the new Projects tab, I just realised the main front screen recent projects list isnāt updating.
Home screen add new project
vs
Projects section add new project
But the add existing button on the Projects panel updates the list properly, which is why the PZEM project is listed now.
Also, it seems like the multi-line handling for framework is better (less confusing?), but also worseā¦ it now wonāt let you enter two frameworks at all, and if you have two frameworks present in the file, it mashes them togetherā¦
i.e. the randomly (and manually) entered
framework =
arduino
simba
got turned into
Otherwise seems good! Hope you guys had a great Christmas!