gcollazo/BrowserRefresh-Sublime

Browser refresh not working: "Cannot open Browser Refresh.sublime-package"

TrevorBurnham opened this issue · 5 comments

I'm running Sublime Text 3 build 3059 on OS X 10.9.1, and installed Browser Refresh 0.3.0 via Package Control. At some point within the last week, my trusty Browser Refresh keyboard shortcut stopped refreshing my browser. If I have auto_save enabled, the current file will save, but the actual part where the browser refreshes does not occur, regardless of browser_name. Also, I get this error in the ST console:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 543, in run_
    return self.run(edit, **args)
  File "BrowserRefresh in /Users/trevor/Library/Application Support/Sublime Text 3/Installed Packages/Browser Refresh.sublime-package", line 34, in run
zipimport.ZipImportError: bad local file header in /Users/trevor/Library/Application Support/Sublime Text 3/Installed Packages/Browser Refresh.sublime-package

I've tries reinstalling the package with Package Control. I've also tried manually installing it by cloning the repo, in which case the traceback changes slightly:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 543, in run_
    return self.run(edit, **args)
  File "/Users/trevor/Library/Application Support/Sublime Text 3/Packages/Browser Refresh/BrowserRefresh.py", line 34, in run
    from mac import MacBrowserRefresh
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
OSError: zipimport: can not open file /Users/trevor/Library/Application Support/Sublime Text 3/Installed Packages/Browser Refresh.sublime-package

Checking out an older Browser Refresh commit does not help. Something else must have changed, but I can't think of anything in my setup that could have affected it. Any ideas?

Hi,
I'm using Sublime text 3 and I've installed Browser refresh V1.3.1. After typing ctrl+ shift +r, an error is showing.

Traceback (most recent call last):
File "C:\Documents and Settings\jamacmang\Desktop\sub\sublime_plugin.py", line 543, in run_
return self.run(edit, **args)
File "BrowserRefresh in C:\Documents and Settings\jamacmang\Desktop\sub\Data\Installed Packages\Browser Refresh.sublime-package", line 81, in run
File "C:\Documents and Settings\jamacmang\Desktop\sub\Data\Installed Packages\Browser Refresh.sublime-package\win__init__.py", line 29, in safari
File "C:\Documents and Settings\jamacmang\Desktop\sub\Data\Installed Packages\Browser Refresh.sublime-package\win\pywinauto\application.py", line 927, in connect_
File "C:\Documents and Settings\jamacmang\Desktop\sub\Data\Installed Packages\Browser Refresh.sublime-package\win\pywinauto\application.py", line 1192, in process_from_module
TypeError: 'float' object cannot be interpreted as an integer

I also am getting errors in Sublime 3, with browser set to all:

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

Same error I had also. Please make a solution.

In addition the output in my sublime text 2 console on a mac:

Traceback (most recent call last):
  File "./sublime_plugin.py", line 356, in run_
  File "./BrowserRefresh.py", line 26, in run
    print('Browser Refresh: "{}" {}'.format(_os, browsers))
ValueError: zero length field name in format

Have same problem as Kimberly using ST 2. Any solutions? I am total pc newb btw :P