Open ghost opened 3 years ago
Autocompletion does not work properly for Tcl.
Open and edit any Tcl source file.
Expected to get autocompletion support for Tcl code.
Autocompletion works only on the very first token of the code. When editing other part of the code, the autocompletion list never shows up.
Works:
Not work:
ERROR:xpcom:Unhandled exception calling 'int8 * getLanguageService(in nsIID &, out retval nsISomething);' Traceback (most recent call last): File "/home/cismonx/Komodo-IDE-12/lib/mozilla/python/xpcom/server/policy.py", line 303, in _CallMethod_ return 0, func(*params) File "/home/cismonx/Komodo-IDE-12/lib/mozilla/python/komodo/koLanguageServiceBase.py", line 1230, in getLanguageService return getattr(self, self._svcdict[iid])() File "/home/cismonx/Komodo-IDE-12/lib/mozilla/components/koTclLanguage.py", line 150, in get_completer self._completer = components.classes["@activestate.com/koTclCompletionLanguageService;1"].getService(components.interfaces.koICompletionLanguageService) File "/home/cismonx/Komodo-IDE-12/lib/mozilla/python/xpcom/components.py", line 195, in getService return serviceManager.getServiceByContractID(self.contractid, _get_good_iid(iid)) File "<XPCOMObject method 'getServiceByContractID'>", line 3, in getServiceByContractID Exception: 2147746132 (NS_ERROR_FACTORY_NOT_REGISTERED) [2020-09-26 23:49:27,888] [ERROR] view.editor: -- EXCEPTION START -- [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koILanguage.getLanguageService]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: viewbufferbase :: get_commandCompletionSvc :: line 379" data: no] + toString (function) 3 lines + message (string) 'Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koILanguage.getLanguageService]' + result (number) 2147500037 + name (string) 'NS_ERROR_FAILURE' + filename (string) 'viewbufferbase' + lineNumber (number) 379 + columnNumber (number) 0 + inner (object) null | + data (object) null | + stack (string) 'get_commandCompletionSvc@viewbufferbase:379:45 _onModifiedHandler@viewbufferbase:1368:0 onModified@v'...697 chars + location (object) JS frame :: viewbufferbase :: get_commandCompletionSvc :: line 379 | + QueryInterface (function) 3 lines | + language (number) 2 | + languageName (string) 'JavaScript' | + filename (string) 'viewbufferbase' | + name (string) 'get_commandCompletionSvc' | + lineNumber (number) 379 | + columnNumber (number) 45 | + sourceLine (string) '' | + caller (object) JS frame :: viewbufferbase :: _onModifiedHandler :: line 1368 | + formattedStack (string) 'get_commandCompletionSvc@viewbufferbase:379:45 _onModifiedHandler@viewbufferbase:1368:0 onModified@v'...697 chars | + stack get_commandCompletionSvc@viewbufferbase:379:45 _onModifiedHandler@viewbufferbase:1368:0 onModified@viewbufferbase:1206:24 meth_deleteBack@file:///home/cismonx/Komodo-IDE-12/lib/mozilla/components/scimoz_wrapper.js:1494:14 ForwardingController_doCommand@chrome://xtk/content/controller.js:203:4 command_doCommand@chrome://komodo/content/library/commands.js:239:0 @chrome://komodo/content/keybindings/keybindings.js line 2603 > eval:1:0 this.Manager.prototype.evalCommand@chrome://komodo/content/keybindings/keybindings.js:2603:22 this.Manager.prototype.keypressHandler@chrome://komodo/content/keybindings/keybindings.js:2774:16 gKeyHandler@chrome://komodo/content/keybindings/keybindings.js:2658:4 -- EXCEPTION END --
Short Summary
Autocompletion does not work properly for Tcl.
Steps to Reproduce
Open and edit any Tcl source file.
Expected results
Expected to get autocompletion support for Tcl code.
Actual results
Autocompletion works only on the very first token of the code. When editing other part of the code, the autocompletion list never shows up.
Platform Information
Additional Information
Screenshots:
Works:![1](https://user-images.githubusercontent.com/19173506/94345400-096a1000-0058-11eb-9626-8e504e3709df.png)
Not work:![2](https://user-images.githubusercontent.com/19173506/94345398-0838e300-0058-11eb-8fa4-64dc4748ee41.png)
Not work:![3](https://user-images.githubusercontent.com/19173506/94345393-04a55c00-0058-11eb-8d5c-4eaf137fde7b.png)
Error log: