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 61 forks source link

FIle is auto saved but browser not refreshing. #59

Open Elancore opened 10 years ago

Elancore commented 10 years ago

I press ctrl+shift+r the file get saved but browser doesn't refresh.

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

Windows 7 64-bit / 2 Monitors / Sublime 2 / Chrome Browser

lindsve commented 10 years ago

Same. This is the trace from the console when trying to refresh the browser:

Traceback (most recent call last): File ".\sublimeplugin.py", line 356, in run File ".\BrowserRefresh.py", line 38, in run from win import WinBrowserRefresh File "C:\Users\username\AppData\Roaming\Sublime Text 2\Packages\Browser Refresh\wininit.py", line 1, in from .pywinauto.application import Application, ProcessNotFoundError File "C:\Users\username\AppData\Roaming\Sublime Text 2\Packages\Browser Refresh\win\pywinautoinit.py", line 28, in from . import findwindows File "C:\Users\username\AppData\Roaming\Sublime Text 2\Packages\Browser Refresh\win\pywinauto\findwindows.py", line 31, in from . import win32functions ImportError: cannot import name win32functions

alvarobyrne commented 9 years ago

Hi. Short: wrapp the object in square brackets. Long: Talking about sublime's version 3 here. Most likely this is not the case (mostly if you have already more personalized key bindings working) but just in case (allow me the redundancy)... Had the same behaviour as Elancore and looking into sublime's console (as lindsave did) when pressing the keys combination (ctrl+shift+r) it traced: top level value must be an array. So I went and wrapped the object with square brackets and it started working. As many pepole say in this cases: hope it's usefull to someone ou there.

masscrx commented 9 years ago

I had the same problem with ST2 but with ST3 plugin works correctly. I was trying to Install Python 2.6 and pywin32 then copy to some files to plugin directory but without any result

garfieldnate commented 9 years ago

Same problem here: cannot import name win32functions.

rockpham commented 9 years ago

Same issue with OP

Windows 7 64-bit / Sublime 2 / Chrome Browser

efkan commented 9 years ago

Same issue.

Windows 8.1 64-bit / Sublime 3 / Chrome Browser

nestordedios commented 9 years ago

Hi, did someone find a solution for this issue? I have the same.

Windows 7 32 bit/ On a Virtual Machine/ 1 Monitor/ Sublime Text 2/ Firefox 35.0.1

gcollazo commented 9 years ago

Sorry about this. I have no access to a Win machine to debug in, also I have no need for the package on WIN. I would love to have some help on this. Any volunteers?