'module' object has no attribute 'ok_cancel_dialog'
Closed this issue · 4 comments
After installation via package control, I'm receiving the following error when trying to bring up Sublime Peek after highlighting CSS
Traceback (most recent call last):
File "./sublime_plugin.py", line 350, in run_
File "./SublimePeek.py", line 37, in run
File "./SublimePeek.py", line 155, in get_help_files
AttributeError: 'module' object has no attribute 'ok_cancel_dialog'
What version of ST2 are you using on which system?
Can you try running these
sublime.ok_cancel_dialog("TEST")
str(sublime)
lines in the ST2 console and tell me what happens?
On Apr 20, 2012, at 2:04 PM, jonheller wrote:
After installation via package control, I'm receiving the following error when trying to bring up Sublime Peek after highlighting CSS
Traceback (most recent call last):
File "./sublime_plugin.py", line 350, in run_
File "./SublimePeek.py", line 37, in run
File "./SublimePeek.py", line 155, in get_help_files
AttributeError: 'module' object has no attribute 'ok_cancel_dialog'
Reply to this email directly or view it on GitHub:
#10
I'm using Build 2181. Here are the results of the commands. Thanks for the help!
sublime.ok_cancel_dialog("TEST")
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'ok_cancel_dialog'
str(sublime)
"<module 'sublime' (built-in)>"
I am kind of surprised by this because sublime.ok_cancel_dialog("TEST")
is a simple call to the ST2 api. I am not really an ST2 expert so maybe I misunderstand something. Can you post this on the Sublime Text forum with the code and output and report back when you get a reply?
Looks like it was a simple explanation! Per the forum:
"You're on a stable 2181 build.
sublime.ok_cancel_dialog was added in nightly 2187 and then dev 2190. It's still not present in stable channel."
Installed the dev build and it works perfectly. Thank you.