Home Download Buy Blog Forum Support

CodeIntel ported from Open Komodo Editor

Re: CodeIntel ported from Open Komodo Editor

Postby ggayan on Tue Aug 09, 2011 5:20 am

Same error here with osx lion using latest version from github.
ggayan
 
Posts: 5
Joined: Mon Apr 18, 2011 10:17 pm

Re: CodeIntel ported from Open Komodo Editor

Postby alexrussell on Tue Aug 09, 2011 9:09 am

Kronuz, you don't seem to have had much luck getting these binaries compiled for you. I'm running Win7 here and, assuming it's a relatively easy process, will gladly compile a windows version of whatever you need. But I am in dire need of instructions, including and dependencies (linkables and also the compiler I need to use) if I'm to attempt it. And obviously based on the list of things I need I'll be able to tell you whether I'm going to be able to help or not. Let me know, anyway.
alexrussell
 
Posts: 74
Joined: Fri Jul 15, 2011 9:06 am

Re: CodeIntel ported from Open Komodo Editor

Postby jbrooksuk on Tue Aug 09, 2011 9:14 am

alexrussell wrote:Let me know, anyway.

Windows binaries! Please :( This would be so awesome!
jbrooksuk
 
Posts: 781
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: CodeIntel ported from Open Komodo Editor

Postby Kronuz on Tue Aug 09, 2011 1:57 pm

@squ1b3r, is that traceback from editing a css file?

@alexrussell, for the compiler you'll need Vusual Studio (probably it can be compiled with VS express version, but I'm not entirely sure). You'll need python with it's libraries and headers (same version and architecture as the one binded with Sulime Text 2 for windows) and you'll also need to compile libpcre (as a static library) since SilverCity needs to link against it. Next, doing "python setup.py build" should compile everything after going out to the console VS provides for building stuff (32 and 64 bits, depending). Please check "build.sh" which contains the steps for building stuff in Mac OS X and Linux, but I dont think I'm missing anything... except the extensions for windows libraries will be ".pyd", not ".so". If you can buil using this procedure, please post about it here. Consider building both 32 and 64 bits libraries if you can.

For building under Linux, you'll have to run build.sh, but the only catch is you'll need to compile python yourself with UCS-4 (for 4 bytes Unicode strings)... also, in Linux, you'll also have to preferably build libpcre yourself too (as a static library) to avoid having it as an external dependency.

Please, if anyone can build these for 32 and 64 bits architectures in these platforms, it would be very much appreciated.
Kronuz
 
Posts: 98
Joined: Mon Feb 14, 2011 3:14 pm

Re: CodeIntel ported from Open Komodo Editor

Postby dsarch on Tue Aug 09, 2011 2:57 pm

Hello @kronuz,

I tried to build it on a Ubuntu 11.04 machine:

Code: Select all
(11:52:01) - douglas at shoryuken in src
$ uname -a
Linux shoryuken 2.6.38-10-generic-pae #46-Ubuntu SMP Tue Jun 28 16:54:49 UTC 2011 i686 i686 i386 GNU/Linux

(11:53:12) - douglas at shoryuken in src
$ cat /etc/issue
Ubuntu 11.04 \n \l


And im having these problems:

Code: Select all
(11:51:43) - douglas at shoryuken in src
$ ./build.sh &> build_problems.log


Here are the link to a paste of the log ( in short, im having problems with LexTCL.cxx or something like that).

http://paste.archlinux-br.org/1784

I tried to look in the openkomodo code, but seems it is very different from SublimeCodeIntel (im talking about contrib/patches/scintilla).

Is there something else that i can do ?

Thanks !
dsarch
 
Posts: 62
Joined: Tue May 03, 2011 2:31 am

Re: CodeIntel ported from Open Komodo Editor

Postby Kronuz on Tue Aug 09, 2011 3:53 pm

