KomodoEdit
KomodoEdit copied to clipboard
No autocomplete for console object in JS files
I don't know why there isn't an auto-complete for console.*
object. Also I cannot find console
object in window
object.
Works fine for me? Open a blank javascript file and type console.
.
Are you sure you choose JavaScript? (not NodeJS)
Yep.
[2015-04-06 19:33:25,034] [ERROR] koCodeIntel: INFO: eval 'console' at Text-1.txt#1 <Trigger 'javascript-complete-object-members' at 8>
INFO: start scope is (<blob 'Text-1.txt'>, [])
INFO: find 'console' starting at (<blob 'Text-1.txt'>, [])
INFO: is 'console' accessible on (<blob 'Text-1.txt'>, [])? no
INFO: is 'console' accessible on (<blob '*'>, [])? no
INFO: is 'console' accessible on (<blob '*'>, ['Window'])? no
INFO: lookup 'console' in <JavaScript curdirlib>
INFO: lookup 'console' in <JavaScript cataloglib: HTML5, Komodo, XPCOM, jQuery>
INFO: lookup 'console' in <javascript stdlib>
ERROR: evaluating 'console' at Text-1.txt#1: could not resolve first part of 'console'
Are you in a JavaScript file or a html5 file?
JavaScript.
Try deleting your codeintel database from your profile folder?
ohh I got it. I've enabled Prototype
API Catalog and now I can get tooltips for console object
I don't have Prototype enabled. I have HTML5 enabled though.
What API catalogs enabled for you? I cannot get tooltips for console object without Prototype enabled.
[2015-04-06 19:40:53,248] [ERROR] koCodeIntel: INFO: eval 'console' at Text-1.txt#1 <Trigger 'javascript-complete-object-members' at 8>
INFO: start scope is (<blob 'Text-1.txt'>, [])
INFO: find 'console' starting at (<blob 'Text-1.txt'>, [])
INFO: is 'console' accessible on (<blob 'Text-1.txt'>, [])? no
INFO: is 'console' accessible on (<blob '*'>, [])? no
INFO: is 'console' accessible on (<blob '*'>, ['Window'])? no
INFO: lookup 'console' in <JavaScript curdirlib>
INFO: lookup 'console' in <JavaScript cataloglib: HTML5, Komodo, XPCOM, jQuery>
INFO: lookup 'console' in <javascript stdlib>
ERROR: evaluating 'console' at Text-1.txt#1: could not resolve first part of 'console'
Also I cleaned my codeIntel - didn't help.
https://db.tt/NrJgOnmD
I have HTML5 enabled though.
I to. So now I have no idea what wrong with my settings. I enabled same API catalogs as on your screen - no luck
Did you try deleting your codeintel DB?
Yes.
I don't get the console object with or without html5 or prototype catalogs enabled.
Ok, we'll still need to figure out steps to reproduce but definitely something odd going on here.
14:19 | Kronuz | hello there 14:22 | Kronuz | hey, who knows any about the console.js in the node.js lib_srcs for 4.4 and 5.9 not having a Console instance there exported? only the Console class? 14:22 | Kronuz | for my autocomplete, "console.<|>" isn't completing properly because the missing Console instance there 15:45 | Defman | Kronuz, why do you need these versions anyway? 15:46 | Defman | I'd go with 6 (because it's LTS) and 8 because it's getting updates 15:47 | Kronuz | Defman, Komodo Editor only has 4.4 and 5.9 lib sources
This might be the problem.
This shouldn't be in this ticket, please open a new bug if there's something actionable on our end.
I get the autocompletions but they are wrong. I'll open a new ticket. EDIT: New ticket: https://github.com/Komodo/KomodoEdit/issues/2755
Opps, I get them only in NodeJS, not Javascript.
Note: The JavaScript stdlib catalog does not have the "console" object in it. We'll have to figure out a way to programatically add when we generate our stdlib files. This enhancement does not qualify for 11.0.1.
I am facing the same problem in Komodo Edit 12 on Windows 10. There is no auto-completion for "console".