HTML code intel suggestions not working


#1

I’m sorry to disturb you again but seems that hints for languages as HTML doesn’t work in K11
I mean this function (screenshot taken from K10)


Is a my settings? This problem affects also other languages as PHP and JS.
Thanks in advance.


Old Komodo IDE 8.5 on Mojave
#2

@frasme, it looks like html code intel got borked in the nightlies. I’ve filed a big here:

  • Carey

#3

In Komodo Edit 12.0.0, build 18447, code intel works perfectly. I’m working with this waiting fixing for IDE.


#4

@frasme, I started looking into the html code intel issue this morning but am not able to reproduce the issue any more. I had several other people test and they’re not able to reproduce the issue either.

Could you try Help > Troubleshooting > Reset Codeintel?

  • Carey

#5

No, reset codeintel not works.
I’ve also tried to reset cache and restart in safe mode, but nothing to do.
My error log looks like:
[2019-12-18 22:44:38,187] [INFO] Startup: Welcome to Komodo IDE 11.1.2 build 91158 (platform macosx, running on Darwin 18.7.0 version Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64)
[2019-12-18 22:44:38,187] [INFO] Startup: /Applications/Komodo IDE 11.app/Contents/MacOS/komodo built on Mon Nov 4 10:51:44 2019
[2019-12-18 22:44:38,187] [INFO] koInitService: installing Komodo samples to ‘/Users/smelzo/Library/Application Support/KomodoIDE/11.1/samples’
[2019-12-18 22:44:38,352] [WARNING] koInitService: Unable to determine the current locale settings, defaulting to mac-roman
[2019-12-18 22:44:38,819] [WARNING] koLess: Clearing local and file cache
[2019-12-18 22:44:38,869] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2019-12-18 22:44:39,653] [INFO] Platform Auth: Using API URL: https://platform.activestate.com//api/v1
[2019-12-18 22:44:39,653] [WARNING] root: [object Object].logging has been converted to a CommonJS module; use require(“ko/logging”) instead (since Komodo 9.0.0a1).
@chrome://komodo/content/komodo.js:15:1

[2019-12-18 22:44:40,181] [WARNING] keybindings: [Shift+Down] was used for ‘cmd_selectLineNext’, overriding to use ‘cmd_selectLineNext’
[2019-12-18 22:44:40,493] [WARNING] ko.widgets: Can’t load ‘ui.tabs.sidepanes.state’ from ‘prefpath’:
[2019-12-18 22:44:40,620] [DEBUG] ko.launch: versioncheck on http://docs.komodoide.com/changelog/11
[2019-12-18 22:44:40,697] [INFO] koInitService: Adding pre startup service for ‘koFileStatusService’: ‘@activestate.com/koFileStatusService;1’
[2019-12-18 22:44:40,793] [INFO] codeintel/process: Starting CodeIntel
[2019-12-18 22:44:40,795] [DEBUG] codeintel/process: PYTHONPATH: /Applications/Komodo IDE 11.app/Contents/MacOS/…/lib/python2.7;/Applications/Komodo IDE 11.app/Contents/SharedSupport/dbgp/pythonlib;/Applications/Komodo IDE 11.app/Contents/Resources/extensions/codeintel@activestate.com/content/…/pylib/codeintel/lib;/Applications/Komodo IDE 11.app/Contents/Resources/extensions/codeintel@activestate.com/content/…/pylib/codeintel/env/Lib/site-packages
[2019-12-18 22:44:40,885] [INFO] komodospellchecker: Spell checker loaded.
[2019-12-18 22:44:40,885] [INFO] komodospellchecker: Using dictionary en-US
[2019-12-18 22:44:40,924] [INFO] elastic_tabstops: Elastic tabstops loaded.
[2019-12-18 22:44:41,051] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in file:///Applications/Komodo%20IDE%2011.app/Contents/Resources/components/koamAddonManager.js:138
[2019-12-18 22:44:41,249] [ERROR] console-logger: Exception while registering Focus Mode (0) in resource://gre/modules/addons/XPIProvider.jsm -> file:///Applications/Komodo%20IDE%2011.app/Contents/Resources/extensions/focusmode@activestate.com/bootstrap.js:11
Traceback (most recent call last):
File “resource://gre/modules/addons/XPIProvider.jsm -> file:///Applications/Komodo%20IDE%2011.app/Contents/Resources/extensions/focusmode@activestate.com/bootstrap.js”, line 11, in

