Sublime Forum

Error loading syntax file with Sublime Text 3 only

#1

Hello

I am getting this error when starting Sublime Text 3 with this plugin (https://github.com/andriyko/sublime-robot-framework-assistant) installed via Package Control

Error loading syntax file “Sublime Text 3/Installed Packages/robot.tmLanguage”: Unable to open Sublime Text 3/Installed Packages/robot.tmLanguage
I understand what error says, but I don’t understand what is the correct path (where should I put that file?).

It works fine in Sublime Text 2.

I set path to tmLanguage file as:

if six.PY2: robot_tm_language_path = os.path.join(package_dir, "robot.tmLanguage") else: # for Sublime Text 3 robot_tm_language_path = os.path.join(os.path.basename(os.path.dirname(package_dir)), os.path.basename(package_dir), "robot.tmLanguage")
With Sublime Tex 2 I have my package (together with source code) structured in the same way as it is present in github repo.
~/Library/Application Support/Sublime Text 2/Packages/Robot Framework Assistant/
and file is located here
~/Library/Application Support/Sublime Text 2/Packages/Robot Framework Assistant/robot.tmLanguage

But with Sublime Text 3 my plugin is in some kind of archive (package) as
~/Library/Application Support/Sublime Text 3/Installed Packages/Robot Framework Assistant.sublime-package

So, what robot_tm_language_path should be? I guess something like:

robot_tm_language_path = os.path.join('Packages', 'Robot Framework Assistant', "robot.tmLanguage")
Also, once I update my plugin (commit fix), how can I deliver it(notify etc) package control channel about my changes so they get my updated plugin?
Thanks in advance!

0 Likes