Can't seem to add an additional API catalog?

I’m trying to cobble together a simple example API catalog for CFML’s library of functions, and I can’t seem to add the catalog through the Preferences > Code Intelligence panel. Each time I select the “Add an API catalog…” button on that preferences panel, I get a file selection dialog and I point it at my .cix file (below) and select “Open”. There is some sort of progress panel shown at the top of the Preferences window, but it goes so fast I can’t see what it says before it disappears. My API entry is not shown in the list of available catalogs.

Komodo’s pystderr.log file contains the following entries for each time I try:

[2015-06-01 05:48:34,668] [WARNING] prefs: The 'filepickers.defaultDirs' preference has changed while the pref window was open. If you get this message, a pref panel is incorrectly modifying prefs and the modified value will be lost.
[2015-06-01 05:48:34,992] [WARNING] koCatalogsTree: could not select `/Users/ron/Library/Application Support/KomodoEdit/9.0/apicatalogs/cfml-v10.cix': not found in available catalogs

I’ve tried this on both Komodo Edit and IDE 9.0.1 on Mac OS X with the same result. I also have Komodo IDE 8.5 installed on one of the systems I tried this on, and it behaves the same, including similar entries in the error log.

Is this a problem with the file I’m trying to add, or a problem in Komodo (in which case I’m glad to log this as a bug)? If this is a problem with Komodo, is there a way to side-load the .cix file to get Komodo to use it?

My example .cix file:

<?xml version="1.0" encoding="UTF-8"?>
<codeintel version="2.0" name="CFML10" description="CFML function library - v10">
  <file lang="CFML" path="">
    <scope ilk="blob" lang="CFML" name="CFML-v10">
      <scope ilk="function" name="abs" signature="abs(number)" returns="Numeric" doc="Absolute value function. The absolute value of a number is the number without its sign.">
        <variable ilk="argument" name="number" citdl="Numeric" doc="Value" />
      </scope>
      <scope ilk="function" name="acos" signature="acos(number)" returns="Numeric" doc="Returns the angle whose cosine is the value passed as the argument.">
        <variable ilk="argument" name="number" citdl="Numeric" doc="The value to be converted into an angle. Must be between -1 and 1." />
      </scope>
    </scope>
  </file>
</codeintel>


/ron

Could you share the full error log?

That’s weird, @nathanr

I’ve tried this multiple times on two different Macs today, both running Yosemite. On the one where I tried most recently, I went to get the error log to share here… and saw that it was 2.4M in size. So I exited Komodo, renamed pystderr.log to pystderr-20150601.log and restarted Komodo. Went into Preferences to add my .cix file, and it worked.

Full error log:

[2015-06-01 12:58:41,918] [INFO] Startup: Welcome to Komodo IDE 9.0.1 build 87208 (platform macosx, running on Darwin 14.3.0 version Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64)
[2015-06-01 12:58:41,918] [INFO] Startup: /Applications/Komodo IDE 9.app/Contents/MacOS/komodo built on Thu Apr 16 13:18:49 2015
[2015-06-01 12:58:42,001] [WARNING] koInitService: Unable to determine the current locale settings, defaulting to mac-roman
[2015-06-01 12:58:42,245] [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
[2015-06-01 12:58:42,246] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'component' directive. (1) in file:///Applications/Komodo%20IDE%209.app/Contents/Resources/extensions/scope-files@activestate.com/components/component.manifest:1
[2015-06-01 12:58:42,246] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'contract' directive. (1) in file:///Applications/Komodo%20IDE%209.app/Contents/Resources/extensions/scope-files@activestate.com/components/component.manifest:2
[2015-06-01 12:58:42,247] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'interfaces' directive. (1) in file:///Applications/Komodo%20IDE%209.app/Contents/Resources/extensions/scope-files@activestate.com/components/component.manifest:3
[2015-06-01 12:58:42,282] [WARNING] root: ko.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

[2015-06-01 12:58:42,381] [WARNING] console-logger: Expected end of value but found 'solid'.  Error in parsing value for 'border-width'.  Declaration dropped. (1) in chrome://global/skin/global.css:2324
[2015-06-01 12:58:42,402] [WARNING] console-logger: Expected end of value but found 'solid'.  Error in parsing value for 'border-width'.  Declaration dropped. (1) in chrome://global/skin/global.css:2324
[2015-06-01 12:58:42,449] [WARNING] console-logger: Unknown property 'border-radius-top-left'.  Declaration dropped. (1) in less://commando/skin/commando.less:18
[2015-06-01 12:58:42,449] [WARNING] console-logger: Unknown property 'border-radius-top-right'.  Declaration dropped. (1) in less://commando/skin/commando.less:19
[2015-06-01 12:58:42,658] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
  File "", line 0, in 

[2015-06-01 12:58:42,716] [WARNING] keybindings: [Meta+Shift+Down] was used for 'cmd_selectDocumentHome', overriding to use 'cmd_selectDocumentEnd'
[2015-06-01 12:58:42,719] [WARNING] keybindings: [Meta+Shift+U] was used for 'cmd_convertLowerCase', overriding to use 'cmd_scope-sections'
[2015-06-01 12:58:43,889] [WARNING] root: ko.findresults was already loaded, re-creating it.

[2015-06-01 12:58:43,923] [DEBUG] places_js: waiting for document complete
[2015-06-01 12:58:44,896] [WARNING] RefactoringLanguageServiceBase: Can't find a refactoring service for CFML
[2015-06-01 12:58:44,896] [WARNING] koLanguage: Asked for unknown language: 'None'
[2015-06-01 12:58:45,452] [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%209.app/Contents/Resources/components/koamAddonManager.js:138
[2015-06-01 12:58:58,339] [WARNING] prefs: The 'filepickers.defaultDirs' preference has changed while the pref window was open. If you get this message, a pref panel is incorrectly modifying prefs and the modified value will be lost.

I’ve started and stopped Komodo several times around trying to load this .cix file earlier today on both this box and the other box where I tried this, and each time it failed. I’m at a loss as to why it loaded this time. I’m having a hard time thinking it had anything to do with renaming the error log, but that’s really the only thing I can think of that’s different about what I did this time.

I still have the old error log and can email that to you if that will help. Let me know if you want it.

A 2.5 mb error log would cost too much time to make any sense of unfortunately :\ It sounds like something messed up in your Komodo install and then prevented other things from working (eg. your catalog import).

Thanks, @nathanr

I still have one box at home – where I first encountered this problem – where I have not been able so far to import the .cix file. If the error log is not massive, I will send it.

Thanks Ron, got it. Here’s the full relevant log:

[2015-06-01 05:37:39,363] [WARNING] prefs: The 'codeintel.catalogs' preference has changed while the pref window was open. If you get this message, a pref panel is incorrectly modifying prefs and the modified value will be lost.
[2015-06-01 05:37:39,364] [WARNING] prefs: The 'filepickers.defaultDirs' preference has changed while the pref window was open. If you get this message, a pref panel is incorrectly modifying prefs and the modified value will be lost.
[2015-06-01 05:37:40,018] [WARNING] koCatalogsTree: could not select `/Users/ron/Library/Application Support/KomodoEdit/9.0/apicatalogs/cfml-v10.cix': not found in available catalogs
[2015-06-01 05:38:08,397] [WARNING] prefs: The 'filepickers.defaultDirs' preference has changed while the pref window was open. If you get this message, a pref panel is incorrectly modifying prefs and the modified value will be lost.
[2015-06-01 05:38:08,703] [WARNING] koCatalogsTree: could not select `/Users/ron/Library/Application Support/KomodoEdit/9.0/apicatalogs/cfml-v10.cix': not found in available catalogs
[2015-06-01 05:41:04,940] [ERROR] koCodeIntel:     ERROR: lang_xml.py: async_eval_at_trg:
    Internal error: Unknown UDL-based XML completion type: u'defn'
[2015-06-01 05:43:24,998] [ERROR] koCodeIntel:     ERROR: lang_xml.py: async_eval_at_trg:
    Internal error: Unknown UDL-based XML completion type: u'defn'
[2015-06-01 05:43:38,082] [ERROR] koCodeIntel:     ERROR: lang_xml.py: async_eval_at_trg:
    Internal error: Unknown UDL-based XML completion type: u'defn'
[2015-06-01 05:45:06,136] [ERROR] koCodeIntel:     ERROR: lang_xml.py: async_eval_at_trg:
    Internal error: Unknown UDL-based XML completion type: u'defn'
[2015-06-01 05:45:31,610] [WARNING] prefs: The 'filepickers.defaultDirs' preference has changed while the pref window was open. If you get this message, a pref panel is incorrectly modifying prefs and the modified value will be lost.
[2015-06-01 05:45:32,165] [WARNING] koCatalogsTree: could not select `/Users/ron/Library/Application Support/KomodoEdit/9.0/apicatalogs/cfml-v10.cix': not found in available catalogs
[2015-06-01 05:45:32,733] [ERROR] koCodeIntel:     ERROR: lang_xml.py: async_eval_at_trg:
    Internal error: Unknown UDL-based XML completion type: u'defn'
