jlegewie / SublimePeek

ST2 plugin to quickly access help files with a single key stroke (HTML, CSS, JavaScript, PHP, Python, Ruby, R, and Stata)
45 stars 6 forks source link

Not working with ST3 on OS X Mavericks #37

Open NikolausDemmel opened 10 years ago

NikolausDemmel commented 10 years ago

I just installed this on Mavericks through the package control with a pretty fresh installation of ST3. Nothing happens when I hit (super+shift+h) in a python file.

jlegewie commented 10 years ago

Hey, it works for me on Mavericks. Can you post the error message from the console? And maybe check whether the package is unpacked in the ST package folder (Sublime Text -> Preferences -> Browse Packages)?

NikolausDemmel commented 10 years ago

Error message:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 549, in run_
    return self.run(edit)
  File "/Users/demmeln/Library/Application Support/Sublime Text 3/Packages/SublimePeek/SublimePeek.py", line 68, in run
    keyword = self.create_help_file(keyword)
  File "/Users/demmeln/Library/Application Support/Sublime Text 3/Packages/SublimePeek/SublimePeek.py", line 248, in create_help_file
    args = calls[self.lang] + [keyword]
TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'
jlegewie commented 10 years ago

Should be fixed now. Can you try? The settings files was not loading correctly during startup...

NikolausDemmel commented 10 years ago

Hm, now I get this:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 549, in run_
    return self.run(edit)
  File "/Users/demmeln/Library/Application Support/Sublime Text 3/Packages/SublimePeek/SublimePeek.py", line 69, in run
    keyword = self.create_help_file(keyword)
  File "/Users/demmeln/Library/Application Support/Sublime Text 3/Packages/SublimePeek/SublimePeek.py", line 240, in create_help_file
    html = doc.html
  File "/Users/demmeln/Library/Application Support/Sublime Text 3/Packages/SublimePeek/SublimePeek.py", line 708, in <lambda>
    (lambda x, fmt=fmt: cls._output(x, fmt)),
  File "/Users/demmeln/Library/Application Support/Sublime Text 3/Packages/SublimePeek/SublimePeek.py", line 724, in _output
    return p.communicate(self._content)[0]
  File "X/subprocess.py", line 906, in communicate
  File "X/subprocess.py", line 1513, in _communicate
  File "X/subprocess.py", line 1608, in _communicate_with_poll
TypeError: 'str' does not support the buffer interface