Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ismnoiet opened this issue Jan 15, 2016 · 2 comments
Open

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

ismnoiet opened this issue Jan 15, 2016 · 2 comments

Comments

@ismnoiet
Copy link

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
Copy link
Owner

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants