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

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

Open TrevorBurnham opened 10 years ago

TrevorBurnham commented 10 years ago

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?

sbpipb commented 10 years ago

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\sublimeplugin.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\wininit.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

kimberleyhansen commented 10 years ago

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

ImportError: cannot import name win32functions 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\Kimberley\AppData\Roaming\Sublime Text 2\Packages\Browser Refresh\wininit.py", line 1, in from .pywinauto.application import Application, ProcessNotFoundError File "C:\Users\Kimberley\AppData\Roaming\Sublime Text 2\Packages\Browser Refresh\win\pywinautoinit.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

suarezph commented 9 years ago

Same error I had also. Please make a solution.

kayspiegel commented 9 years ago

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
robert-sy commented 8 years ago

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