gcollazo / BrowserRefresh-Sublime

This plugin will switch from ST2 and ST3 to Google Chrome, Google Chrome Canary, Safari, Firefox or Opera and reload the active tab
http://gcollazo.github.com/BrowserRefresh-Sublime
565 stars 62 forks source link

Doesn't Reload Chrome #28

Closed bautistaI closed 10 years ago

bautistaI commented 11 years ago

Just installed the plug-in via package control. After hitting command + shift = r nothing happens, the page (tab) doesn't reload. Didn't get any errors during installation.

ErwanGuillon commented 11 years ago

+1 with Chromium, I don't know if it changes anything

AMeijerNL commented 11 years ago

Same here.... Also after editing the "Key Bindings - User" to the following settings:

[ { "keys": ["command+shift+r"], "command": "browser_refresh", "args": { "auto_save": true, "delay": 0.5, "activate_browser": true, "browser_name" : "Google Chrome" } } ]

gcollazo commented 11 years ago

I'll be investigating all this on the weekend. Can you provide more information about OS and version or ST?

AMeijerNL commented 11 years ago

OS: OS X, Mountain Lion ST: Sublime Text 3 (latest beta) Chrome v 25.0

gcollazo commented 11 years ago

Sublime text 3 uses Python 3.3 which the plugin does not support. The challenge will be to support 2.6 and 3.3 with the same code. It should be easy but this is the first time I'm going to attempt that. No promises for now.

gcollazo commented 11 years ago

Just pushed an update that should fix the plugin on ST3. @AMeijerNL can you please confirm that it's working for you by downloading the latest version from this repo.

AMeijerNL commented 11 years ago

You just made my day! Works like a charm :+1: Thank you very much!!

ghost commented 11 years ago

Mac OSX 10.8.3 with Sublime Text 2 I got the following error : [1685:-1400014296:0320/203318:ERROR:process_singleton_mac.cc(106)] Unable to obtain profile lock. [Finished in 0.2s with exit code 20]

And unfortunately the webpage is not reloading on Chrome (Version 25.0.1364.172)

Settings [ { "keys": ["command+shift+r"], "command": "browser_refresh", "args": { "auto_save": true, "delay": 0.0, "activate_browser": true, "browser_name" : "Google Chrome" } } ]

gcollazo commented 11 years ago

@maxime-afom did you try with the latest code on master?

ghost commented 11 years ago

@gcollazo I just installed the plugin via Package Control + I download the files from the Master branch to replace in the package folder. I got the same error.

I must start Chrome with the argument --remote-debugging-port=9222 ????

gcollazo commented 11 years ago

@maxime-afom I would recommend that you uninstall the Package Control version and then install this version manually.

You don't need to do anything with chrome. It should just work. The plugin uses AppleScript on Mac OSX

ghost commented 11 years ago

@gcollazo Hey thank you it works :+1: But, I always need to hit "Shit+Cmd+R" each time that I modify my files. I already set the auto_save when I lost the focus. What would be perfect is at each modification the magic command Shit+Cmd+R will execute. In order to see modifications in real-time Can you help me with that idea?

gcollazo commented 10 years ago

@ghost There are a lot of tools that do the watch file, reload browser dance much better than this plugin will ever be able to. My favorite one is Brunch but Grunt is a very popular alternative.