@dsarch, try again, but this time delete that LexTCL.cxx file. There should be a LexTcl.cxx (note lowercases) but not a LexTCL.cxx. I think I forgot to delete it in the build.sh (after copying the files from "src" for scintilla)
Kronuz
 
Posts: 98
Joined: Mon Feb 14, 2011 3:14 pm

Re: CodeIntel ported from Open Komodo Editor

Postby squ1b3r on Tue Aug 09, 2011 4:35 pm

Kronuz wrote:@squ1b3r, is that traceback from editing a css file?


No. I've got it on start of ST2
squ1b3r
 
Posts: 45
Joined: Fri Feb 11, 2011 6:35 am

Re: CodeIntel ported from Open Komodo Editor

Postby dsarch on Tue Aug 09, 2011 5:42 pm

Thanks @kronuz,

It worked =)

I added this line code after line 16 in build.sh:

Code: Select all
find . -name "LexTCL*" | xargs rm


Then i just ./build.sh and it worked - the problem was the LexTCL.cxx file that comes from scintilla (which is unpacked everytime build.sh runs).

How do you want me to send the libs to you ?

Thanks again for the hard work !
dsarch
 
Posts: 62
Joined: Tue May 03, 2011 2:31 am

Re: CodeIntel ported from Open Komodo Editor

Postby dsarch on Tue Aug 09, 2011 6:03 pm

Hello @kronuz,

Also to make it work (i dont care for css support now), i had to comment these lines (17-21):

Code: Select all
  9 class _CSSLexerTemplate(Lexer.Lexer):                                         
10     def __init__(self, properties):                                           
11         self._properties = properties                                         
12         self._lexer = find_lexer_module_by_id(SCLEX_CSS)                       
13         self._keyword_lists = [                                               
14             WordList(Keywords.css_keywords),                                   
15             WordList(Keywords.css_pseudo_classes),                             
16             WordList(Keywords.css_keywords_2),                                 
17             #WordList(Keywords.css_properties_3),                             
18             #WordList(Keywords.css_pseudo_elements),                           
19             #WordList(Keywords.css_browser_specific_properties),               
20             #WordList(Keywords.css_browser_specific_pseudo_classes),           
21             #WordList(Keywords.css_browser_specific_pseudo_elements),


In SublimeCodeIntel/libs/SilverCity/CSS.py.

Also, i just noticed i can skip css using this config:

Code: Select all
"codeintel_disabled_languages": ['css']


Thanks !
dsarch
 
Posts: 62
Joined: Tue May 03, 2011 2:31 am

Re: CodeIntel ported from Open Komodo Editor

Postby alexrussell on Wed Aug 10, 2011 8:31 am

Kronuz wrote:@squ1b3r, is that traceback from editing a css file?

@alexrussell, for the compiler you'll need Vusual Studio (probably it can be compiled with VS express version, but I'm not entirely sure). You'll need python with it's libraries and headers (same version and architecture as the one binded with Sulime Text 2 for windows) and you'll also need to compile libpcre (as a static library) since SilverCity needs to link against it. Next, doing "python setup.py build" should compile everything after going out to the console VS provides for building stuff (32 and 64 bits, depending). Please check "build.sh" which contains the steps for building stuff in Mac OS X and Linux, but I dont think I'm missing anything... except the extensions for windows libraries will be ".pyd", not ".so". If you can buil using this procedure, please post about it here. Consider building both 32 and 64 bits libraries if you can.

For building under Linux, you'll have to run build.sh, but the only catch is you'll need to compile python yourself with UCS-4 (for 4 bytes Unicode strings)... also, in Linux, you'll also have to preferably build libpcre yourself too (as a static library) to avoid having it as an external dependency.

Please, if anyone can build these for 32 and 64 bits architectures in these platforms, it would be very much appreciated.


Eep, I think that might end up being a bit too much for me to do. Was kinda hoping download and install gcc (or whatever), run build.bat or something! I'll have a go at downloading VS etc.
alexrussell
 
Posts: 74
Joined: Fri Jul 15, 2011 9:06 am

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 12 guests