Kodi Community Forum

Full Version: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
(2016-04-13, 12:54)phil65 Wrote: [ -> ]
(2016-04-13, 01:29)Jeroen Wrote: [ -> ]So I've been using this for a while now, mainly the highlighting and auto closing an such. Just looking into the sanity check features but I can't get it to work. When i use the command palette nothing shows up when i type sublimekodi. Anyone got tips for me?

- Plugin is installed correctly? (on windows: C:\Users\yourname\AppData\Roaming\Sublime Text 3\Packages\SublimeKodi)
- skins organized as projects?

SublimeText log output could also give some hints.
When switching projects, you should get something like:

SublimeKodi: project change detected: C:\Kodi\portable_data\addons\skin.estuary
SublimeKodi: Parsing po file C:\Kodi\portable_data\addons\skin.estuary\language\resource.language.en_gb\strings.po
SublimeKodi: Parsing po file C:\Kodi\portable_data\addons\skin.estuary\language\resource.language.de_de\strings.po
SublimeKodi: Kodi project detected: C:\Kodi\portable_data\addons\skin.estuary
SublimeKodi: found include file: C:\Kodi\portable_data\addons\skin.estuary\1080i\Includes.xml
SublimeKodi: found include file: C:\Kodi\portable_data\addons\skin.estuary\1080i\Defaults.xml
SublimeKodi: found include file: C:\Kodi\portable_data\addons\skin.estuary\1080i\Includes_Home.xml
SublimeKodi: found include file: C:\Kodi\portable_data\addons\skin.estuary\1080i\Includes_Animations.xml
SublimeKodi: found include file: C:\Kodi\portable_data\addons\skin.estuary\1080i\Includes_MediaMenu.xml
SublimeKodi: found include file: C:\Kodi\portable_data\addons\skin.estuary\1080i\Includes_Buttons.xml
SublimeKodi: found include file: C:\Kodi\portable_data\addons\skin.estuary\1080i\Includes_PVR.xml
....
SublimeKodi: found include file: C:\Kodi\portable_data\addons\skin.estuary\1080i\Variables.xml
SublimeKodi: Include List: 177 nodes found in '1080i' folder.
SublimeKodi: found 92 XMLs in C:\Kodi\portable_data\addons\skin.estuary\1080i
SublimeKodi: found color file: charcoal.xml
SublimeKodi: color list: 12 colors found
SublimeKodi: found color file: chartreuse.xml
SublimeKodi: color list: 24 colors found
SublimeKodi: found color file: defaults.xml
SublimeKodi: color list: 36 colors found
SublimeKodi: found color file: gold.xml
SublimeKodi: color list: 48 colors found
...

Yeah, it's installed in the packages directory. I have made a project including the entire skin's folder and saved the project file in it's root. Does it matter where the sublime-project file is saved?

I came across this in the log:

Quote:indexing: crawler exited while processing /Users/Jeroen/Library/Application Support/Kodi/addons/skin.refocus.dev/Build.command, no symbols recorded
indexing: crawler exited while processing /Users/Jeroen/Library/Application Support/Kodi/addons/skin.refocus.dev/Build.sh, no symbols recorded

Could that be an issue?

full log: http://pastebin.com/sRe4MQmt
The issue is this here:

File "/Users/Jeroen/Library/Application Support/Sublime Text 3/Packages/SublimeKodi/sublimekodi.py", line 29, in <module>
from lxml import etree as ET
ImportError: No module named 'lxml'

Probably a platform-related issue (I dont have access to an OSX machine), so not sure if I will be able to fix it.
(2016-04-13, 19:58)phil65 Wrote: [ -> ]The issue is this here:

File "/Users/Jeroen/Library/Application Support/Sublime Text 3/Packages/SublimeKodi/sublimekodi.py", line 29, in <module>
from lxml import etree as ET
ImportError: No module named 'lxml'

Probably a platform-related issue (I dont have access to an OSX machine), so not sure if I will be able to fix it.

Cheers, I installed lxml on my machine, that doesn't seem to make a difference though

