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 - sualfred - 2016-07-31

Ok, it seems it's a general problem. In this screen it previews the include instead the variable.

Image


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - mikeSiLVO - 2016-08-30

KodiDevKit just updated and doesn't appear to be working for me Sad

I don't recall changing anything since the previous update...

SublimeText log:
PHP Code:
DPI scale1.5
startup
version3118 windows x64 channeldev
executable
: /C/Program Files/Sublime Text 3/sublime_text.exe
working dir
: /C/Program Files/Sublime Text 3
packages path
: /C/Users/SiLVO/AppData/Roaming/Sublime Text 3/Packages
state path
: /C/Users/SiLVO/AppData/Roaming/Sublime Text 3/Local
zip path
: /C/Program Files/Sublime Text 3/Packages
zip path
: /C/Users/SiLVO/AppData/Roaming/Sublime Text 3/Installed Packages
ignored_packages
: ["Vintage"]
pre session restore time0.125214
startup time
0.158214
first paint time
0.158214
first paint time
0.158214
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.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.02
-bz2
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 Google Spell Check
.google-spell-check
reloading plugin Indent XML
.indentxml
reloading plugin KodiDevKit
.__init__
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 892in load_module
    exec
(compile(sourcesource_path'exec'), mod.__dict__)
  
File "kodidevkit in C:\Users\SiLVO\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 27in <module>
  
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 892in load_module
    exec
(compile(sourcesource_path'exec'), mod.__dict__)
  
File "libs.infoprovider in C:\Users\SiLVO\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 18in <module>
  
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 892in load_module
    exec
(compile(sourcesource_path'exec'), mod.__dict__)
  
File "libs.kodi in C:\Users\SiLVO\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 2in <module>
  
File "libs.kodi.kodi in C:\Users\SiLVO\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 29in __init__
  File 
"libs.kodi.kodi in C:\Users\SiLVO\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 73in get_colors
  File 
"./python3.3/ntpath.py"line 111in join
  File 
"./python3.3/ntpath.py"line 162in splitdrive
TypeError
object of type 'NoneType' has no len()
reloading plugin KodiDevKit.remote
reloading plugin KodiDevKit
.script
reloading plugin KodiDevKit
.utils
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 892in load_module
    exec
(compile(sourcesource_path'exec'), mod.__dict__)
  
File "utils in C:\Users\SiLVO\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 21in <module>
  
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 892in load_module
    exec
(compile(sourcesource_path'exec'), mod.__dict__)
  
File "libs.kodi in C:\Users\SiLVO\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 2in <module>
  
File "libs.kodi.kodi in C:\Users\SiLVO\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 29in __init__
  File 
"libs.kodi.kodi in C:\Users\SiLVO\AppData\Roaming\Sublime Text 3\Installed Packages\KodiDevKit.sublime-package"line 73in get_colors
  File 
"./python3.3/ntpath.py"line 111in join
  File 
"./python3.3/ntpath.py"line 162in splitdrive
TypeError
object of type 'NoneType' has no len()
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 2016-08-30 14:41:32next run at 2016-08-30 15:41:32 or after 

If you need anything else please let me know Smile

Thanks.


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - phil65 - 2016-08-31

Could you try this?
https://github.com/phil65/KodiDevKit/commit/14090dc43ebe98c2826fe756b004bef3094cad9b

Bit hard to debug since it´s packaged...

EDIT: oops. also this one:
https://github.com/phil65/KodiDevKit/commit/8a076846e07c3ba2426d9d0506d74434c91c23c8


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - mikeSiLVO - 2016-08-31

(2016-08-31, 03:35)phil65 Wrote: Could you try this?
https://github.com/phil65/KodiDevKit/commit/14090dc43ebe98c2826fe756b004bef3094cad9b

Bit hard to debug since it´s packaged...

