Skip to content

Commit

Permalink
fix issue 17 - koGoLanguage failed to load due to missing koIInterpol…
Browse files Browse the repository at this point in the history
…ationCallback
  • Loading branch information
Todd Whiteman committed Feb 10, 2015
1 parent 2a0ca97 commit d28a11c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions components/koGoLanguage.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,14 @@ def __init__(self):
globalPrefs.setPref(uuid, go_formatter_prefset)
globalPrefs.setBoolean("haveInstalledGoFormatter", True)

# Add extensible items.
interpolateSvc = components.classes["@activestate.com/koInterpolationService;1"].\
getService(components.interfaces.koIInterpolationService)
try:
interpolateSvc.addCode('go', self)
except Exception:
log.warn("Unable to add 'go' interpolation shortcut")
# Add extensible items (available in komodo 9 and higher).
if koIInterpolationService in components.interfaces:
interpolateSvc = components.classes["@activestate.com/koInterpolationService;1"].\
getService(components.interfaces.koIInterpolationService)
try:
interpolateSvc.addCode('go', self)
except Exception:
log.warn("Unable to add 'go' interpolation shortcut")

def interpolationCallback(self, code, fileName, lineNum, word, selection,
projectFile, prefs):
Expand Down

0 comments on commit d28a11c

Please sign in to comment.