Home Download Buy Blog Forum Support

CodeIntel ported from Open Komodo Editor

Re: CodeIntel ported from Open Komodo Editor

Postby bengold on Wed Aug 03, 2011 9:50 pm

I put this on the github, but figured I'd put it here in case anyone else has a similar problem. I've pulled the most recent version of SublimeCodeIntel from Git, and installed it. However, when ST2 opens up, the error in the console I get is:
"ImportError: Could not find a suitable _SilverCity binary for your platform and architecture."
I tried running build.sh from the src directory, but it fails to build Scintilla with this error: http://pastebin.com/JNpJaAhA

Any suggestions?
bengold
 
Posts: 15
Joined: Wed Aug 03, 2011 9:49 pm

Re: CodeIntel ported from Open Komodo Editor

Postby Kronuz on Thu Aug 04, 2011 2:12 am

To build you need the python libraries compiled with 4bytes Unicode (check the build.sh for the exact option needed while building python) ...indeed, new binaries need to be compiled for the latest version to work...

If anyone manages to compile them in any platform an architecture, please send them over so others can benefit from it. Please try to compile libpcre statically if you can. I have no access to Linux or Windows at the moment as to do so myself :-(
Kronuz
 
Posts: 98
Joined: Mon Feb 14, 2011 3:14 pm

Re: CodeIntel ported from Open Komodo Editor

Postby doteleven on Thu Aug 04, 2011 5:15 am

Is there a way to remove the delay you have in this? so when I start typing no matter what it pops up? For php and css so far I've noticed I don't get the dropdown until I stop typing.
doteleven
 
Posts: 11
Joined: Thu Aug 04, 2011 5:14 am

Re: CodeIntel ported from Open Komodo Editor

Postby singw on Sat Aug 06, 2011 2:39 pm

guillermooo wrote:Hey Kronuz,

This looks like a fantastic package, but... I can't make it work on Windows.

What I've done:

1) Installed the packages as per your instructions
2) Created a new folder
3) Created a new file one.py
4) Typed in some Python functions.
5) Pressed super+j

The status bar reports that CodeIntel is creating the indexes, but it does so every time I press the shortcut and nothing else happens.


Kronuz wrote:@guillermooo, I have somewhat improved the loggings and fixed a couple issues. Could you please pull the latest and try again?

The indexes are saved at `~/.codeintel/db/` and there's a log file at `~/.codeintel/codeintel.log` (that gets wiped out and recreated every time you start Sublime Text).


@Kronuz, I got the same problem as guillermooo.
I already using the lastest build from git, and i don't find any files/folder under ".codeintel/", except the "config" file. I have marked the ".codeintel" as not read-only already.

I am using portable build of Sublime Text 2 (tried 32 and 64bit) under Windows 7 64bit.
singw
 
Posts: 59
Joined: Fri Aug 05, 2011 2:16 pm

Re: CodeIntel ported from Open Komodo Editor

Postby allaire on Sat Aug 06, 2011 6:37 pm

Plugin aint working for me, I used git to clone it in my /Packages directory, no luck, auto-complete does not kicks off! Any ideas?
allaire
 
Posts: 15
Joined: Mon Apr 11, 2011 6:44 pm

Re: CodeIntel ported from Open Komodo Editor

Postby Kronuz on Sat Aug 06, 2011 10:12 pm

I really need someone to compile the new binaries for Widows and Linux :-( ...I rushed into updating some code, but now SublimeCodeIntel doesn't work in those platforms anymore for that reason :-S ...anyone willing to help us compiling those!?
Last edited by Kronuz on Sun Aug 07, 2011 3:10 am, edited 1 time in total.
Kronuz
 
Posts: 98
Joined: Mon Feb 14, 2011 3:14 pm

Re: CodeIntel ported from Open Komodo Editor

Postby squ1b3r on Sun Aug 07, 2011 1:36 am

Hi, man. Just updated to your last version and got this:

Code: Select all
Reloading plugin /Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/python_codeintel.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 65, in reload_plugin
  File "./python_codeintel.py", line 86, in <module>
    from codeintel2.common import *
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/common.py", line 76, in <module>
    import SilverCity
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/__init__.py", line 19, in <module>
    LanguageInfo.do_registration()
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/LanguageInfo.py", line 116, in do_registration
    import CSS
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/CSS.py", line 42, in <module>
    class CSSHTMLGenerator(HTMLGenerator.SimpleHTMLGenerator, CSSHandler):
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/CSS.py", line 50, in CSSHTMLGenerator
    def generate_html(self, file, buffer, lexer = CSSLexer()):
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/CSS.py", line 26, in __init__
    _CSSLexerTemplate.__init__(self, properties)
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/CSS.py", line 17, in __init__
    WordList(Keywords.css_properties_3),
AttributeError: 'module' object has no attribute 'css_properties_3'


os: macosx lion
squ1b3r
 
Posts: 45
Joined: Fri Feb 11, 2011 6:35 am

Re: CodeIntel ported from Open Komodo Editor

Postby Kronuz on Sun Aug 07, 2011 2:30 pm

@sublimator, yes, I tried it once, but it wouldn't work (different python versions I guess) ...I might have done something wrong though.
Kronuz
 
Posts: 98
Joined: Mon Feb 14, 2011 3:14 pm

Re: CodeIntel ported from Open Komodo Editor

Postby jbrooksuk on Mon Aug 08, 2011 3:30 pm

Is this supposed to work under Windows 7 64Bit?
jbrooksuk
 
Posts: 782
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: CodeIntel ported from Open Komodo Editor

Postby optilude on Tue Aug 09, 2011 2:10 am

squ1b3r wrote:Hi, man. Just updated to your last version and got this:

Code: Select all
Reloading plugin /Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/python_codeintel.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 65, in reload_plugin
  File "./python_codeintel.py", line 86, in <module>
    from codeintel2.common import *
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/common.py", line 76, in <module>
    import SilverCity
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/__init__.py", line 19, in <module>
    LanguageInfo.do_registration()
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/LanguageInfo.py", line 116, in do_registration
    import CSS
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/CSS.py", line 42, in <module>
    class CSSHTMLGenerator(HTMLGenerator.SimpleHTMLGenerator, CSSHandler):
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/CSS.py", line 50, in CSSHTMLGenerator
    def generate_html(self, file, buffer, lexer = CSSLexer()):
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/CSS.py", line 26, in __init__
    _CSSLexerTemplate.__init__(self, properties)
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/CSS.py", line 17, in __init__
    WordList(Keywords.css_properties_3),
AttributeError: 'module' object has no attribute 'css_properties_3'


os: macosx lion


I can confirm this error happens (on Snow Leopard, too) with the current code on GitHub.

Martin
optilude
 
Posts: 30
Joined: Sun Jan 30, 2011 2:36 pm

PreviousNext

Return to Plugin Announcements

Who is online

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