[2015-06-01 05:45:33,944] [ERROR] koCodeIntel:     ERROR: lang_xml.py: async_eval_at_trg:
    Internal error: Unknown UDL-based XML completion type: u'defn'
[2015-06-01 05:48:34,668] [WARNING] prefs: The 'filepickers.defaultDirs' preference has changed while the pref window was open. If you get this message, a pref panel is incorrectly modifying prefs and the modified value will be lost.
[2015-06-01 05:48:34,992] [WARNING] koCatalogsTree: could not select `/Users/ron/Library/Application Support/KomodoEdit/9.0/apicatalogs/cfml-v10.cix': not found in available catalogs
[2015-06-01 05:48:36,358] [ERROR] koCodeIntel:     ERROR: lang_xml.py: async_eval_at_trg:
    Internal error: Unknown UDL-based XML completion type: u'defn'
[2015-06-01 05:53:10,262] [ERROR] koCodeIntel:     ERROR: lang_xml.py: async_eval_at_trg:
    Internal error: Unknown UDL-based XML completion type: u'defn'
[2015-06-01 06:02:00,570] [ERROR] koCodeIntel:     ERROR: lang_xml.py: async_eval_at_trg:
    Internal error: Unknown UDL-based XML completion type: u'defn'
[2015-06-01 06:02:03,663] [WARNING] views: Inconsistent view count in view_closed event

Leaving it here as a reference for if/when the issue comes up again.