Replies: 5 comments 10 replies
-
|
the stubs file is not 100% correct. It needs to have work done to it to get it right. The stub file is generated during the build for LVGL. the other stub files are hand keyed and they do need to be checked for correctness. I have forgotten to update them when a change was made. |
Beta Was this translation helpful? Give feedback.
-
|
IDK if you are familiar with this repo... |
Beta Was this translation helpful? Give feedback.
-
|
There is a new MicroPython plugin that has been made for PyCharm and it is a vast improvement over the one written by JetBrains. They commented the the use of your stub files. I opened an issue at the repo for it with a suggestion to add support for my binding. I also mentioned that the build script really simplifies the compilation process of MicroPython and it could be changed very easily so it could be used to compile only MicroPython without the LVGL binding. You have used the build system and they are also familiar with who you are, maybe you may want to drop a line in the issue letting them know about the stub generation for this library and that you are currently in the process of working on it... Might even be able to add stub generation directly to their plugin so it will generate the stub files on demand. Here is the link... |
Beta Was this translation helpful? Give feedback.
-
|
Just my $0.02 here: I inserted @Josverl 's version of There are still some issues, but at least the majority of it is available in my editor. |
Beta Was this translation helpful? Give feedback.
-
|
I am going to need to do something because the newest release of LVGL broke the script that outputs the json data that is used in the generator. It might be time to scrap the current script generator and stub generator. The current one is a fickle animal and it breaks very easily. I have not wanted to tackle that beast on my own because it is a pretty large undertaking to do. I have thought about hard coding the binding code as I think this would be easier fix if something breaks. LVGL's API for the most part is fairly stable so from a maintenance standpoint it would not be that hard to work with. if anyone wants to help out with either writing a new script generator or hard coding the binding lemme know. It's really not something I want to tackle by myself. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@kdschlosser
I have recently created a tool and PoC for better (online) editor integration of stubs for MicroPython development.
I would love to include the lvgl-stubs in that tool as selectable option, but want to check first if that is OK.
LVGL @ Stubs Playground
( by adding the lvgl-stubs the errors will go away - and get replaced by docs and param info as tablestakes for any IDE nowadays)
The tool is a static site - so integration in the build steps could be straightforward, as you have most of the stubs already.
I'm not sure how much the delta of the rest is with stock MicroPython - but I expect that re-generating stubs for any changed modules should be straight-forward if needed.
I remember for a few years back that stubbing the lvgl module itself was an undertaking - but IIUC that is now generated during build ?
anyway - first things first : Would you like to make this work ?
Beta Was this translation helpful? Give feedback.
All reactions