[2019-12-18 22:44:41,249] [ERROR] console-logger: [object Object] (0) in resource://gre/modules/addons/XPIProvider.jsm -> file:///Applications/Komodo%20IDE%2011.app/Contents/Resources/extensions/focusmode@activestate.com/bootstrap.js:12
Traceback (most recent call last):
File “resource://gre/modules/addons/XPIProvider.jsm -> file:///Applications/Komodo%20IDE%2011.app/Contents/Resources/extensions/focusmode@activestate.com/bootstrap.js”, line 12, in

[2019-12-18 22:44:41,621] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in file:///Applications/Komodo%20IDE%2011.app/Contents/Resources/components/koLessProtocolHandler.js:154
[2019-12-18 22:44:41,621] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in file:///Applications/Komodo%20IDE%2011.app/Contents/Resources/components/koLessProtocolHandler.js:154
[2019-12-18 22:44:41,622] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in file:///Applications/Komodo%20IDE%2011.app/Contents/Resources/components/koLessProtocolHandler.js:154
[2019-12-18 22:44:41,624] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in file:///Applications/Komodo%20IDE%2011.app/Contents/Resources/components/koLessProtocolHandler.js:154
[2019-12-18 22:44:41,624] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in file:///Applications/Komodo%20IDE%2011.app/Contents/Resources/components/koLessProtocolHandler.js:154
[2019-12-18 22:44:41,624] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in file:///Applications/Komodo%20IDE%2011.app/Contents/Resources/components/koLessProtocolHandler.js:154
[2019-12-18 22:44:43,115] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2019-12-18 22:44:43,115] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2019-12-18 22:44:43,115] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2019-12-18 22:44:43,571] [INFO] koInitService: Adding pre startup service for ‘KoMemoryReporter’: ‘@activestate.com/koMemoryReporter;1’
[2019-12-18 22:44:43,573] [INFO] koInitService: Adding pre startup service for ‘koCommandmentService’: ‘@activestate.com/koCommandmentService;1’
ERROR:xpcom:Creation of class ‘<class ‘component:koCommandmentService.KoCommandmentService’>’ failed!
Exception details follow

ERROR:xpcom:Unhandled exception calling ‘int8 * createInstance(in nsISomething, in nsIID &, out retval InterfaceIs *);’
Traceback (most recent call last):
File “/Applications/Komodo IDE 11.app/Contents/Resources/python/xpcom/server/policy.py”, line 303, in CallMethod
return 0, func(*params)
File “/Applications/Komodo IDE 11.app/Contents/Resources/python/xpcom/server/factory.py”, line 57, in createInstance
return self.klass()
File “/Applications/Komodo IDE 11.app/Contents/Resources/components/koCommandmentService.py”, line 444, in init
self._reader = _CommandmentsReader(koDirs.userDataDir, ver)
File “/Applications/Komodo IDE 11.app/Contents/Resources/components/koCommandmentService.py”, line 353, in init
self._pipe = os.open(self._commandmentsFileName, os.O_RDWR)
OSError: [Errno 2] No such file or directory: ‘/Users/smelzo/Library/Application Support/KomodoIDE/11.1/commandments.fifo’
[2019-12-18 22:44:43,576] [ERROR] koInitService: Unable to start ‘koCommandmentService’ service: ‘@activestate.com/koCommandmentService;1’
Traceback (most recent call last):
File “/Applications/Komodo IDE 11.app/Contents/Resources/components/koInitService.py”, line 371, in loadStartupCategories
getService(components.interfaces.nsIObserver)
File “/Applications/Komodo IDE 11.app/Contents/Resources/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: 2147500037 (NS_ERROR_FAILURE)
[2019-12-18 22:44:43,579] [INFO] koInitService: Adding pre startup service for ‘koDBGPManager’: ‘@activestate.com/koDBGPManager;1’
[2019-12-18 22:44:43,664] [DEBUG] ko.launch: Response: http://docs.komodoide.com/omnigollum/auth/github?origin=%2Fcreate%2Fchangelog%2F11 (404)
[2019-12-18 22:44:43,664] [DEBUG] ko.launch: versioncheck on http://docs.komodoide.com/changelog/111
[2019-12-18 22:44:44,567] [DEBUG] ko.launch: Response: http://komodo.activestate.com/static/popup/11/index.html (200)
[2019-12-18 22:44:45,539] [WARNING] console-logger: Expected end of value but found ‘dotted’. Error in parsing value for ‘text-decoration’. Declaration dropped. (1) in http://komodo.activestate.com/static/popup/11/css/normalize.css:80
[2019-12-18 22:44:45,540] [WARNING] console-logger: Unknown pseudo-class or pseudo-element ‘-webkit-inner-spin-button’. Ruleset ignored due to bad selector. (1) in http://komodo.activestate.com/static/popup/11/css/normalize.css:272
[2019-12-18 22:44:45,540] [WARNING] console-logger: Unknown pseudo-class or pseudo-element ‘-webkit-search-decoration’. Ruleset ignored due to bad selector. (1) in http://komodo.activestate.com/static/popup/11/css/normalize.css:291
[2019-12-18 22:44:45,541] [WARNING] console-logger: Unknown pseudo-class or pseudo-element ‘-webkit-file-upload-button’. Ruleset ignored due to bad selector. (1) in http://komodo.activestate.com/static/popup/11/css/normalize.css:300
[2019-12-18 22:44:45,724] [WARNING] console-logger: Unknown pseudo-class or pseudo-element ‘selection’. Ruleset ignored due to bad selector. (1) in http://komodo.activestate.com/static/popup/11/css/main.css:34
[2019-12-18 22:44:45,725] [WARNING] console-logger: Expected media feature name but found ‘-webkit-min-device-pixel-ratio’. (1) in http://komodo.activestate.com/static/popup/11/css/main.css:207
[2019-12-18 22:44:46,037] [DEBUG] codeintel/process: stdout:
port:59611

