Sublime Forum

CodeIntel ported from Open Komodo Editor

#149

[quote=“firstrow”]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[/quote]

I have the same problem. Editor freezes randomly when this plugin is active.When it freezes I can continue writing but I cannot see the changes on the screen. I must press F11 twice to refresh the screen and view all of what I had written. If I disable the plugin everything works fine.

CodeIntel downloaded and installed width Package control and compiled
SublimeText 2 Build 2133
Linux 2.6.38-11-generic #50-Ubuntu x86_64 GNU/Linux

0 Likes

#150

Either way, I deleted it and Sublime is a lot better now. I think I’ll switch back to Komodo though just because I can’t stand not having decent auto-complete.

Hope this can eventually be part of core Sublime and maintained. Love how ST2 looks/feels, but… just… can’t…

0 Likes

#151

I don’t normally call people asses on public fora, but: you’re an ass.

FWIW, it works well for me, and quite a few others. I have, however, no interest whatsoever in helping make it work for you, given your tone, and I suspect the same applies to anyone else who may’ve been able to help you.

A more mature response may have been to elucidate your problem and offer to help improve the state of the plugin, documentation or support avenues if you could get it to work. I’m pretty sure the author didn’t put the plugin on this forum only so he could get abuse.

Martin

0 Likes

#152

Hello,

SublimeCodeIntel have been working great for me, and @kronuz have been doing an amazing job with it, we even managed to get Jon fix an old critical bug and also had the amazing guys from Komodo CodeIntel2 to fix a problem with relative imports in python that was happening to then also.

So, the journey have been so much pleasant to me.

It could be the same for you if you could stop talk like if we had the obligation of helping you, because we dont have to.

This is OPENSOURCE, you can read the source code, go read OpenKomodo codeintel2 docs, if you want to make it work to you, go learn python and help us and stop talking like this.

Here is the repository:

github.com/Kronuz/SublimeCodeIntel

As aways, patches are so much welcome.

0 Likes

#153

here i add to you a screencast of the really hidden capacityof codeintel XD
sry in advance for bad eng XD

http://www.screencast.com/t/jLexFykJJ

whad do u think about it?

ty^

0 Likes

#154

Oh man… now they have problems and create videos with hidden features…

Can you please tell me wtf “d” is ??? Would that code work in ipython ???

Seems you want to make something that you did not even tried to study work, go read the CodeIntel source code and its README.

Aptana is a much better alternative to you (not because it is bad, because i love it, but because it should work out of the box for you).

… sorry for the tone, but no one has (even more in the opensource world) to make something work for anyone.

0 Likes

#155

Thanks for the marvelous work on porting this to sublimetext2, it works great for me.

I’ve been looking at python_codeintel.py@autocomplete trying to figure out a way to get functions to autocomplete with parens (), inserting the cursor between the parentheses. It looks like completions have a ‘type’, so I should be able to do some sort of conditional on type == ‘function’…but I don’t know enough yet about the ST2 API to figure out where to go from there. Any ideas?

0 Likes

#156

Hey,

I am running Submit Text 2 beta build 2126 (not sure if that’s the latest, how do I check?) on OS X Lion 10.7.2 (11C74), Mac Pro Mid-2010 2.8 GHz Quad-Core Intel Xeon

After installing CodeIntel I kept getting the crashing error that others had previously reported, then I noticed it was still trying to build indexes each time it crashed. I had a bunch of files (like Zend Framework) that it had to index, so I left it alone for awhile and now it doesn’t crash. Works sweet!!

Thanks!

The only thing I haven’t figured out is when I get code intel on a variable (this is in PHP) it shows all functions, not just the functions that relate to that class… is this how it is supposed to work, or have I not quite finished setting it up properly?

Appreciate any ideas people have.

0 Likes

#157

Nope, got it working!

I was editing a file outside of project root.

This plugin rocks!

0 Likes

#158

Thanks for the work on this plugin.

Something ive noticed is that in most languages, hitting cmd+J to trigger the autocomplete will not work if there are any characters preceding the cursor. It seems to still work in CSS, though. Does anyone else experience this?

0 Likes

#159

Does this plugin have full functionality for PHP? I’ve read all the documentation, most of this thread and I’m certain i’ve got the necessary dependencies installed and I’ve run build.sh successfully. I can get autocomplete working using CTRL+Space however the feature I really need to work is the jump to symbol.I’ve tried the various key bindings and mouse clicks but I cannot get the jump feature to work. I’m running ubuntu 11.11. This is the killer feature i need to jump ship from netbeans.

My console output is as follows:

startup, version: 2139 linux x64 channel: stable
executable: /home/brandon/Apps/SublimeText2/sublime_text
working dir: /home/brandon
packages path: /home/brandon/.config/sublime-text-2/Packages
settings path: /home/brandon/.config/sublime-text-2/Settings
PackageSetup not required
error parsing session: No data at: 0:0
Py_GetProgramName(): sublime_text
Py_GetExecPrefix(): .
Py_GetProgramFullPath(): /home/brandon/bin/sublime_text
Py_GetPath(): ./lib/python26.zip:./lib/python2.6/:./lib/python2.6/plat-linux2:./lib/python2.6/lib-tk:./lib/python2.6/lib-old:./lib/python2.6/lib-dynload
Py_GetPythonHome(): .
catalogue loaded
found 4 files for base name Default.sublime-keymap
found 2 files for base name Default.sublime-mousemap
found 3 files for base name Main.sublime-menu
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/comment.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/copy_path.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/delete_word.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/detect_indentation.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/duplicate_line.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/echo.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/exec.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/fold.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/font.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/goto_line.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/indentation.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/kill_ring.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/mark.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/new_templates.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/open_file_settings.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/paragraph.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/save_on_focus_lost.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/scroll.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/side_bar.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/sort.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/swap_line.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/switch_file.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/transform.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/transpose.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Default/trim_trailing_white_space.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Diff/diff.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Git/git.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/HTML/encode_html_entities.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/HTML/html_completions.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/Package Control/Package Control.py
Reloading plugin /home/brandon/.config/sublime-text-2/Packages/SublimeCodeIntel/python_codeintel.py
loading bindings
loading pointer bindings
Package Control: Skipping automatic upgrade, last run at 2011-11-28 09:59:44, next run at 2011-11-28 21:59:44 or after
found 1 files for base name Default.sublime-theme
theme loaded
app ready
pre session restore time: 0.186002
startup time: 0.261272
loaded 937 snippets

My .codeintel/config is:

{
        "PHP": {
                "php": '/usr/bin/php',
                "phpExtraPaths": ],
                "phpConfigFile": 'php.ini'
        }
}

Am I missing something?

0 Likes

#160

Hi. Big thanks to developers for this amazing plugin. I have one question. Autocomplete works well, but not for ExtJS library. It doesn’t work for it at all. When I try it in OpenKomodo it doesn’t work too. But in OpenKomodo I can choose an api database. So I choose ExtJS library and have autocomplete with ExtJS. I watched sources directory of SublimeCodeIntel and found some CIX files. ExtJS is in the list of this files. So i want to know if I have a chance to get autocomplete from databases.

0 Likes

#161

Can you guys please get the latest version (now 1.3) and try it?

This version should fix the issues you were having in Linux, plus now you shouldn’t need to build the libraries anymore, libpcre is now statically linked and SublimeCodeIntel should now work out of the box in Linux (32 and 64 bit) :smiley:

Get it from the usual GitHub repo: github.com/Kronuz/SublimeCodeIntel

v1.3 (20-12-2011):
- This build should fix many of the problems seen in Linux systems.
- Libraries for Linux rebuilt with libpcre statically (libpcre bundled for Linux builds).
- calltip() is now thread safe (which caused some strange behavior in Linux where Sublime Text 2 ended up being unresponsive).

0 Likes

#162

[quote=“Kronuz”]Can you guys please get the latest version (now 1.3) and try it?

This version should fix the issues you were having in Linux, plus now you shouldn’t need to build the libraries anymore, libpcre is now statically linked and SublimeCodeIntel should now work out of the box in Linux (32 and 64 bit) :smiley:

Get it from the usual GitHub repo: github.com/Kronuz/SublimeCodeIntel

v1.3 (20-12-2011):
- This build should fix many of the problems seen in Linux systems.
- Libraries for Linux rebuilt with libpcre statically (libpcre bundled for Linux builds).
- calltip() is now thread safe (which caused some strange behavior in Linux where Sublime Text 2 ended up being unresponsive).[/quote]

Not working on Ubuntu 2.6.38-11-generic x64

When I try ALT+LEFT-CLICK, plugin starts scanning the project but never ends (or takes longer than 5 minutes…) Tested with a fresh WordPress project and a Zend Framework one.

¿Can I send you some sort of log or give you more information to help solve the problem?

0 Likes

#163

I think an update to ST2 broke this plugin, as now I don’t even have the message about my indexes being built. I’ve tried fresh installs of SublimeCodeIntel and it still doesn’t seem to do anything. It’s really frustrating because this broke my entire flow for me. Hopefully a fix is pushed out soon.

0 Likes

#164

It doesn’t work. Keeps writing “Processing PHP”, or “Updating indexes” or “Doing CodeIntel”… And the pop up never shows up. It only works with CSS right now.

0 Likes

#165

I confirm: "Keeps writing “Processing PHP”, or “Updating indexes”
Ubuntu 11.10

tried

$ sudo apt-get install g++ $ sudo apt-get install python-dev
and

build.sh

No success :frowning:

0 Likes

#166

Are You sure this instruction is correct?
“…] go to your Packages/SublimeCodeIntel/src folder, then simply run:”

$ ./build.sh

When I run it in src folder as above, I got:
bash: ./build.sh: (no access)
When try

$ sudo ./build.sh

I got:

sudo: ./build.sh: command not found

But when try just:

$ sh build.sh

Script runs but ends with error:

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] ../scintilla/src/LexUDL.cxx:21:18: fatal error: pcre.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1

0 Likes

#167

OK, last error solved, installed this packages:

sudo apt-get install php5-dev sudo apt-get install libpcre3-dev
but still no expected results on ctrl+space :frowning:

0 Likes

#168

hi kronuz i’m running the lastest x64 dev build on win 7 x64…but since the last 2 dev build or so i can’t manage to make it working, any updates, fix or else?

ty

0 Likes