platformio / platformio-home

PlatformIO Home
https://docs.platformio.org/page/home/index.html
Apache License 2.0
93 stars 63 forks source link

Malfunction of the selecting menu of examples in library explorer #4672

Open m1cr0lab opened 1 year ago

m1cr0lab commented 1 year ago

Hello,

I have just published my first library on the PlatformIO registry, and I have a problem when I try to display the different examples. Please watch this video to see the demonstration of the malfunction:

https://youtu.be/IfZ6sBgrWm8

  1. the example selection menu behaves strangely:
    it keeps scrolling when I try to browse it with the mouse.

  2. the examples appear twice in the menu.

  3. the list of examples does not appear sorted correctly.

Did I configure something wrong somewhere?

Here are the contents of my library.json file:

{
    "name": "ESPboy",
    "version": "1.2.0",
    "description": "This library provides a driver for the ESPboy (Wemos D1 mini - ESP8266) multi gadget handheld created by Roman Sokolov. Experiment with retro game programming, IoT, and STEAM education while having fun. See more on https://www.espboy.com/.",
    "keywords": "espboy, esp8266, retrogaming, handheld, iot, stem-education",
    "license": "GPL-3.0",
    "frameworks": "arduino",
    "platforms": "espressif8266",
    "headers": "ESPboy.h",
    "authors": {
        "name": "m1cr0lab",
        "url": "https://github.com/m1cr0lab",
        "maintainer": true
    },
    "repository":
    {
      "type": "git",
      "url": "https://github.com/m1cr0lab-espboy/ESPboy"
    },
    "dependencies": [
        {
            "owner": "adafruit",
            "name": "Adafruit MCP4725",
            "version": "^2.0.0"
        },
        {
            "owner": "adafruit",
            "name": "Adafruit MCP23017 Arduino Library",
            "version": "^2.1.0"
        },
        {
            "owner": "lovyan03",
            "name": "LovyanGFX",
            "version": "^0.4.4"
        }
    ],
    "export": {
        "include": [
            "Readme.md",
            "LICENSE",
            "examples/*",
            "src/*",
            "library.json",
            "library.properties",
            "keywords.txt"
        ]
    }
}

And the tree of my example files is as follows:

examples
├── 1-bootstrap
│   └── 1-bootstrap.ino
├── 2-splash-screen
│   └── 2-splash-screen.ino
├── 3-buttons
│   └── 3-buttons.ino
├── 4-neopixel
│   └── 4-neopixel.ino
├── 5-game-of-life
│   └── 5-game-of-life.ino
├── 6-fireworks
│   └── 6-fireworks.ino
├── 7-snake
│   └── 7-snake.ino
├── 8-spaceship
│   └── 8-spaceship.ino
└── 9-2048
    └── 9-2048.ino

Is there a way to have the examples sorted correctly (alphabetically?) or (if possible) by defining the order in which you want them to appear in the selection menu?

Thanks in advance for your help.

Steph

m1cr0lab commented 1 year ago

I am pleased to discover that the menu bug seems fixed.

platformio-library-examples-menu

Thank you for that!

Nevertheless, the examples do not sort correctly. Do you plan to fix this? Is there any way to control the order in which they appear?

m1cr0lab commented 1 year ago

Well, the bug is back... 😕 PIO Core: 6.1.4 PIO Home: 3.4.3