Kodi Community Forum
Release KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: Release KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting (/showthread.php?tid=221682)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - jurialmunkey - 2017-03-21

I've noticed I get checks saying that <align>bottom</align> is an invalid value for grouplists, but it is actually valid. Any other control it would be invalid (should be aligny) but grouplist only uses align.

Also, label2 is valid for radiobutton, but it checks as invalid.


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - BigNoid - 2017-03-22

PR's are open @ https://github.com/phil65/KodiDevKit


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - mikeSiLVO - 2017-03-29

@jurialmunkey
@BigNoid
@phil65
I could not figure out how to add <align>bottom for only grouplists but I sent PR for label2 in radiobutton (not tested by me) and also oninfo for all buttons as that seems to work (tested by me)

Thanks.


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - jurialmunkey - 2017-03-29

(2017-03-29, 06:54)mikeSiLVO Wrote: @jurialmunkey
@BigNoid
@phil65
I could not figure out how to add <align>bottom for only grouplists but I sent PR for label2 in radiobutton (not tested by me) and also oninfo for all buttons as that seems to work (tested by me)

Thanks.
Cheers! Smile


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - benrot - 2017-04-24

Hello Phil,

I'm getting the following errors:

PHP Code:
DPI scale1
startup
version3126 windows x64 channelstable
executable
: /C/Program Files/Sublime Text 3/sublime_text.exe
working dir
: /C/Program Files/Sublime Text 3
packages path
: /C/Users/Marc/AppData/Roaming/Sublime Text 3/Packages
state path
: /C/Users/Marc/AppData/Roaming/Sublime Text 3/Local
zip path
: /C/Program Files/Sublime Text 3/Packages
zip path
: /C/Users/Marc/AppData/Roaming/Sublime Text 3/Installed Packages
ignored_packages
: ["Vintage"]
pre session restore time0.0729968
startup time
0.0989968
first paint time
0.102997
first paint time
0.103997
reloading plugin 
Default.auto_indent_tag
reloading plugin 
Default.block
reloading plugin 
Default.comment
reloading plugin 
Default.convert_syntax
reloading plugin 
Default.copy_path
reloading plugin 
Default.delete_word
reloading plugin 
Default.detect_indentation
reloading plugin 
Default.duplicate_line
reloading plugin 
Default.echo
reloading plugin Default.exec
reloading plugin 
Default.fold
reloading plugin 
Default.font
reloading plugin 
Default.goto_line
reloading plugin 
Default.history_list
reloading plugin 
Default.indentation
reloading plugin 
Default.install_package_control
reloading plugin 
Default.kill_ring
reloading plugin 
Default.mark
reloading plugin 
Default.new_templates
reloading plugin 
Default.open_context_url
reloading plugin 
Default.open_in_browser
reloading plugin 
Default.pane
reloading plugin 
Default.paragraph
reloading plugin 
Default.paste_from_history
reloading plugin 
Default.profile
reloading plugin 
Default.quick_panel
reloading plugin 
Default.run_syntax_tests
reloading plugin 
Default.save_on_focus_lost
reloading plugin 
Default.scroll
reloading plugin 
Default.set_unsaved_view_name
reloading plugin 
Default.settings
reloading plugin 
Default.show_scope_name
reloading plugin 
Default.side_bar
reloading plugin 
Default.sort
reloading plugin 
Default.swap_line
reloading plugin 
Default.switch_file
reloading plugin 
Default.symbol
reloading plugin 
Default.transform
reloading plugin 
Default.transpose
reloading plugin 
Default.trim_trailing_white_space
reloading plugin CSS
.css_completions
reloading plugin Diff
.diff
reloading plugin HTML
.encode_html_entities
reloading plugin HTML
.html_completions
reloading plugin 0_package_control_loader.00
-package_control
reloading plugin 0_package_control_loader.01
-pygments
reloading plugin 0_package_control_loader.10
-lxml
reloading plugin 0_package_control_loader.50
-markupsafe
reloading plugin 0_package_control_loader.50
-python-markdown
reloading plugin 0_package_control_loader.51
-python-jinja2
reloading plugin 0_package_control_loader.55
-mdpopups
reloading plugin Indent XML
.indentxml
reloading plugin KodiDevKit
.__init__
reloading plugin KodiDevKit
.commands
Traceback 
(most recent call last):
  
File "C:\Program Files\Sublime Text 3\sublime_plugin.py"line 109in reload_plugin
    m 
importlib.import_module(modulename)
  
File "./python3.3/importlib/__init__.py"line 90in import_module
  File 
