Home Download Buy Blog Forum Support

CodeIntel ported from Open Komodo Editor

Re: CodeIntel ported from Open Komodo Editor

Postby Kronuz on Tue Jul 26, 2011 3:35 pm

@sublimator, that was an old problem... please pull the latest from github ;)

@senzo you too, try the latest and let me know... post log files too plz :D
Kronuz
 
Posts: 98
Joined: Mon Feb 14, 2011 3:14 pm

Re: CodeIntel ported from Open Komodo Editor

Postby Kronuz on Tue Jul 26, 2011 3:44 pm

@sublimator no, pull should do it... however that error is an old one (fixed in github's master)... the line numbers marked don't even contain that code anymore (check the file online at github)... actually simply "git pull" should do it...
Kronuz
 
Posts: 98
Joined: Mon Feb 14, 2011 3:14 pm

Re: CodeIntel ported from Open Komodo Editor

Postby rdougan on Wed Jul 27, 2011 6:54 am

I'm not able to get anything working with any JavaScript libraries. Just seems to index forever (with 100% CPU usage).
rdougan
 
Posts: 44
Joined: Sat Apr 09, 2011 2:37 am

Re: CodeIntel ported from Open Komodo Editor

Postby rdougan on Wed Jul 27, 2011 7:12 am

So it finally finished, however I'm not sure where it has scanned. It seems to have scanned the whole HD..

Where is the indexed content stored?
rdougan
 
Posts: 44
Joined: Sat Apr 09, 2011 2:37 am

Re: CodeIntel ported from Open Komodo Editor

Postby senzo on Wed Jul 27, 2011 9:03 am

Kronuz wrote:@senzo you too, try the latest and let me know... post log files too plz :D


It is still not working with javascript for me. You can try it out if you download the dojotoolkit from here:
http://download.dojotoolkit.org/release ... .1-src.zip
Create an empty ST2 project, put the dojotoolkit in the project folder, open any .js file and type 'dojo.(ctrl + space)"

And another point besides the scanning of .js files: There is a dojo.cix file in /SublimeCodeIntel/libs/codeintel2/catalogs/dojo.cix
So there is no need to scan the dojotoolkit folder at all - the project specific files have to scanned of course. I am not sure how this can be achieved, maybe by excluding directories manually?
senzo
 
Posts: 106
Joined: Tue May 24, 2011 9:17 am

Re: CodeIntel ported from Open Komodo Editor

Postby xavi on Sat Jul 30, 2011 12:30 am

I've this error under Ubuntu 11.04 x86_64 kernel 2.6.38-10-generic =(

Code: Select all
Traceback (most recent call last):
  File ".\logging\__init__.py", line 768, in emit
  File ".\logging\__init__.py", line 648, in format
  File ".\logging\__init__.py", line 436, in format
  File ".\logging\__init__.py", line 306, in getMessage
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 23: ordinal not in range(128)
xavi
 
Posts: 24
Joined: Sat Jul 30, 2011 12:00 am

Re: CodeIntel ported from Open Komodo Editor

Postby Kronuz on Sun Jul 31, 2011 7:22 pm

I added a screencast at Jing for showing the features off:
http://www.screencast.com/t/wXFuTAvDRg

EDIT: sorry... new to screencast, posted the wrong URL :P
Last edited by Kronuz on Tue Aug 02, 2011 8:22 pm, edited 2 times in total.
Kronuz
 
Posts: 98
Joined: Mon Feb 14, 2011 3:14 pm

Re: CodeIntel ported from Open Komodo Editor

Postby Kronuz on Sun Jul 31, 2011 7:28 pm

@sublimator, Indeed there's great stuff in OpenKomodo. They also have linting stuff... but I'm now using SublimeLint...

@xavi, that seems like an encoding problem... but it doesn't seem to come directly from SublimeCodeIntel... it's a weird traceback :S
Does your source code contains special characters?

@senzo, I can see the problem occurring here (for dojo) ...but I can't find out what it is... the dojo CIX library included with SublimeCodeIntel is for dojo 1.5 and your link is for 1.6. I'm not sure if that can be the cause or if it's something else...

Always pull the latest SublimeCodeIntel... and if anyone is experiencing issues or problems running SublimeCodeIntel in any platform, please let me know at github.com :)
Kronuz
 
Posts: 98
Joined: Mon Feb 14, 2011 3:14 pm

Re: CodeIntel ported from Open Komodo Editor

Postby nerdshark on Mon Aug 01, 2011 2:27 am

Howdy! I'm trying to try out CodeIntel, but for some reason, it is trying to load the OS X versions of the prebuilt libraries and subsequently the CodeIntel plugin fails to initialize. I'm on an up-to-date Arch Linux x86-64 system, using the latest Sublime build and my copy of CodeIntel is at the latest commit (71cf6ae as of this writing). Here is the relevant bit of the log log from the Sublime console:
Code: Select all
Reloading plugin /home/nerdshark/.config/sublime-text-2/Packages/SublimeCodeIntel/python_codeintel.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 29, in reload_plugin
  File "./python_codeintel.py", line 86, in <module>
    from codeintel2.common import *
  File "/home/nerdshark/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/codeintel2/common.py", line 76, in <module>
    import SilverCity
  File "/home/nerdshark/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/SilverCity/__init__.py", line 1, in <module>
    import _SilverCity
  File "/home/nerdshark/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/SilverCity/_SilverCity.py", line 22, in <module>
    from _macosx_universal._SilverCity import *
ImportError: /home/nerdshark/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_macosx_universal/_SilverCity.so: invalid ELF header

I'm really excited to get this working, as I'll be able to switch from my comparatively uncomfortable gvim config!

TIA,
nerdshark

Edit: After hacking on SublimeCodeIntel/libs/SilverCity/_SilverCity.py and allowing the ImportError to be raised on import of the linux x86_64 libs, I discovered that something was trying to load a version of the pcre shared library that didn't exist on my system.

Code: Select all
Reloading plugin /home/nerdshark/.config/sublime-text-2/Packages/SublimeCodeIntel/python_codeintel.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 29, in reload_plugin
  File "./python_codeintel.py", line 86, in <module>
    from codeintel2.common import *
  File "/home/nerdshark/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/codeintel2/common.py", line 76, in <module>
    import SilverCity
  File "/home/nerdshark/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/SilverCity/__init__.py", line 1, in <module>
    import _SilverCity
  File "/home/nerdshark/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/SilverCity/_SilverCity.py", line 10, in <module>
    from _linux_libcpp6_x86_64._SilverCity import *
ImportError: libpcre.so.3: cannot open shared object file: No such file or directory


Creating a symlink from /usr/lib/libpcre.so to /usr/lib/libpcre.so.3 gets CodeIntel to load. Now, the question is, why is CodeIntel linking to a specific version of pcre? Wouldn't it be better to link to the copy of the library that doesn't have the version in its filename?
nerdshark
 
Posts: 5
Joined: Mon Aug 01, 2011 2:22 am

Re: CodeIntel ported from Open Komodo Editor

Postby Kronuz on Mon Aug 01, 2011 3:08 am

@nerdshark, the problem here is the pre-built linux binaries aren't compatible again... I'm not sure if Jon changed something and that's the reason or if your Linux is causing the problems :-(

I'll ask Jon to see if he changed anything (since he built the Linux and windows binaries for me). I wish Linux would use a standard python distribution as these problems would be reduced... In exchang for a couple extra megabytes at the most, I would think.
Kronuz
 
Posts: 98
Joined: Mon Feb 14, 2011 3:14 pm

PreviousNext

Return to Plugin Announcements

Who is online

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