Posts: 14
Joined: Mar 2018
Reputation:
0
2018-03-14, 16:18
(This post was last modified: 2018-03-14, 16:32 by bbuccianti.
Edit Reason: post reply by missclick
)
Okay I'm studying addon-check and here are the features that it's implemented there
Check for invalid xml files:
Here just try if can parse it with xml.etree.ElementTree.parse. If not can parse return an error
Check for invalid json files:
Here again check if can parse with json.load. If not return an error
Check artwork:
Here check the type of the image and if can open. Checking the type of the image we ensure that you need a icon and a fanart for your addon
Check if License exist
Check if legacy strings.xml exists and if exists encourage you to migrate to strings.po.something
Check the same for the language directory structure
Check for blacklisted strings
Check for files with whitelisted endings
Do you think I miss something? Maybe you can come with something else to add to the list?
Thank you for all, Razze
Posts: 14
Joined: Mar 2018
Reputation:
0
2018-03-16, 00:14
(This post was last modified: 2018-03-16, 00:16 by bbuccianti.)
Then...
"Make a Language Server to recognize imports from kodi API and imports from addon.xml" is a valid target for my proposal timeline? How much time do you need I need for this? One week?
Maybe another target is make a debug adapter to use the debugger on python files?
Posts: 2,127
Joined: Jan 2015
Reputation:
60
Razze
Team-Kodi Member
Posts: 2,127
I'm not sure if we can get the debugger to run, you would have to attach it to a running kodi instance showhow. Probably possible, but I got no idea how to do that.
Posts: 2,127
Joined: Jan 2015
Reputation:
60
Razze
Team-Kodi Member
Posts: 2,127
If you can go into more detail, it's quiet short. Also include a timeline, when are you planning to do what etc.
Posts: 2,127
Joined: Jan 2015
Reputation:
60
Razze
Team-Kodi Member
Posts: 2,127
Not sure if you changed stuff already. But to me, 3 weeks for the debugger alone seems to be quiet fast. Great if you could do that, but I would expect it to be a bit more difficult.
Another thing I started thinking about, is that kodi is not nessesarily running your addons code when you start it (or attach to). It might also run 100 of unrelated python scripts at the same time, so that's info/debug you don't want to see.
Posts: 14
Joined: Mar 2018
Reputation:
0
Concretely what need more explaining? The benefits, summary, what will the project focus on, etc?
Posts: 2,127
Joined: Jan 2015
Reputation:
60
Razze
Team-Kodi Member
Posts: 2,127
Well I would think everything, as the thing I mentioned above about the debugger suggests, that you did not think enough about what you want to do, when you want to do and how you want to do it. It usually helps me, to write everything down and slice it into steps, then align those to the weeks. Then move around until it feels right. And be sure to add/remove stuff if it doesn't feel right.
Posts: 41
Joined: Apr 2018
Reputation:
1
is this project stopped ?
There is some other project like this ?
it's a very good idea that would incredibly speed up the development of a kodi plugin