"<frozen importlib._bootstrap>"line 1584in _gcd_import
  File 
"<frozen importlib._bootstrap>"line 1565in _find_and_load
  File 
"<frozen importlib._bootstrap>"line 1532in _find_and_load_unlocked
  File 
"C:\Program Files\Sublime Text 3\sublime_plugin.py"line 915in load_module
    exec
(compile(sourcesource_path'exec'), mod.__dict__)
  
File "commands in C:\Users\Marc\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 20in <module>
  
File "C:\Program Files\Sublime Text 3\sublime_plugin.py"line 915in load_module
    exec
(compile(sourcesource_path'exec'), mod.__dict__)
  
File "libs.utils in C:\Users\Marc\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 19in <module>
ImportErrorNo module named 'requests'
reloading plugin KodiDevKit.kodidevkit
Traceback 
(most recent call last):
  
File "C:\Program Files\Sublime Text 3\sublime_plugin.py"line 109in reload_plugin
    m 
importlib.import_module(modulename)
  
File "./python3.3/importlib/__init__.py"line 90in import_module
  File 
"<frozen importlib._bootstrap>"line 1584in _gcd_import
  File 
"<frozen importlib._bootstrap>"line 1565in _find_and_load
  File 
"<frozen importlib._bootstrap>"line 1532in _find_and_load_unlocked
  File 
"C:\Program Files\Sublime Text 3\sublime_plugin.py"line 915in load_module
    exec
(compile(sourcesource_path'exec'), mod.__dict__)
  
File "kodidevkit in C:\Users\Marc\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 25in <module>
  
File "C:\Program Files\Sublime Text 3\sublime_plugin.py"line 915in load_module
    exec
(compile(sourcesource_path'exec'), mod.__dict__)
  
File "libs.utils in C:\Users\Marc\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 19in <module>
ImportErrorNo module named 'requests'
reloading plugin KodiDevKit.remote
Traceback 
(most recent call last):
  
File "C:\Program Files\Sublime Text 3\sublime_plugin.py"line 109in reload_plugin
    m 
importlib.import_module(modulename)
  
File "./python3.3/importlib/__init__.py"line 90in import_module
  File 
"<frozen importlib._bootstrap>"line 1584in _gcd_import
  File 
"<frozen importlib._bootstrap>"line 1565in _find_and_load
  File 
"<frozen importlib._bootstrap>"line 1532in _find_and_load_unlocked
  File 
"C:\Program Files\Sublime Text 3\sublime_plugin.py"line 915in load_module
    exec
(compile(sourcesource_path'exec'), mod.__dict__)
  
File "remote in C:\Users\Marc\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 12in <module>
  
File "C:\Program Files\Sublime Text 3\sublime_plugin.py"line 915in load_module
    exec
(compile(sourcesource_path'exec'), mod.__dict__)
  
File "libs.adbdevice in C:\Users\Marc\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 11in <module>
  
File "C:\Program Files\Sublime Text 3\sublime_plugin.py"line 915in load_module
    exec
(compile(sourcesource_path'exec'), mod.__dict__)
  
File "libs.utils in C:\Users\Marc\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 19in <module>
ImportErrorNo module named 'requests'
reloading plugin KodiDevKit.script
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control
.Package Control
plugins loaded
Package Control
Skipping automatic upgradelast run at 2017-04-24 00:21:56next run at 2017-04-24 01:21:56 or after 

When I rightclick on my editor I get all the items from kodidevkit greyed out.

I've only installed the package manager and kodidevkit via the package manager.
Is there something else to install?

Thanks for the help.


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - JohnyBee - 2017-05-08

Hi
Good job, thanks.
It does not work "shift + enter" and hints for my skin.
It seems that for the skin "Aeon Nox 5" works well.
When loading my skin I get logs:

Code:
(...)
[KodiDevKit] 2017-05-08 14:49:51: Include List: 5963 nodes found in '1080i' folder.
[KodiDevKit] 2017-05-08 14:49:51: found color file defaults.xml including 6 colors
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 530, in on_activated_async
    callback.on_activated_async(v)
  File "kodidevkit in C:\Users\janb\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package", line 261, in on_activated_async
  File "kodidevkit in C:\Users\janb\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package", line 317, in check_status
  File "libs.infoprovider in C:\Users\janb\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package", line 135, in init_addon
  File "libs.addon in C:\Users\janb\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package", line 132, in by_project
  File "libs.skin in C:\Users\janb\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package", line 43, in __init__
  File "libs.skin in C:\Users\janb\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package", line 132, in get_fonts
AttributeError: 'NoneType' object has no attribute 'text'