latest log: http://pastebin.com/6ranyt0H

If there's anything I can do to help or test let me know
(2016-04-13, 21:39)Jeroen Wrote: [ -> ]
(2016-04-13, 19:58)phil65 Wrote: [ -> ]The issue is this here:

File "/Users/Jeroen/Library/Application Support/Sublime Text 3/Packages/SublimeKodi/sublimekodi.py", line 29, in <module>
from lxml import etree as ET
ImportError: No module named 'lxml'

Probably a platform-related issue (I dont have access to an OSX machine), so not sure if I will be able to fix it.

Cheers, I installed lxml on my machine, that doesn't seem to make a difference though

latest log: http://pastebin.com/6ranyt0H

If there's anything I can do to help or test let me know

BigNoid uses OSX and he doesnt seem to have any issues, I asked him today. BobCratchett had it workin too on OSX if i remember correctly.
Cannot really help as I dont know too much about OSX, sorry.
(2016-04-13, 23:48)phil65 Wrote: [ -> ]BigNoid uses OSX and he doesnt seem to have any issues, I asked him today. BobCratchett had it workin too on OSX if i remember correctly.
Cannot really help as I dont know too much about OSX, sorry.

Apparently it makes a lot of difference on OSX for some reason if one installs the plugin manually or not. I installed through ST's package manager, and all is working Smile
With thanks to BobCratchett Smile
Some news:
This plugin should soon be available via PackageControl (https://packagecontrol.io/), the PR is up.
In order to get this done I had to rename the script to KodiDevKit and, as a positive effect, was able to use newly added lxml as an external dependency which makes things much easier to deal with and avoids platform-specific issues. When it becomes available you should remove the SublimeKodi folder completely from your addons folder and just rename your custom settings file in User/ subfolder to kodidevtoolkit.sublime-settings.
Hey Phil,

I've manually updated from GitHub (it's not on packagecontrol yet) and I noticed that the menu bar entries still link to the setting files with "sublimekodi" as tag.
(2016-04-29, 08:26)sualfred Wrote: [ -> ]Hey Phil,

I've manually updated from GitHub (it's not on packagecontrol yet) and I noticed that the menu bar entries still link to the setting files with "sublimekodi" as tag.

That´s because the script has a new repo.

https://github.com/phil65/KodiDevKit
(2016-04-29, 17:42)phil65 Wrote: [ -> ]That´s because the script has a new repo.

https://github.com/phil65/KodiDevKit

I know. I've installed that package, that's why I'm reporting this issue Wink

Edit:
Nevermind, issue is gone. Removed and readded all repo links and it's fixed. Dunno what was causing it.
(2016-04-29, 00:41)phil65 Wrote: [ -> ]When it becomes available you should remove the SublimeKodi folder completely from your addons folder and just rename your custom settings file in User/ subfolder to kodidevtoolkit.sublime-settings.
Not sure if its because I installed manually, but I had to remove the kodidevtoolkit.sublime-settings (after I renamed it from sublimekodi.sublime-settings) and recreate it through the package settings for getting the settings to stick.
you're sure that you used a version containing this commit? https://github.com/phil65/KodiDevKit/com...026520ff14

EDIT: because of 2nd rename, name has to be kodidevkit.sublime-settings, not kodidevtoolkit.
Ah right. That explains it.
Wow, can't believe how many invalid attributes I found with the new version, great work Phil!
Came to try out the Package Control version of the Kodi Dev Kit, but unfortunately it's not running with an error shown in Sublime Text's console. Let me know if there's any more info I can provide (or, more likely, if I've simply made an embuggerance of installing it...)
(2016-05-05, 16:57)BobCratchett Wrote: [ -> ]Came to try out the Package Control version of the Kodi Dev Kit, but unfortunately it's not running with an error shown in Sublime Text's console. Let me know if there's any more info I can provide (or, more likely, if I've simply made an embuggerance of installing it...)

yup thx, that still needs adapting. Will fix and use that as an excuse to try out the PackageControl update mechanism. Wink
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22