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!
Yup, looks good. Multi-framework definition can still be a bit ā¦ temperamentalā¦ but Iāve only got it to play up onceā¦ and it was just a matter of clearing the field and starting again, so it maybe it was user error. Upload serial port and library dependency auto-complete seem to be working fine on Windows 10. Iāll convert my linux install over to the dev branch later and will see what I can break there
2020 is shaping up quite nicely already, and itās only day 1!
Looks almost ready to be released. The only major bug Iāve found is related to the board autocompletion. I canāt really pinpoint it but the behavior is somewhat random. Several bugs seem to be involved:
Every time it is opened, the custom boards from ~/.platformio/boards are added. The more often it is opened, the more copies of that board appear in the autocompletion popup. And they are not even filtered by the input.
After some more test, I suddenly get the same behavior (stickiness, multiple copies) with the āSparkFun RED-V RedBoardā.
The filter does not properly work. Typing ā12eā finds āEspressif 8266 ESP-12Eā but it does not find āNodeMCU 1.0 (ESP-12E Module)ā.
It seems somewhat random which board is selected (out of multiple matching ones) and what the scroll position is when typing. (It might be related to the mess caused by the custom boards.)
For the next release of Projects & Configuration, you might want to look at these minor issues:
If a new configuration is added, it should be selected and brought to the foreground.
The board autocompletion on the Projects & Configuration page and in the Project Wizard should look and behave the same.
If a configuration is added and given the same name as another configuration, the page behaves strangely. It should probably be prevent from happening in the first place.
New options do not appear. Instead they are added to the other configuration with the same name.
The same option can be added several times (but goes to the other tab)
On save, the two configurations are somehow merged but if two configurations use the same option one of the is lost.
If a project has an invalid platformio.ini file, a reasonable error message appears when opening it for configuration. However, the loading indicator remains (even if the error message is closed).
The search bar on Projects & Configuration page behaves differently from the search bar on the Libraries and Boards pages. When you type, it immediately filters while you need to press ENTER on the other pages.
The autocompletion pop-up for configuration options should also show the value that will be inserted into the field if the item is selected. Otherwise, the behavior is too surprising. Example:
I would like to select one of the NodeMCU boards so I type ānodemcuā.
Iām presented with three options: āNodeMCU 0.9 (ESP-12E Module)ā, āNodeMCU 1.0 (ESP-12E Module)ā and āNodeMCU 32-Sā.
I select āNodeMCU 0.9 (ESP-12E Module)ā. The popup closes and the field does not change. Itās still ānodemcuā. Thatās correct but surprising.
If I click into the field again, the same three options are presented again. A day or a week later, I wonāt remember which of the three boards Iāve selected. This ambiguity occurs anytime a board ID is a prefix of another board ID. Additional cases exist, e.g. ābluepill_f103c8ā and ābluepill_f103c8_128kā.
I can reproduce this - it seems itās not as fuzzy as it could beā¦ a search for ESP with an espressif8266 platform selected wouldnāt bring up the NodeMCU 0.9 (ESP-12 Module) or NodeMCU 1.0 (ESP-12E Module). Re the randomness, it seems the board in the list that is selected when you press enter is the one that is highlighted, which can be done with cursor keys or mouse. This is without any custom boards present, so you can take that out of the equation at least.
Sorry for the late answer. We were busy with other parts of PlatformIO. We want to finally release PlatformIO Core 4.1.1 next week. Weāve just release PIO Home 3.1.0-rc.2 and fixed all known issues. There are some unresolved things but they are not a blocker.
Please re-run pio upgrade --dev. Can we move to the release phase? Thanks!!!
Iām afraid the board auto completion still does not properly work. Some problems have been fixed (such as searching for ā12Eā). But after opening the configuration page for the same project again, suddenly my custom board (from ~/.platformio/boards) appears about ten times and doesnāt care about the filter.
And Iāve mentioned it before but must have missed the answer: why does copy/cut/paste only work from the main menu but not with keyboard shortcuts or from a context menu (which is not available)? It applies to all PIO screens (Visual Studio Code on Mac) but on the configuration pages I missed it the most.
The Project Wizard dialog (opened with New Project form the home page) has the same bug as well. My custom board definition appears once for each platform.
It looks like an issue with PlatformIO Core. Could tell me how is declared your custom board? Does it have platform or platforms field? I canāt replicate it. I would be thankful if you can prepare some test boards and send me manifests. Thanks!
Sorry for delay - crazy busy with upcoming PIO Core 4.1.1.
You see multiple times this custom board because you targeted it to all dev-platforms which are installed on your machine. Please add to your board manfiest
Thanks, that fixes it. I guess the platform entry is only needed for the boards directory in .platformio and not for the board definition that come as part of a platform (as I canāt see such an entry in those files).