EDIT: oops. also this one:
https://github.com/phil65/KodiDevKit/commit/8a076846e07c3ba2426d9d0506d74434c91c23c8
I added the GitHub repo so all I needed to do was restart Sublime Text and it updated to use the latest from Git. All seems to be working now Big Grin
LOG
PHP Code:
DPI scale1.5
startup
version3118 windows x64 channeldev
executable
: /C/Program Files/Sublime Text 3/sublime_text.exe
working dir
: /C/Program Files/Sublime Text 3
packages path
: /C/Users/SiLVO/AppData/Roaming/Sublime Text 3/Packages
state path
: /C/Users/SiLVO/AppData/Roaming/Sublime Text 3/Local
zip path
: /C/Program Files/Sublime Text 3/Packages
zip path
: /C/Users/SiLVO/AppData/Roaming/Sublime Text 3/Installed Packages
ignored_packages
: ["Vintage"]
pre session restore time0.117943
startup time
0.147943
first paint time
0.149943
first paint time
0.149943
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.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.02
-bz2
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 Google Spell Check
.google-spell-check
reloading plugin Indent XML
.indentxml
reloading plugin KodiDevKit
.__init__
reloading plugin KodiDevKit
.kodidevkit
reloading plugin KodiDevKit
.remote
reloading plugin KodiDevKit
.script
reloading plugin KodiDevKit
.utils
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control
.Package Control
plugins loaded
[KodiDevKit2016-08-30 21:39:26found color file C:/kodi/system\colors.xml including 149 colors
[KodiDevKit2016-08-30 21:39:26Parsing po file C:/kodi/addons\resource.language.en_gb\resources\strings.po
[KodiDevKit2016-08-30 21:39:26kodi pathC:/kodi/
Package ControlSkipping automatic upgradelast run at 2016-08-30 21:38:58next run at 2016-08-30 22:38:58 or after
[KodiDevKit2016-08-30 21:39:33project change detectedC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO
[KodiDevKit2016-08-30 21:39:33found 141 XMLs in C:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9
[KodiDevKit2016-08-30 21:39:33Parsing po file C:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\language\resource.language.en_gb\strings.po
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\Includes.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\defaults.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\Includes_CommonContent.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\Includes_CommonValues.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\Includes_Animations.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\Includes_Home.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\Includes_LiveBG.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\Includes_LiveTV.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\Includes_Widgets.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\Includes_Backgrounds.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_50_List.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_51_InfoWall.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_52_Landscape.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_53_ShowCase.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_54_ShowCase.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_55_TriPanel.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_56_Posters.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_57_Shift.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_58_BannerWall.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_59_Logo.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_499_Wall_Large.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_500_Icons.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_501_LowList.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_502_Episode.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_503_Wall.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_504_Gallery.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_505_Panel.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_506_RightList.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_507_BigList.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_508_SongList.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_509_MyFlix.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_591_BigFan.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_601_BannerPlex.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_602_FanartList.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\View_609_Fullscreen_Wall.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\variables.xml
[KodiDevKit2016-08-30 21:39:33found include fileC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO\16x9\Variables_Widgets.xml
[KodiDevKit2016-08-30 21:39:33: Include List: 669 nodes found in '16x9' folder.
[
KodiDevKit2016-08-30 21:39:33found color file defaults.xml including 18 colors
[KodiDevKit2016-08-30 21:39:33Kodi project detectedC:\Users\SiLVO\AppData\Roaming\Kodi\addons\Aeon-Nox-SiLVO 
If you need anything else, let me know Smile

Thank You phil


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - phil65 - 2016-08-31

(2016-07-31, 09:30)sualfred Wrote: Hey Phil,

I've noticed a little bug with the recognization of $EXP and $VAR.
It seems that if a $EXP and $VAR have the same name, it will always displays the $EXP in the popup.

I would call it a bad habit to give them the same name. Wink
It´s not something which really can get fixed without big big workarounds. I am using the SublimeText builtin symbols system and that one cannot differentiate between different types of declarations.


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - sualfred - 2016-08-31

Aye, thanks for the clarification. I put a code cleanup for rainy days on my list to get rid of the same naming Smile


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - KRONZO - 2016-10-01

I got everything else working but where to i put the autocompletions ?


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - Maniac - 2016-10-03

This should work in OS X right? Can't seem to find any json-rpc settings in Kodi 17, is enabled by default?


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - sualfred - 2017-01-11

Hey Phil,

the "auto_skin_check" option is broken. I cannot disable it anymore.


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - phil65 - 2017-01-12

Did you put it into user settings file and set it to False?


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - sualfred - 2017-01-12

Yup, all other user settings are working fine. It was working before, but since a while the setting is completely ignored.


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - phil65 - 2017-01-12

Thx, should be fixed with https://github.com/phil65/KodiDevKit/commit/d3e87a7c369ca071eb3b492686d37f0d589fa93b


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - ZexisStryfe - 2017-01-13

Hey Phil,

Something to note- I keep getting checks that say the diffuse attribute isn't allowed on texturefocus and texturenofocus, but it is and it does work. Is this something you can fix?


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - phil65 - 2017-01-14

Sure. Will be part of 2.6.1.


RE: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - ZexisStryfe - 2017-01-14

Thanks!