Zeal icon indicating copy to clipboard operation
Zeal copied to clipboard

Hotkey F1 doesn't work for PHP

Open malaire opened this issue 3 years ago • 3 comments

When pressing F1 in PHP file nothing happens.

malaire avatar Oct 05 '20 13:10 malaire

I''m seeing this too. The error showing in the console is

Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 1088, in run_
    return self.run(edit)
  File "/home/rodney/.config/sublime-text-3/Packages/Zeal/zeal.py", line 128, in run
    self.handler = ZealNameInputHandler(matched_docsets, text, self.clear_handler)
TypeError: __init__() takes 3 positional arguments but 4 were give

I think the line

self.handler = ZealNameInputHandler(matched_docsets, text, self.clear_handler)

should be

self.handler = ZealNameInputHandler(matched_docsets, text, on_offer=self.clear_handler)

but when I make that change I get the error

Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 1082, in run_
    return self.run(edit, **args)
TypeError: run() got an unexpected keyword argument 'zeal_name'

which is where I had to stop looking into this.

yendor avatar Nov 06 '20 06:11 yendor

Thanks for the report. I released 2.0.2 with the fix from my fork at https://github.com/SublimeText/Zeal.

FichteFoll avatar Jan 11 '21 20:01 FichteFoll

v2.0.2 seems to be working again thanks, this issue is good to close

yendor avatar Jan 11 '21 20:01 yendor