Sublime Forum

CodeIntel ported from Open Komodo Editor

#122

CodeIntel keeps crashing my Sublime2 (Win) aswell. (So often that I have to disable it :frowning: )
How can I post the error messages?
It happens on autocompletion. My Window gets grey and Windows forces me to close it.

Greets, Simon

0 Likes

#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