pid:1118

[2019-12-18 22:44:46,037] [INFO] codeintel/process: CodeIntel started on port 59611
[2019-12-18 22:44:46,038] [DEBUG] codeintel/process: Calling callbacks for: started, number: 1
[2019-12-18 22:44:55,881] [DEBUG] console: error: {}
[2019-12-18 22:45:13,063] [ERROR] console-logger: no element found (0) in https://platform.activestate.com//api/v1/status/komodo:1
Traceback (most recent call last):
File “https://platform.activestate.com//api/v1/status/komodo”, line 1, in

[2019-12-18 22:45:13,415] [ERROR] console-logger: TypeError: n is undefined (2) in chrome://komodo/content/contrib/commonjs/underscore.js:5
Traceback (most recent call last):
File “chrome://komodo/content/contrib/commonjs/underscore.js”, line 5, in

[2019-12-18 22:46:33,345] [WARNING] views: Inconsistent view count in view_closed event
[2019-12-18 22:46:33,451] [WARNING] views: Inconsistent view count in view_opened event
[2019-12-18 22:48:08,837] [WARNING] views: Inconsistent view count in view_closed event


#6

@frasme, I broke this into a new thread. Could you try Komodo 12 preview?
https://community.komodoide.com/t/komodo-12-preview-now-available/4830/3

It’s working for me without issue.

If you don’t want to try 12, try, in the menu, Restart in Safe-Mode in 11.

  • Carey

#7

I’ve tried K12 just now. HTML suggestions works on HTML documents (or PHP files), but not in Smarty Templates. I work very much with Smarty Templates. May be a problem of smarty plugin?


#8

Oh I honestly don’t know off the top of my head if that’s supported. It worked in Komodo 11? I’m not familiar with a Smart plugin and I don’t see one in the Packages. Which plugin are you referring to?


#9

@frasme, please provide some sample code that I can try, along with reproduction steps with expect and actual behavior noted. That’ll help me know what you’re experiencing.


#10

You can see here


#11

If can help I’ve noticed that codeintel is different from KEdit12 and KIde12 in user’s application support folder. Seems that KIde use db and KEdit file system.


#12

Morning @frasme,

Thanks for the additional info but that’s not what I asked for:

  • Please provide sample code (not a screenshot) that reproduces the issues
  • Confirm that these completions, in *.tpl files, worked in 11
  • Clarify what addon/plugin you mentioned. I’m not aware of this addon.

Re code intel IDE and Edit: Yep, they are different. We re-implemented it for Komodo IDE 11, but stuck with the original implementation in Edit. I’m not sure why that is relevant though, unless I missed you mentioning that this works in Edit. Is that the case?


#13

Yes, works in Edit but not in IDE.
I don’t understand what sample code I should provide. Completions doesn’t works for me in every *.tpl files, not only in a particular case. In Edit works and in IDE doesn’t.
None addon/plugin, sorry, I mean language file or similar things related with completions.


#14

Hi, I would try to revamp my question.
I’ve installed a fresh copy of Komodo IDE 12, but nothing is changed.
I’m talking about HTML completion in .TPL files (Smarty Template). Basically they are HTML files, so i would expect for completion working as in .HTML ones, but is not so.
In Komodo Edit 12 all works fine.


#15

My system is a Mac with OSX Mojave.


#16

@frasme,

I filed a ticket:

  • Carey