[GSoC 2021] Visual Studio Code extension for Kodi Addons
#1
Greetings!

I'm Dhiganth, an undergraduate student based in Chennai, India. I was going through the various ideas/projects that were listed in the wiki, and I saw an idea which didn't have a mentor assigned, but was still a potential idea: Creating a Visual studio Code extension to validate/syntax highlight Kodi Addons.

I feel like this would be a useful idea to implement, as it could help new users(such as me) to make sure their code is syntactically correct, and it would also help improve readability of existing addons.

I would be happy to work on this idea, if there is a mentor who would be willing to work on this as well. If this pans out well, are there any prerequisites I need to complete/general guidelines I need to follow before my application is considered for this project?

Please forgive me if this question seems very basic and misinformed; I recently came across Kodi (due to GSoC), and would love to find out more about it and contribute more to it.
Reply
#2
Hey there, nice to have you.

I do have some experience creating vscode extensions, but my python knowledge and therefore kodi api knowledge isn't up to date anymore. I'm also not sure how much needs to be done to get to a basic feature set, we might be able to just ship the python stubs from @Roman_V_M  and get most of the features for free, if the user also has the python extension installed.
https://forum.kodi.tv/showthread.php?tid=173780


Maybe add some xml schemas too for addon.xml etc

Run https://github.com/xbmc/addon-check on file change (might not be fast enough) and show diagnostics from it.

It would also be nice to be able to attach for debugging similar to this https://forum.kodi.tv/showthread.php?tid=357594 (which doesn't actually attach)
Reply
#3
(2021-03-13, 16:35)Razze Wrote: Hey there, nice to have you.

I do have some experience creating vscode extensions, but my python knowledge and therefore kodi api knowledge isn't up to date anymore. I'm also not sure how much needs to be done to get to a basic feature set, we might be able to just ship the python stubs from @Roman_V_M  and get most of the features for free, if the user also has the python extension installed.
https://forum.kodi.tv/showthread.php?tid=173780


Maybe add some xml schemas too for addon.xml etc

Run https://github.com/xbmc/addon-check on file change (might not be fast enough) and show diagnostics from it.

It would also be nice to be able to attach for debugging similar to this https://forum.kodi.tv/showthread.php?tid=357594 (which doesn't actually attach)
Thank you for replying! Sorry for my late reply, I was caught up in academic commitments.
By "Run https://github.com/xbmc/addon-check on file change (might not be fast enough) and show diagnostics from it.", what do you mean? Do you want me to clone this repository, and run it locally on some addon?
Also, I didn't understand what you meant by the last line, sorry. Could you please elaborate?
Reply
#4
(2021-03-15, 06:47)dhiganthrao Wrote:
(2021-03-13, 16:35)Razze Wrote: Hey there, nice to have you.

I do have some experience creating vscode extensions, but my python knowledge and therefore kodi api knowledge isn't up to date anymore. I'm also not sure how much needs to be done to get to a basic feature set, we might be able to just ship the python stubs from @Roman_V_M  and get most of the features for free, if the user also has the python extension installed.
https://forum.kodi.tv/showthread.php?tid=173780


Maybe add some xml schemas too for addon.xml etc

Run https://github.com/xbmc/addon-check on file change (might not be fast enough) and show diagnostics from it.

It would also be nice to be able to attach for debugging similar to this https://forum.kodi.tv/showthread.php?tid=357594 (which doesn't actually attach)
Thank you for replying! Sorry for my late reply, I was caught up in academic commitments.
By "Run https://github.com/xbmc/addon-check on file change (might not be fast enough) and show diagnostics from it.", what do you mean? Do you want me to clone this repository, and run it locally on some addon?
Also, I didn't understand what you meant by the last line, sorry. Could you please elaborate?

Sure, regarding the last line. That would be an additional idea, basically being able to start a debug session from vscode. At the moment, you need to save the files to your kodi directory and then start kodi and with that addon go to the website to attach your debugger somewhere (I guess, I've never used it)

Regarding the addon-check, that was an idea to basically reuse that code as a linter and show the errors directly in vscode.
Reply

Logout Mark Read Team Forum Stats Members Help
[GSoC 2021] Visual Studio Code extension for Kodi Addons0