Permalink
Browse files

Fixed a bug where autocomplete was broken altogether if certain excep…

…tions were raised while loading ctags. For instance, if you just run phpsh without creating a ctags file, autocomplete will not work. This shouldn't be the case as autocomplete doesn't require ctags.
  • Loading branch information...
1 parent fc24ed5 commit 3cbc5f3f0867111ed802f1a590a806317d5b66c2 @whatthejeff whatthejeff committed Sep 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/__init__.py
View
@@ -295,6 +295,7 @@ class LoadCtags(Thread):
def __init__(self, phpsh_state):
Thread.__init__(self)
self.phpsh_state = phpsh_state
+ self.phpsh_state.function_signatures = {}
def run(self):
try:
tags_file_path = None
@@ -311,7 +312,6 @@ def run(self):
self.phpsh_state.function_signatures = \
ctags.CtagsFunctionSignatures().function_signatures
except Exception, e:
- self.phpsh_state.function_signatures = {}
print self.phpsh_state.clr_err + \
"Problem loading function signatures" + \
self.phpsh_state.clr_default

0 comments on commit 3cbc5f3

Please sign in to comment.