Please help

EDIT:
Problem solved
Blank tag in the Font.xml file:
Code:
(...)
<font>
</font>
(...)



RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - Enzpol - 2017-09-26

Hey Team

I'm trying to get this KodiDevKit to work on my MacBook Pro and any help with the settings would be appreciated.
I'm running Sublime Text 3 Build 3143.

I can get the Syntax to show KodiDevKit>KodiSkinXML which I believe is indicative that I have installed the package correctly.
I have then 'Added Folder to Project' and included the Addon folder located in ...>Application Support>Kodi>Addons

I am then struggling to get the Kodi_Path which I believe I edit the Package Settings>KodiDevKit>Settings - User.
This should then be:
Code:
{
    "kodi_path": "/Applications",
}



RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - Mr. V - 2017-11-19

Hi all,

I am seeing an invalid control type when using $PARAM.

Code:
<control type="$PARAM[listtype]" id="9000">

Let me know if there is any other info you need.

Cheers.


EDIT
Thanks Phil all fixed with your update
https://github.com/phil65/KodiDevKit/commit/8388024ceb397217d0a0852e6dc68522628407ff


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - Mr. V - 2017-12-19

Hi Phil

I am getting an invalid control with

Code:
<control type="gamewindow">

I assume its not a bug just hasn't been added.


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - jurialmunkey - 2019-01-18

Hey all,

I recently got a new laptop and am setting up SublimeText3 with KodiDevKit on Windows, but I am having a problem with the move to language file context menu item being grayed out.

I've added my skin root folder to the project, but the context menu item remains grayed out. Anyone have any ideas? I'm on build 3176 of ST3 - wondering if maybe I need to revert back to an earlier version?


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - mikeSiLVO - 2019-01-18

(2019-01-18, 04:44)jurialmunkey Wrote: Hey all,

I recently got a new laptop and am setting up SublimeText3 with KodiDevKit on Windows, but I am having a problem with the move to language file context menu item being grayed out.

I've added my skin root folder to the project, but the context menu item remains grayed out. Anyone have any ideas? I'm on build 3176 of ST3 - wondering if maybe I need to revert back to an earlier version?

Did you set up all the Kodi details in Preferences > Package settings > Default?

The "kodi_path" in particular.


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - jurialmunkey - 2019-01-18

(2019-01-18, 09:50)mikeSiLVO Wrote:
(2019-01-18, 04:44)jurialmunkey Wrote: Hey all,

I recently got a new laptop and am setting up SublimeText3 with KodiDevKit on Windows, but I am having a problem with the move to language file context menu item being grayed out.

I've added my skin root folder to the project, but the context menu item remains grayed out. Anyone have any ideas? I'm on build 3176 of ST3 - wondering if maybe I need to revert back to an earlier version?

Did you set up all the Kodi details in Preferences > Package settings > Default?

The "kodi_path" in particular.

Yep. I've got my skin folder added in the project and preferences for KodiDevKit pointing to
Code:
{
    "kodi_path": "C:\\Program Files\\Kodi"
}

I'm missing some options in the command palette also (e.g. Check Includes etc.)

Not sure what step I'm missing!


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - sualfred - 2019-01-18

- script.toolbox is installed?
- webserver is activated and accessable?
- portable mode setting set if portable mode?
- try setting the path to "c:/program files/kodi"

my config as for example:
Code:

{
    "auto_reload_skin": true,
    "auto_skin_check": false,
    "kodi_address": "http://localhost:8080",
    "kodi_password": "kodi",
    "kodi_path": "e:/kodi-leia/",
    "kodi_username": "kodi",
    "language_folders":
    [
        "English",
        "resource.language.en_gb"
    ],
    "portable_mode": true,
    "remote_ip": "",
    "remote_userdata_folder": "",
    "texturechecker_path": "",
    "tooltip_css_file": "css/dark.css",
    "tooltip_delay": 0,
    "tooltip_height": 300,
    "tooltip_width": 1000
}




RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - jurialmunkey - 2019-01-18

(2019-01-18, 13:08)sualfred Wrote: - script.toolbox is installed?
- webserver is activated and accessable?
- portable mode setting set if portable mode?
- try setting the path to "c:/program files/kodi"

Yep.

Toolbox installed. Webserver enabled. Not using portable. Tried every possible valid variation of path I can think of.

I'm totally stumped.


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - sualfred - 2019-01-18

3 other ideas:
- Your project tree on the left has only the skin folder? Have you saved the project?
- Have you tried to set the kodi path via the KodiDevKit action? 
- Have you tried the "reload language files" option?