Update packages.json for Sublime text 3 #53

Closed
MagmaRules opened this Issue Aug 19, 2013 · 9 comments

Comments

Projects
None yet
8 participants

Hi,

I was trying to install WebInspector in Sublime Text 3 and wasn't finding it in the the list. After some help i managed to install it by using "Adding Repository" and adding the git url to the ST3 branch. Seems to be working in ST3.

I was told that if you update the "packages.json" and upgrade to schema_version to version 2 the package will show up in the "Install Package" list.

Hi everybody.

I was having the same issue. I solve this just using the "Package Control: Upgrade Package", from the Package Control itself, and the listing was refreshed in some way. After that, I was able to see the "WebInspector 3" via "Package Control: Install Package".

I'm using ST3 in windows.

I can't get it working:
I use Package Control: Upgrade Package and then the plugin appear on the list, I installed it, but when I start Sublime Text 3 again the console show me this error:

reloading plugin SublimeWebInspector.swi
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 71, in reload_plugin
    m = imp.reload(m)
  File "X/imp.py", line 252, in reload
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 671, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "swi in C:\Users\MontoGeek\AppData\Roaming\Sublime Text 3\Installed Packages\SublimeWebInspector.sublime-package", line 71
    print 'SWI: Connecting to ' + url
                              ^
SyntaxError: invalid syntax
reloading plugin SublimeWebInspector.websocket
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 71, in reload_plugin
    m = imp.reload(m)
  File "X/imp.py", line 252, in reload
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 671, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "websocket in C:\Users\MontoGeek\AppData\Roaming\Sublime Text 3\Installed Packages\SublimeWebInspector.sublime-package", line 717
    except Exception, e:
                    ^
SyntaxError: invalid syntax

What can I do?, my instalation is Sublime Text 3 on Windows 7 x64.

Alright
I have cloned the repository in the Packaged folder git clone git://github.com/sokolovstas/SublimeWebInspector.git Web\ Inspector and then checkout the branch git checkout ST3 restart Sublime Text 3 and worked, but now I can't figured out how to change the Google Chrome execution path. I get this error [WinError 2] El sistema no puede encontrar el archivo especificado [cmd: ['C:\\Program Files\\Google\\Chrome\\chrome.exe', '--remote-debugging-port=9222', '--profile-directory=Default', '']]

osadan commented Nov 3, 2013

Hey @montogeek
hope you solved the problem ;-)
but for further readers You named your local folder "Web Inspector" and "Web Inspector 3" is expected

I did it :)

rodnnr commented Nov 5, 2013

Hi I had the same issue. Finally I managed to clone the repository. I am using Windows 8.1 64bit.

However, when i open my javascript and click on the ctrl+shift+r, nothing happens.

How do I debug?
How do I start the script in chrome remote debugging port 9222?
Please help

glnds commented Mar 5, 2014

For Sublime 3: If you hit ctrl+shift+r and noting happens you should try to checkout then ST3 branch instead of the master.
Try this:
git clone git://github.com/sokolovstas/SublimeWebInspector.git -b ST3 Web\ Inspector

For me it solved the problem

It seems Package Manager lists two packages, "Web Inspector" and "Web Inspector 3" on the web interface but both are tagged with "ST2"...it seems it does not pick up the right branch for the ST3 version.
Maybe switching to the central repository method sending a PR to https://github.com/wbond/package_control_channel would be the solution. There you can specify different branches for each version of ST supported.

Owner

sokolovstas commented Aug 20, 2014

fixed packages.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment