Home Download Buy Blog Forum Support

CodeIntel ported from Open Komodo Editor

Re: CodeIntel ported from Open Komodo Editor

Postby dribble on Tue Mar 13, 2012 2:19 pm

nick. wrote:Can you explain if you've done anything to make it work? I had previously tried it without success as well.


In summary, it's not perfect, but it's better than not having it.

For instance, it chokes pretty hard on SQL Alchemy scoped_sessiosn and declarative_base(), and doesn't seem to resepect the sqlalchemy package.

That said, it works pretty well for just about everything else.

As background, I'm running 32 python 2.7 (64 bit wasn't playing nice with pyodbc)

Because of the inherent 'gotchas' with the plugin, it can seem as if it's not functioning.

A quick way to check and see if it's working is to create a new file with 'python' selected as the syntax.
Then, in the file, type "from" and hit space.
In the bottom gutter, if working, you should see modules being scanned.
After the modules finish scanning you should see a list of modules in a popup, you can import from.

As python's a dynamic language, there will exists cases where the parser won't be able to determine what type the object you're working with is -- in these cases you will not get autocomplete suggestions.

Finally, one additional sanity check I can recommend that gave me peace of mind was to cross-validate the auto-suggest in KomodoEdit. If the snippet you're working with also fails in Komodo, there's not much to be done from the plugin-side, as it references the Komodo library.
dribble
 
Posts: 6
Joined: Sun Mar 04, 2012 9:35 pm

Re: CodeIntel ported from Open Komodo Editor

Postby xavi on Fri Mar 16, 2012 8:42 am

Not working on Ubuntu with kernel 3.0.0-16 x64. Updating indexes process never ends =(
xavi
 
Posts: 24
Joined: Sat Jul 30, 2011 12:00 am

Re: CodeIntel ported from Open Komodo Editor

Postby mpedrummer on Mon Mar 19, 2012 3:51 pm

Same here - the Ubuntu plus updating indexes thing, I mean. Sadcakes.
mpedrummer
 
Posts: 23
Joined: Thu Mar 08, 2012 9:50 pm

Re: CodeIntel ported from Open Komodo Editor

Postby mpedrummer on Thu Mar 22, 2012 5:56 pm

FWIW, I was actually able to get it working using Ubuntu 11.10. A co-worker and I decided to beat our heads against it.

The issue, it seems, in my case, is that I had nothing in the config file. Dunno why it was blank, but there you go.
mpedrummer
 
Posts: 23
Joined: Thu Mar 08, 2012 9:50 pm

Re: CodeIntel ported from Open Komodo Editor

Postby xai on Sat Mar 24, 2012 1:39 pm

First of all: great plugin! I'm looking for a replacement for Eclipse(which is way too bulky and buggy) and this plugin made Sublime a great candidate.

There is however one thing I'm missing: support for phpdoc tags. For example:
Code: Select all
<?php
class Foo {
    /*
      * @return Bar a bar class
      */
     public function getBar() {
         $bar = new Bar();
         return $bar;
     }
}

class Bar {
     public function getHello() {
         return 'hello';
     }
}

$foo = new Foo();
echo $foo->getBar()->getHello(); // getHello doesn't easily autocomplete or jump to definition here, it does show eventually, but first all default PHP functions show
?>

Is there some way to fix this?
xai
 
Posts: 2
Joined: Sat Mar 24, 2012 1:29 pm

Re: CodeIntel ported from Open Komodo Editor

Postby mpedrummer on Sat Mar 24, 2012 1:45 pm

I use the DocBlokr plugin for that, works great!
mpedrummer
 
Posts: 23
Joined: Thu Mar 08, 2012 9:50 pm

Re: CodeIntel ported from Open Komodo Editor

Postby xai on Sat Mar 24, 2012 2:07 pm

mpedrummer wrote:I use the DocBlokr plugin for that, works great!

Thanks for the tip, seems to do the trick at first sight. Will do a test soon with a bigger project to see if it works there :)
xai
 
Posts: 2
Joined: Sat Mar 24, 2012 1:29 pm

Re: CodeIntel ported from Open Komodo Editor

Postby xavi on Mon Mar 26, 2012 2:53 pm

mpedrummer wrote:FWIW, I was actually able to get it working using Ubuntu 11.10. A co-worker and I decided to beat our heads against it.

The issue, it seems, in my case, is that I had nothing in the config file. Dunno why it was blank, but there you go.


Can you be more specific? Which configuration file was empty? I can not get anything but the message of "Updating indexes for PHP... The first time this can take a while" and a 100% CPU (T_T)
xavi
 
Posts: 24
Joined: Sat Jul 30, 2011 12:00 am

Re: CodeIntel ported from Open Komodo Editor

Postby mpedrummer on Mon Mar 26, 2012 5:20 pm

It's the file referred to in the "Configuring" section here - https://github.com/Kronuz/SublimeCodeIntel

For me, it was ~/.codeintel/config - that file was empty. I just pasted the example from github in there, and it started working for me.
mpedrummer
 
Posts: 23
Joined: Thu Mar 08, 2012 9:50 pm

Re: CodeIntel ported from Open Komodo Editor

Postby xavi on Tue Mar 27, 2012 5:10 pm

mpedrummer wrote:It's the file referred to in the "Configuring" section here - https://github.com/Kronuz/SublimeCodeIntel

For me, it was ~/.codeintel/config - that file was empty. I just pasted the example from github in there, and it started working for me.


You are a lucky man. I tried with the configuration file at ~/.codeintel/config, adde a config file at project .codeintel directory, to recompile plugin libraries ... and nothing ... just CPU at 100% and "Updating indexes for PHP..." message = (
xavi
 
Posts: 24
Joined: Sat Jul 30, 2011 12:00 am

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: Google [Bot] and 7 guests