spectacles / CodeComplice

CodeIntel for Sublime Text 2 / 3
Other
167 stars 18 forks source link

How to add my custom CIX file for a given library ? #43

Open ismnoiet opened 8 years ago

ismnoiet commented 8 years ago

I have created successfully a custom auto-complete catalog for a library X(JavaScript language), i've tried to put it on its own file for organisation purposes :

...CodeComplice/libs/codeintel2/catalogs/customX.cix

i've also tried to add it to CodeComplice.sublime-settings under : JavaScript.codeintel_selected_catalogs alongside with jQuery

"JavaScript": {
            "codeintel_scan_extra_dir": [],
            "codeintel_scan_exclude_dir":["/build/", "/min/"],
            "codeintel_scan_files_in_project": false,
            "codeintel_max_recursive_dir_depth": 2,
            "codeintel_selected_catalogs": ["jQuery","customX"]
},
...

But it is not working, and it works only if i put the entire custom library definition inside the JavaScript catalog located in :

...CodeComplice/libs/codeintel2/stdlibs/JavaScript.cix

Notice : I asked this question already at SublimeCodeIntel and got no answer. Any help or suggestions would be more than appriciated and thank you.

spectacles commented 8 years ago

hey!

CodeComplice/libs/codeintel2/catalogs/customX.cix

this path is fine! be sure your cix uses this as wrapper-xml

<?xml version="1.0" encoding="UTF-8"?>
<codeintel name="customX" >
  <file lang="JavaScript" path="">

  </file>
</codeintel>
ismnoiet commented 8 years ago

Thank you for the suggestion but i'm already using it and it is not working !!!. And can't find official or any sort of documentation about CIX files, except the comments inside the dictionary.py and other files shipped within codeintel folder. I tried to be inspired by jQuery, unfortunately i'm not getting the desired results.