Sublime Forum

CodeIntel ported from Open Komodo Editor

#123

Im getting a strange permissions error after installing on OSX (Lion):

Exception in thread scanning thread:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 484, in run
  File "./python_codeintel.py", line 597, in _codeintel_scan
  File "/Users/gonzab/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/manager.py", line 155, in upgrade
    self.db.upgrade()
  File "/Users/gonzab/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/database/database.py", line 522, in upgrade
    upgrader(self, curr_ver, result_ver)
  File "/Users/gonzab/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/database/database.py", line 533, in _upgrade_wipe_db
    self.create()
  File "/Users/gonzab/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/database/database.py", line 451, in create
    os.makedirs(self.base_dir)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.py", line 157, in makedirs
OSError: [Errno 13] Permission denied: '/Users/gonzab/.codeintel'

Iā€™d create the directory and give it 777 permissions, but it throws a new error while trying to delete it.
Any idea?

Thanks in advance!
regards
gonzalo

0 Likes

#124

Is it possible to have in context doc ( hints about the function/module/commandā€¦ ) as in Komodo ?
Thank you

0 Likes

#125

Hallo,

I just tried out Sublime together with CodeIntel because I would love to have an good looking OS X Editor with proper autocompletion.

I relay heavily on numpy and scipy python libs. After some disappointments with getting only some completions but by far not for all functions in the numpy library I found some advice at the komodo forums that I have to build my one catalog for numpy and scipy because of them making heavy use of calls to other languages. So the way would be to create an api catalog file: community.activestate.com/forum/ ā€¦ matplotlib

After doing this: community.activestate.com/forum/ ā€¦ matplotlib for numpy and putting it in the CodeIntel package folder, I had still no success for completing things like *np.z *to *np.zeros * or similar.

Has anyone done anything similar and can help me?

EDIT:
The missing numpy functions are listed under ā€œnumpy.core.ā€ though they should be listed under ā€œnumpy.ā€ also. The numpy.cix catalog seams to be recognized from codeintel in the log file but it seams like it isnā€˜t used for completion probably because it is somehow formated wrong or something like this.

0 Likes

#126

Has anyone noticed the rather large issue with css?

Autocompletion with no tabbing seems to break things regularly.

For example when doing color: #, upon pressing the # key it autocompletes to color: inherit#;

I also have some issues with closing html tags resulting in double gtā€™s - ie. >.

0 Likes

#127

[quote=ā€œjdimikehā€]Has anyone noticed the rather large issue with css?

Autocompletion with no tabbing seems to break things regularly.

For example when doing color: #, upon pressing the # key it autocompletes to color: inherit#;

I also have some issues with closing html tags resulting in double gtā€™s - ie. >.[/quote]

Yup. Same problem here I think. viewtopic.php?f=5&t=2202&start=130#p14507

Bump. Please some help?

0 Likes

#128

Same problem here. Autocompletion is all fubar and out of control. Kronuz, please help us. :frowning:

0 Likes

#129

This is due the way autocomplete works in Sublime Text 2ā€¦ Last I heard, Jon was refactoring the autocomplete to work betterā€¦ I havenā€™t asked him if he did finish that or notā€¦ maybe if he did we need to make use of the new features.

0 Likes

#130
Reloading plugin /home/user/.config/sublime-text-2/Packages/SublimeCodeIntel/python_codeintel.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 57, in reload_plugin
  File "./python_codeintel.py", line 83, in <module>
    from codeintel2.common import *
  File "/home/user/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/codeintel2/common.py", line 76, in <module>
    import SilverCity
  File "/home/user/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/SilverCity/__init__.py", line 1, in <module>
    import _SilverCity
  File "/home/user/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/SilverCity/_SilverCity.py", line 25, in <module>
    raise ImportError("Could not find a suitable _SilverCity binary for your platform and architecture.")
ImportError: Could not find a suitable _SilverCity binary for your platform and architecture.

Iā€™m on Ubuntu 11.04 x64

0 Likes

#131

Is it possible to extend this to other languages? What kind of file format do I have to create? Specifically, I am interested in Rā€¦

Thanks!

0 Likes

#132

[quote=ā€œmathelecā€] Reloading plugin /home/user/.config/sublime-text-2/Packages/SublimeCodeIntel/python_codeintel.py Traceback (most recent call last): File "./sublime_plugin.py", line 57, in reload_plugin File "./python_codeintel.py", line 83, in <module> from codeintel2.common import * File "/home/user/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/codeintel2/common.py", line 76, in <module> import SilverCity File "/home/user/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/SilverCity/__init__.py", line 1, in <module> import _SilverCity File "/home/user/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/SilverCity/_SilverCity.py", line 25, in <module> raise ImportError("Could not find a suitable _SilverCity binary for your platform and architecture.") ImportError: Could not find a suitable _SilverCity binary for your platform and architecture.

Iā€™m on Ubuntu 11.04 x64[/quote]

Up please, I need it so much

0 Likes

#133

I would like to add the Wordpress Completition offered in this TextMate package github.com/Gipetto/wordpress.tm ā€¦ ADME.mdown

Is it possible to add new functions to CodeIntel?

Does anyone know of any good method I could port that package to ST2? I am willing to spend time on it, but I donā€™t know were to start.

Thanks!

0 Likes

#134

Hi! I am on OSX . Sorry for missing that info.

0 Likes

#135

Any word on Jon fixing autocompletion? Really throws a cramp in my day when autocomplete is jacked up.

0 Likes

#136

Hi!
Iā€™m trying to see ā€œJump to Definitionā€ into action, but :frowning:

Iā€™ve installed CodeIntel via Package Control, and if I type "import " the autocomplete popup appears. But nothing happens if i type āŒ˜J.

Furthermore if I:
ā€¢ open Default (OSX).sublime-keymap,
ā€¢ put my caret on ā€œslurp_find_stringā€,
ā€¢ press āŒ˜f3.
Nothing happens.
Nor if I āŒ„click on ā€œslurp_find_stringā€.

What am I missing?

TIA

bblue

0 Likes

#137

ā€¦ maybe CodeIntel doesnā€™t work in JSON mode?

Is there another way to jump to the definition of a command JSON mode?

:blush:

ā€“
bblue

0 Likes

#138

hi all,
iā€™ve just installed sublime text 2 dev 2132 for win x64 and then PackageControl

now, itā€™s the first time that i use CodeIntel but i canā€™t manage to do anythingā€¦itā€™s a problem og mine (maybe iā€™m too much dumb XD) or there is some compatibles issue?

ty for any answer and sry for my bad eng

0 Likes

#139

Up please, I need it so much[/quote]

Same error on Ubuntu Linux 2.6.38-11-generic x86_64

0 Likes

#140

Up please, I need it so much

Same error on Ubuntu Linux 2.6.38-11-generic x86_64[/quote]

I quote myself =)

You can solve this error following this structions (github.com/Kronuz/SublimeCodeIn ā€¦ nt-2148739):

  • On terminal go to SublimeCodeIntel source directory
  • sudo apt-get install libpcre+Ā±dev
  • chmod 777 ./build.sh
  • ./build.sh

It works for me :wink:

0 Likes

#141

[quote=ā€œFed03ā€]hi all,
iā€™ve just installed sublime text 2 dev 2132 for win x64 and then PackageControl

now, itā€™s the first time that i use CodeIntel but i canā€™t manage to do anythingā€¦itā€™s a problem og mine (maybe iā€™m too much dumb XD) or there is some compatibles issue?

ty for any answer and sry for my bad eng[/quote]

no one have this problem? maybe i miss something?

0 Likes

#142

Amazing plugin!, but it freezes or flies out without any errors, even with disabled live autocompletion. :cry:
and needs editor restart. =(

CodeIntel - git cloned. today.
SL Build 2126
Linux 2.6.32-34-generic #77-Ubuntu x86_64 GNU/Linux

0 Likes