Coder Social home page Coder Social logo

sublimecodeintel / sublimecodeintel Goto Github PK

View Code? Open in Web Editor NEW
5.1K 157.0 528.0 53.86 MB

💡 Full-featured code intelligence and smart autocomplete for Sublime Text

Home Page: https://www.sublimecodeintel.com

License: Other

Python 100.00%
codeintel intellisense autocomplete code-intel intelli-sense auto-complete code-navigation snippets sublime-text

sublimecodeintel's Introduction

SublimeCodeIntel

This Code Intelligence plugin for Sublime Text provides an interface to CodeIntel. CodeIntel is a code intelligence engine that was ported from Open Komodo Editor to a stand-alone Python package.

CodeIntel supports all the languages Komodo Editor supports for Code Intelligence (CIX, CodeIntel2) and a few others:

ActionScript, Django, Docker, EJS, epMojo, HTML, KomodoSnippet, LaravelBlade, Mason, Mustache, MXML, PHP, R, reStructuredText, RHTML, Smarty, TracWiki, TemplateToolkit, Twig, XBL, XML, XSLT, XUL, Python, Python3, Ruby, Perl, Go, ECMAScript, JavaScript, Node.js, CSS, SCSS, Sass, Less, HTML5, Tcl, C/C++, Objective-C.

The plugin provides the following features:

  • Jump to Symbol Definition - Jump to the file and line of the definition of a symbol.
  • Imports autocomplete - Shows autocomplete with the available modules/symbols in real-time.
  • Function Call tooltips - Displays information in the status bar about the working function.

The package should work on all three platforms (MacOS X, Windows, and Linux).

Click here to lend your support to CodeIntel/SublimeCodeIntel and make a donation!

CodeIntel Installation

Before installing SublimeCodeIntel, you must ensure that CodeIntel is installed on your system. To install CodeIntel, do the following:

  1. Install Python and pip (Python 3 requires pip3).

  2. Install CodeIntel by typing the following in a terminal:

    # For Python 2
    [sudo] pip install --upgrade --pre CodeIntel
    
    # For Python 3
    [sudo] pip3 install --upgrade --pre CodeIntel
    

Note: SublimeCodeIntel requires CodeIntel 2.0 or later.

Plugin Installation

With the Package Control plugin: The easiest way to install SublimeCodeIntel is through Package Control, which can be found at this site: http://wbond.net/sublime_packages/package_control

Once you install Package Control, restart Sublime Text and bring up the Command Palette (Command+Shift+P on OS X, Control+Shift+P on Linux/Windows). Select "Package Control: Install Package", wait while Package Control fetches the latest package list, then select SublimeCodeIntel when the list appears. The advantage of using this method is that Package Control will automatically keep SublimeCodeIntel up to date with the latest version.

**Without Git:** Download the latest source from GitHub and copy the whole directory into the Packages directory.

**With Git:** Clone the repository in your Sublime Text Packages directory, located somewhere in user's "Home" directory:

git clone git://github.com/SublimeCodeIntel/SublimeCodeIntel.git

The "Packages" packages directory is located differently on different platforms. To access the directory use:

  • OS X:

    Sublime Text -> Preferences -> Browse Packages...
    
  • Linux:

    Preferences -> Browse Packages...
    
  • Windows:

    Preferences -> Browse Packages...
    

Using

  • Start typing code, as usual, autocomplete will pop up whenever it's available. SublimeCodeIntel will also allow you to jump around symbol definitions even across files with just a click ..and back.

    For Mac OS X:

    • Jump to definition = Control+Click
    • Jump to definition = Control+Command+Alt+Up
    • Go back = Control+Command+Alt+Left
    • Manual Code Intelligence = Control+Shift+space

    For Linux:

    • Jump to definition = Super+Click
    • Jump to definition = Control+Super+Alt+Up
    • Go back = Control+Super+Alt+Left
    • Manual Code Intelligence = Control+Shift+space

    For Windows:

    • Jump to definition = Alt+Click
    • Jump to definition = Control+Windows+Alt+Up
    • Go back = Control+Windows+Alt+Left
    • Manual Code Intelligence = Control+Shift+space

Don't despair! The first time you use it it needs to build some indexes and it can take more than a few seconds.

It just works!

Configuring

For adding additional library paths (Django and extra libs paths for Python or extra paths to look for .js files for JavaScript for example), either add those paths as folders to your Sublime Text project or modify SublimeCodeIntel User settings. User settings can be configured in the User File Settings:

Do NOT edit the default SublimeCodeIntel settings. Your changes will be lost when SublimeCodeIntel is updated. ALWAYS edit the user SublimeCodeIntel settings by selecting "Preferences->Package Settings->SublimeCodeIntel->Settings - User". Note that individual settings you include in your user settings will completely replace the corresponding default setting, so you must provide that setting in its entirety.

Available settings:

  • A list of disabled languages can be set using "disabled_languages". Ex. "disabled_languages": ['css']
  • Live autocomplete can be disabled by setting "live" to false.
  • Information for more settings is available in the SublimeCodeIntel.sublime-settings file in the package.

Troubleshooting

If you are having problems or SublimeCodeIntel seems slow/unresponsive/non-working, there are some things you should try:

  1. Make sure the SublimeCodeIntel is not being treated as an ignored package.
  2. Regenerate indexing database.
  3. Open a new issue.

Ignored package?

To make sure Sublime Text didn't add SublimeCodeIntel to the list of ignored packages (this happens some times when packages are being installed/upgraded):

  • Select the Preferences/Settings - Default menu item
  • Find the ignored_packages setting and remove SublimeCodeIntel from the list.

Regenerate index

To force re-indexation of the code intelligence database you need to follow these steps:

  • Close Sublime Text
  • Open a terminal or navigate through your directories to find the directory ~/.codeintel that contains codeintel.log, VERSION and the directory db. In Windows, this should be at %userprofile%\.codeintel.
  • Delete the whole directory ~/.codeintel and all of its content. Particularly, if you want to delete only the indexes, the code intelligence database indexes are located inside ~/.codeintel/db.
  • Start Sublime Text
  • Try doing some code intelligence with the files in your project and enjoy a clean re-indexing! (Remember that the database is being regenerated with this procedure, so you'll see it takes some time to autocomplete the first few times, you'll have to wait a bit for things to be fast again)

Opening an issue

If the problems persist after trying the above solutions, open a new issue in https://github.com/SublimeCodeIntel/SublimeCodeIntel/issues/

When opening new issues, please check no other issues exist which report the same problem and provide all the messages from the Sublime Text console (the console is accessed via the ctrl+` shortcut or the View > Show Console menu) and the ~/.codeintel/codeintel.log file (%userprofile%\.codeintel\codeintel.log in Windows) as well as mentioning the Sublime Text version, the platform you are using and the languages you are using the code intelligence on.

What's New

v3.0.0 (unreleased, beta):

  • Uses CodeIntel as an OOP command and package. Needs to install CodeIntel with pip: pip install --upgrade --pre CodeIntel

v2.2.0 (2015-03-26):

  • Fixed issue with tabs and autocomplete

License

The plugin is based on code from the Open Komodo Editor and has an MPL license.

Ported from Open Komodo by German M. Bravo (Kronuz).

sublimecodeintel's People

Contributors

akashagrawal03 avatar alin23 avatar arsham avatar brunobord avatar daris avatar douglas avatar dsrw avatar elsassph avatar frietz avatar ghedsouza avatar iurisilvio avatar ivancho1707 avatar jamuspsi avatar julianeberius avatar kronuz avatar krya avatar maciej-filip-sz avatar masterkain avatar mikelambert avatar mmorearty avatar mortonfox avatar optilude avatar rhynodesigns avatar silent1mezzo avatar sindrig avatar singingwolfboy avatar wbond avatar wizza-smile avatar wronglink avatar yuvanksoni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sublimecodeintel's Issues

Why did SublimeCodeIntel end up scanning my Trash?

On MacOSX, it ended up scanning my trash. I know there could be crazy symlinks in my global npm registry, but can we have some way to specify reasonable limits.
It basically started scanning my entire hard drive I believe.

PHP classes in the same namespace are not detected correctly

Assuming that AppWrapper is in the \My\Silex\Application namespace as well, the following confuses the code hinting:

<?php
namespace My\Silex\Application;

use \Silex\Application;
use \Silex\ControllerProviderInterface;
use \Silex\ControllerCollection;

class AppControllerProvider implements ControllerProviderInterface
{
    public function connect(Application $appOrig)
    {
        $app = new AppWrapper($appOrig);
       // $app-> triggers "could not resolve first part of 'AppWrapper'
    }
}

Meanwhile, the following works just fine (but is not and should not be required):

<?php
namespace My\Silex\Application;

use \Silex\Application;
use \Silex\ControllerProviderInterface;
use \Silex\ControllerCollection;

class AppControllerProvider implements ControllerProviderInterface
{
    public function connect(Application $appOrig)
    {
        $app = new \My\Silex\Application\AppWrapper($appOrig);
        // $app-> triggers code completion as expected
    }
}

Sublime CodeIntel with package control

I have installed Sublime CodeIntel through package control but it is not working I tried
"codeintel_live": true as well. My package directory on Ubuntu look like and there is a config file in .codeintel as instructed.
/home/abhi/.config/sublime-text-2/Packages/SublimeCodeIntel/.codeintel

I also change key bindings but no clue what is happening.

alt+click doesn't work

Hi!

I've installed libpcre++-dev and run build.sh.
but alt+click still doesn't work.(only work once[I have no idea how I get it~]. but in most of the cases it just change the mouse icon into a hand, and start to move the window following the mouse.)

autocomplete doesn't work too. it just says "Processing PHP,please wait." and I've been waiting for rather long time .

I would like to check the log file. I just don't know where to find it.

Thanks.

Frequently hangs until ALT is pressed on Ubuntu 11.04

When I'm coding in Python, I've noticed that a lot of the time SublimeCodeIntel locks up while I'm typing. The strange this is that I can still hit CTRL+S to save and have the file actually get saved, but nothing gets updated on the screen. However, I recently realized that if I hit "ALT", it immediately causes the screen to get updated. Not sure if this is a SublimeCodeIntel issue or a ST2 issue, but it can be quite frustrating (especially since your plugin is so frequently useful otherwise).

Won't scan my projects .codeintel/config file

I've setup a customized .codeintel/config file in my projects root directory which gives one additional pythonExtraPaths entry. Watching the log in ~/.codeintel/codeintel.log it seems like my current python environment get scanned (which python), but not the paths defined in project_dir/.codeintel/config. Any suggestions?

Alt+Clicking breaks after a while on js files

After installing it worked fine. On two separate install I saw the following after reopening Sublime Text a few times:
Alt+Click doesn't move the cursor, but it seems to have found out where it should move it. If I click on an undefined variable it says, that it could find it.

Ctrl+space causes crash

Open a new file, type:

var hello;
he

...then hit ctrl+space. Sublime Text crashes.

OS: OSX 10.7
Sublime: 2111

Can't Use on Fedora 11 64-bit

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?

no support for JS module pattern

Visual Studio Intellisense vs. SublimeCodeIntel:

VS finds "bar":

Visual Studio

SublimeCodeIntel does not find "bar":

SublimeCodeIntel

Will this be supported in the future?

Thanks,
Hans

Readme linux location for packages

For my configuration (Ubuntu 11.04) the path of the packages is:

~/.config/sublime-text-2/Packages

I dont know if other people / setups can confirm

unicode issues

after installing SublimeCodeIntel, this started filling up the console

Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/init.py", line 776, in emit
msg = self.format(record)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/init.py", line 654, in format
return fmt.format(record)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/init.py", line 436, in format
record.message = record.getMessage()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/init.py", line 306, in getMessage
msg = msg % self.args
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 119: ordinal not in range(128)

Huge memory usage when editing a Javascript file

I have been having trouble when editing a .js file. I usually work in python and everything is fine but when I switch to a .js file I notice the CPU and memory start getting chewed up. Sublime Text 2 grows to using all of the available memory (over 2GB of memory in ~30 seconds). The app becomes sluggish and basically grinds to a halt. I added "codeintel_disabled_languages": ['Javascript'] to my .codeintel/config and the problem stopped. Is there any information I can give you that would help diagnose this?

When it starts going crazy the last lines of the ~/.codeintel/codeintel.log file says:

****************************************
Finished scanning, updating all scope names
Updating all class constructor names

Any ideas?

Index out of range

I constantly get the following error:

Traceback (most recent call last):
  File ".\sublime_plugin.py", line 146, in on_selection_modified
IndexError: Index out of range
Traceback (most recent call last):
  File ".\sublime_plugin.py", line 146, in on_selection_modified
IndexError: Index out of range
Traceback (most recent call last):
  File ".\sublime_plugin.py", line 146, in on_selection_modified
IndexError: Index out of range
Writing file /C/xampp/htdocs/management/inc/ui/header.php with encoding UTF-8

This means I never get any code intel, running on Windows 7 Pro 64bit. This works absolutely brilliantly on my MacBook Pro though :)

CSS autocompletion

Hi, loving the development so far of the plugin. With latest updates of this plugin and sublime text its really coming together. One thing I noticed is that the css autocompletion is not working very nicely. Is there a way to turn off codeintel for css files?

Problems are autocompletions trigger when typing the minus character so for example, when typing 'font-size' I get an automatic autocompletion of 'font-weight' instead when I get to the minus character. This makes typing css very difficult.

Thanks!

CPU usage

Hi there,

I'm testing out this plugin on a PHP Drupal project and noticed high CPU usage for a long time. Is this usual? I presume its building the index but its been going for around 5 minutes so far. Looking in ~/.codeintel/db/php I see a lot of files, again the index? Do I just need to be patient?

Assuming this is the case, once it finishes can I expect to see code completions and calltips (docblock text etc) for both my PHP and Drupal files (.php, .module, .inc etc)?

Thanks for your time,
Tanc

Add nodejs support for JavaScript

I'm the author of https://github.com/tanepiper/SublimeText-Nodejs

I've been looking to support better code intel for nodejs, but rather than re-invent the wheel potentially I'm thinking it might be better adding support in the package, while I keep my stuff more high level (code completions, snippets, NPM and run/build support).

I would be happy to help integrate this, but not sure where to start.

AttributeError on Completition show

I'm getting strange error each time completition list should appear. I'm writing simple Python code like

a=5
a.

When i enter comma, i'm getting this error:

Exception AttributeError: "'ProcessOpen' object has no attribute '_child_created'" in <bound method ProcessOpen.del of <process.ProcessOpen object at 0x0000000008C93908>> ignored

and don't see a list of object methods.

SublimeCodeIntel is making Sublime undo changes char by char

Hello @Kronuz,

For some reason, SublimeCodeIntel is making Sublime undo changes char by char (like textmate does).

When removing SublimeCodeIntel, undo changes works as expected, this is a major issue and it is really problematic to undo looooooooooog changes char by char.

Thanks a lot !

Massive log file not being reset

As far as I can see (from the Sublime forums and comments here on github), the log file is supposed to be cleared/reset when you restart Sublime. My log file is currently sitting at just under 750MB, and does not appear to be cleared when I restart Sublime. I'm running it on Windows XP (the IT department wouldn't let me have a linux machine!).

Autocomplete crashes program

I was having the same problem as in issue 14 (display hangs until pressing "alt" key), but I removed and reinstalled the plugin and that problem seems to have gone away.

However, sublime text still crashes when I try to autocomplete certain items.

Here are two things I have found that will do it every time without fail. Create a new file of any type (txt, rb, py, sql, etc) doesn't matter which.

Example 1

type the following

:belongs_to

go to a new line and start to type it again. Press ctrl+space before typing it all out. Instant crash for Sublime Text.

Example 2

type the following

def happy_day
puts x+y
end

now go to a new line and start to time in the method name

hap.....

press ctrl+space to autocomplete. Sublime Text crashes.

I'm programming in ruby, but as said before it doesn't seem to matter whether I am in an .rb file or otherwise. I can type the same text in a plain text file and get the crash.

Here is the output from Sublime at the time of the crash

*** glibc detected *** sublime_text: corrupted double-linked list: 0xb2f1ea60 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x6b961)[0xb6c1b961]
/lib/i386-linux-gnu/libc.so.6(+0x6d308)[0xb6c1d308]
/lib/i386-linux-gnu/libc.so.6(cfree+0x6d)[0xb6c2041d]
/usr/lib/i386-linux-gnu/libstdc++.so.6(_ZdlPv+0x21)[0xb6dd74d1]
sublime_text(_ZN13filter_sourceD0Ev+0x7b)[0x82a825b]
sublime_text(_ZN21auto_complete_handler4initEbbb+0x1935)[0x83e1195]
sublime_text(_ZN20skyline_text_control25show_auto_complete_windowEb+0x83)[0x83c67e3]
sublime_text(_ZN21auto_complete_command3runERK5value+0x78)[0x83bd978]
sublime_text(_ZN15message_handler14handle_messageE15ui_message_typePv+0x1b2)[0x82835a2]
sublime_text(_Z31route_message_using_input_focus15ui_message_typePvP7control+0x50)[0x82b4720]
sublime_text(_ZN6window12handle_eventEP10px_event_t+0xb05)[0x8275f55]
sublime_text[0x84c87a6]
sublime_text(_Z8on_eventP10_GtkWidgetP9_GdkEventPv+0x754)[0x84cf9b4]
/usr/lib/libgtk-x11-2.0.so.0(+0x135a14)[0xb75d6a14]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x17a)[0xb707976a]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(+0x202be)[0xb708d2be]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x54f)[0xb709553f]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x32)[0xb70958e2]
/usr/lib/libgtk-x11-2.0.so.0(+0x26a7be)[0xb770b7be]
/usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0x1a3)[0xb75d4c73]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x27f)[0xb75d4eff]
/usr/lib/libgdk-x11-2.0.so.0(+0x56a0a)[0xb745ea0a]
/lib/i386-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x1c8)[0xb6fbe6a8]
/lib/i386-linux-gnu/libglib-2.0.so.0(+0x42e58)[0xb6fbee58]
/lib/i386-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x15b)[0xb6fbf40b]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb9)[0xb75d3c49]
sublime_text(_Z17px_run_event_loopv+0xe)[0x84ca25e]
sublime_text(main+0x427)[0x8384bc7]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0xb6bc6e37]
sublime_text[0x82316e1]
======= Memory map: ========
08048000-08935000 r-xp 00000000 08:05 1061325 /home/raklet/Sublime-Text-2/sublime_text
08935000-08936000 r--p 008ec000 08:05 1061325 /home/raklet/Sublime-Text-2/sublime_text
08936000-08996000 rw-p 008ed000 08:05 1061325 /home/raklet/Sublime-Text-2/sublime_text
08996000-089a5000 rw-p 00000000 00:00 0
09e41000-0c0a5000 rw-p 00000000 00:00 0 [heap]
aec00000-aec24000 rw-p 00000000 00:00 0
aec24000-aed00000 ---p 00000000 00:00 0
aedfe000-aedff000 ---p 00000000 00:00 0
aedff000-af5ff000 rw-p 00000000 00:00 0
af5ff000-af600000 ---p 00000000 00:00 0
af600000-afe00000 rw-p 00000000 00:00 0
afe00000-afeff000 rw-p 00000000 00:00 0
afeff000-aff00000 ---p 00000000 00:00 0
afff9000-afffa000 ---p 00000000 00:00 0
afffa000-b07fa000 rw-p 00000000 00:00 0
b07fa000-b07fe000 r-xp 00000000 08:05 2230135 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
b07fe000-b07ff000 r--p 00003000 08:05 2230135 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
b07ff000-b0800000 rw-p 00004000 08:05 2230135 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
b0800000-b09e5000 rw-p 00000000 00:00 0
b09e5000-b0a00000 ---p 00000000 00:00 0
b0a00000-b0c00000 rw-p 00000000 00:00 0
b0c00000-b0cfe000 rw-p 00000000 00:00 0
b0cfe000-b0d00000 ---p 00000000 00:00 0
b0d5a000-b1100000 rw-p 00000000 00:00 0
b1100000-b11ff000 rw-p 00000000 00:00 0
b11ff000-b1200000 ---p 00000000 00:00 0
b1200000-b1300000 rw-p 00000000 00:00 0
b1300000-b1400000 rw-p 00000000 00:00 0
b1489000-b148b000 r-xp 00000000 08:05 2363132 /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b148b000-b148c000 r--p 00001000 08:05 2363132 /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b148c000-b148d000 rw-p 00002000 08:05 2363132 /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b14ce000-b14d9000 r-xp 00000000 08:05 2753422 /lib/i386-linux-gnu/libudev.so.0.11.1
b14d9000-b14da000 r--p 0000a000 08:05 2753422 /lib/i386-linux-gnu/libudev.so.0.11.1
b14da000-b14db000 rw-p 0000b000 08:05 2753422 /lib/i386-linux-gnu/libudev.so.0.11.1
b14ea000-b14ee000 r-xp 00000000 08:05 1707407 /home/raklet/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86/sgmlop.so
b14ee000-b14ef000 r--p 00003000 08:05 1707407 /home/raklet/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86/sgmlop.so
b14ef000-b14f0000 rw-p 00004000 08:05 1707407 /home/raklet/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86/sgmlop.so
b14f0000-b1513000 r-xp 00000000 08:05 2237655 /usr/lib/gio/modules/libgvfsdbus.so
b1513000-b1514000 r--p 00023000 08:05 2237655 /usr/lib/gio/modules/libgvfsdbus.so
b1514000-b1515000 rw-p 00024000 08:05 2237655 /usr/lib/gio/modules/libgvfsdbus.so
b1515000-b154f000 r-xp 00000000 08:05 2231221 /usr/lib/libibus.so.2.0.0
b154f000-b1550000 r--p 00039000 08:05 2231221 /usr/lib/libibus.so.2.0.0
b1550000-b1551000 rw-p 0003a000 08:05 2231221 /usr/lib/libibus.so.2.0.0
b1551000-b158c000 r-xp 00000000 08:05 2754209 /lib/i386-linux-gnu/libdbus-1.so.3.5.4
b158c000-b158d000 r--p 0003a000 08:05 2754209 /lib/i386-linux-gnu/libdbus-1.so.3.5.4
b158d000-b158e000 rw-p 0003b000 08:05 2754209 /lib/i386-linux-gnu/libdbus-1.so.3.5.4
b158e000-b158f000 ---p 00000000 00:00 0
b158f000-b1d8f000 rw-p 00000000 00:00 0
b1d8f000-b1d90000 ---p 00000000 00:00 0
b1d90000-b2590000 rw-p 00000000 00:00 0
b2590000-b2591000 ---p 00000000 00:00 0
b2591000-b2d91000 rw-p 00000000 00:00 0
b2d91000-b2d95000 r-xp 00000000 08:05 2768713 /lib/i386-linux-gnu/libnss_dns-2.13.so
b2d95000-b2d96000 r--p 00004000 08:05 2768713 /lib/i386-linux-gnu/libnss_dns-2.13.so
b2d96000-b2d97000 rw-p 00005000 08:05 2768713 /lib/i386-linux-gnu/libnss_dns-2.13.so
b2d97000-b2d99000 r-xp 00000000 08:05 2754742 /lib/libnss_mdns4_minimal.so.2
b2d99000-b2d9a000 r--p 00001000 08:05 2754742 /lib/libnss_mdns4_minimal.so.2
b2d9a000-b2d9b000 rw-p 00002000 08:05 2754742 /lib/libnss_mdns4_minimal.so.2
b2d9b000-b2dae000 r-xp 00000000 08:05 2237305 /usr/lib/gvfs/libgvfscommon.so
b2dae000-b2daf000 r--p 00012000 08:05 2237305 /usr/lib/gvfs/libgvfscommon.so
b2daf000-b2db0000 rw-p 00013000 08:05 2237305 /usr/lib/gvfs/libgvfscommon.so
b2db0000-b2e10000 rw-s 00000000 00:04 24444933 /SYSV00000000 (deleted)
b2e10000-b2e5a000 r--p 00000000 08:05 2098374 /usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf
b2e5a000-b2ee9000 r--p 00000000 08:05 3018788 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
b2ee9000-b2efe000 r-xp 00000000 08:05 2231678 /usr/lib/libdbusmenu-glib.so.3.0.14
b2efe000-b2eff000 r--p 00014000 08:05 2231678 /usr/lib/libdbusmenu-glib.so.3.0.14
b2eff000-b2f00000 rw-p 00015000 08:05 2231678 /usr/lib/libdbusmenu-glib.so.3.0.14
b2f00000-b2fe0000 rw-p 00000000 00:00 0
b2fe0000-b3000000 ---p 00000000 00:00 0
b3000000-b3004000 r-xp 00000000 08:05 2238919 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
b3004000-b3005000 r--p 00003000 08:05 2238919 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
b3005000-b3006000 rw-p 00004000 08:05 2238919 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
b3006000-b3014000 r-xp 00000000 08:05 2237841 /usr/lib/libdbusmenu-gtk.so.3.0.14
b3014000-b3015000 r--p 0000d000 08:05 2237841 /usr/lib/libdbusmenu-gtk.so.3.0.14
b3015000-b3016000 rw-p 0000e000 08:05 2237841 /usr/lib/libdbusmenu-gtk.so.3.0.14
b3016000-b30b1000 r--p 00000000 08:05 3018789 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
b30b1000-b3100000 r--p 00000000 08:05 3018791 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
b3100000-b31ff000 rw-p 00000000 00:00 0
b31ff000-b3200000 ---p 00000000 00:00 0
b3204000-b321e000 r--s 00000000 08:05 2624405 /usr/share/mime/mime.cache
b321e000-b321f000 r--s 00000000 08:05 1050794 /home/raklet/.local/share/mime/mime.cache
b3220000-b3224000 r-xp 00000000 08:05 2230219 /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so
b3224000-b3225000 r--p 00003000 08:05 2230219 /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so
b3225000-b3226000 rw-p 00004000 08:05 2230219 /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so
b3226000-b3227000 r--s 00000000 08:05 1463274 /var/cache/fontconfig/26de28bc8622bbc1fb67fd234c21975f-le32d4.cache-3
b3227000-b3228000 r--s 00000000 08:05 1452707 /var/cache/fontconfig/c05880de57d1f5e948fdfacc138775d9-le32d4.cache-3
b3228000-b322e000 r--s 00000000 08:05 1441861 /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le32d4.cache-3
b322e000-b3230000 r--s 00000000 08:05 1452688 /var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-le32d4.cache-3Aborted

Persistently crashes ST2 displaying completions for JavaScript Math object

Not sure if this is the right place for this, or whether this should be an ST2 bug, so I'm going for both places.

With SublimeCodeIntel enabled, ST 2 crashes when displaying completions for the JavaScript Math object .

Steps to reproduce:

  1. Open a new file.
  2. Set JavaScript syntax.
  3. Type Math. to list completions for the Math object.
  4. App crashes.

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008

Any idea whether SublimeCodeIntel is doing something dangerous, or whether the fault is with ST2 somewhere?

Interested in moving this over to Sublime org?

Do you have reservations about moving this package over to the Sublime org? I know you are a member and have contributed other packages over there as well.

If you are concerned about too many people directly contributing to it, then I understand that point. I have run into a couple of issues with that as well. I am totally up for creating a repo that you alone could own, or even a small team, if you want others to be able to contribute directly as well. Otherwise, other devs can just use pull requests to give suggested patches.

It is very handy to be able to go to one place on GitHub and see a collection of good and handy extensions for Sublime. If you want to keep things the way they are though, I understand. You have plenty of watchers as it is.

Thanks for contributing good stuff to Sublime in general!

Cheers,
Greg

Not seeing completions in python

I'm editing a file of tests in sublime, and hitting Cmd-J doesn't trigger anything (I see a quick message flash in the statusbar, but that's it).

Is this indexing? Is the structure of my project not right? Do I need to let it know what virtualenv I'm in?

Cheers,
-d

ImportError: Could not find a suitable _SilverCity binary for your platform and architecture.

Python code intel is broken with the current version (at least on 64-bit Ubuntu 11.04). I get the following error:

Traceback (most recent call last):
File "./sublime_plugin.py", line 57, in reload_plugin
File "./python_codeintel.py", line 86, in
from codeintel2.common import *
File "/home/dblanchard/Dropbox/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/common.py", line 76, in
import SilverCity
File "/home/dblanchard/Dropbox/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/init.py", line 1, in
import _SilverCity
File "/home/dblanchard/Dropbox/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/SilverCity/_SilverCity.py", line 25, in
raise ImportError("Could not find a suitable _SilverCity binary for your platform and architecture.")

Objective J, SASS, Coffee

Hi,

Do you plan to improve your CodeIntel for other languages, e.g: Objective J, SASS, SCSS, CoffeScript etc?

Windows: Keybinding ctrl+f3 hide standard ST2 keybinding

The ctrl+f3 keybinding steal the find_under keybinding from ST2 in Windows.
And find_under is probably in the top ten of the most used command is ST2, strange nobody ask it before...

SublimeCodeIntel:
{ "keys": ["ctrl+f3"], "command": "goto_python_definition" }

ST2:
{ "keys": ["ctrl+f3"], "command": "find_under" }

AutoComplete disappears after backspace

First, I'm in love with this plugin. It's a miracle in so many ways.

If I'm using the python autocomplete, if I backspace at any point during the autocompletion, I can no longer get the autocomplete back, even if I hit ctrl+space. For example:

Type:
"import os
os.lis" and you should have the popup listing the possible endings. If you hit backspace, however, after os.li there will be no autocomplete and no way to get it back. Is this intentional?

Error at start build.sh

sks@sks-laptop:~/.config/sublime-text-2/Packages/SublimeCodeIntel/src$ . build.sh 
Archive:  sgmlop-1.1.1-20040207.zip
  inflating: sgmlop-1.1.1-20040207/doctest.py  
  inflating: sgmlop-1.1.1-20040207/PKG-INFO  
  inflating: sgmlop-1.1.1-20040207/README  
  inflating: sgmlop-1.1.1-20040207/selftest.py  
  inflating: sgmlop-1.1.1-20040207/setup.py  
  inflating: sgmlop-1.1.1-20040207/sgmllib.py  
  inflating: sgmlop-1.1.1-20040207/sgmlop.c  
  inflating: sgmlop-1.1.1-20040207/sgmlop.css  
  inflating: sgmlop-1.1.1-20040207/xmllib.py  
running build
running build_ext
building 'sgmlop' extension
creating build
creating build/temp.linux-i686-2.7
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DPy_UNICODE_SIZE=4 -fPIC -I/usr/include/python2.7 -c sgmlop.c -o build/temp.linux-i686-2.7/sgmlop.o
sgmlop.c: В функции «attrparse»:
sgmlop.c:1234:9: предупреждение: при передаче аргумента 1 «PyString_FromStringAndSize»: указуемые типы различаются знаковостью [-Wpointer-sign]
/usr/include/python2.7/stringobject.h:62:24: замечание: expected «const char *» but argument is of type «const unsigned char *»
sgmlop.c:1285:17: предупреждение: при передаче аргумента 1 «PyString_FromStringAndSize»: указуемые типы различаются знаковостью [-Wpointer-sign]
/usr/include/python2.7/stringobject.h:62:24: замечание: expected «const char *» but argument is of type «const unsigned char *»
sgmlop.c: В функции «attrexpand»:
sgmlop.c:1356:9: предупреждение: при передаче аргумента 1 «PyString_FromStringAndSize»: указуемые типы различаются знаковостью [-Wpointer-sign]
/usr/include/python2.7/stringobject.h:62:24: замечание: expected «const char *» but argument is of type «const unsigned char *»
sgmlop.c:1398:17: предупреждение: при передаче аргумента 1 «PyString_FromStringAndSize»: указуемые типы различаются знаковостью [-Wpointer-sign]
/usr/include/python2.7/stringobject.h:62:24: замечание: expected «const char *» but argument is of type «unsigned char *»
sgmlop.c: На верхнем уровне:
sgmlop.c:76:13: предупреждение: «copyright» определена, но нигде не используется [-Wunused-variable]
sgmlop.c:200:16: предупреждение: «wf_checker» определена, но нигде не используется [-Wunused-variable]
creating build/lib.linux-i686-2.7
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -DPy_UNICODE_SIZE=4 build/temp.linux-i686-2.7/sgmlop.o -o build/lib.linux-i686-2.7/sgmlop.so
/usr/lib/python2.7/distutils/dist.py:251: UserWarning: 'licence' distribution option is deprecated; use 'license'
  warnings.warn(msg)
running build
running build_py
creating build
creating build/lib.linux-i686-2.7
creating build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/__init__.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/DispatchHandler.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/HTMLGenerator.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/Keywords.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/LanguageInfo.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/Lexer.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/ScintillaConstants.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/Utils.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/CPP.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/CSS.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/HyperText.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/Java.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/NULL.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/Perl.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/Python.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/Ruby.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/SQL.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/Verilog.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/XML.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/XSLT.py -> build/lib.linux-i686-2.7/SilverCity
copying PySilverCity/SilverCity/YAML.py -> build/lib.linux-i686-2.7/SilverCity
running build_ext
building '_SilverCity' extension
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/PySilverCity
creating build/temp.linux-i686-2.7/PySilverCity/Src
creating build/temp.linux-i686-2.7/Lib
creating build/temp.linux-i686-2.7/Lib/Src
creating build/scintilla
creating build/scintilla/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DPy_UNICODE_SIZE=4 -fPIC -I../scintilla/src -I../scintilla/include -ILib/Src -I/usr/include/python2.7 -c PySilverCity/Src/PyLexerModule.cxx -o build/temp.linux-i686-2.7/PySilverCity/Src/PyLexerModule.o
gcc: error trying to exec 'cc1plus': execvp: Нет такого файла или каталога
error: command 'gcc' failed with exit status 1

CSS autocompletion without whitespace

I write CSS in the following format:

.style {
    color:#000;
}

However, the auto-complete options only appear after typing a whitespace character after the colon (:), so they don't appear for me as I enter no whitespace there. Is there a way to change this behaviour?

Would it be possible to view method arguments in autocomplete

At the moment I am using this mainly for javascript and when I create a string variable for example and autocomplete comes up it shows me the available methods I can call for example indexOf.

However it appears as indexOf (function). Would it be possible to expand 'function' to tell the user what the actual method arguments are so in this case it would be searchString and fromIndex?

Thanks

Monokai seems to display Monokai Bright

I'm working off of a Mac laptop and have noticed that the colors have been getting "white washed". I quit Sublime and tried it again and the color restored back to deep blacks and vivid text.

I also noticed that if I restart sublime while hooked up to a dvi to hdmi converter, the colors stay on Monokai Bright.

If I unhook the monitor, restart Sublime, I get the regular Monokai. Hooking up the monitor gives me the same Monokai. But if I were to restart Sublime at this point, I'm back to Monokai Bright.

Just something I noticed after I got this new convertor from monoprice:
http://www.monoprice.com/products/product.asp?p_id=5311

Feel free to ask for any other system information!

Other than that, great program! Thanks!

Breaking Sublime Text

Hi there!

I installed the plugin via Package Control using the discover command. It freezed ST. I forced it to quit. Then it was impossible to run it again. I delete CodeIntel folder package and all came back as it should be.

I also tried just by cloning the manually the repo and got the same behavior.

I can't report any log error since I couldn't see the ST console…

Any idea? Already knew? Did I do something wrong?

Function Parameter Hinting

This is more of a request than a bug...

How difficult would it be to amend the current plugin to also use parameter hinting for custom functions?

This is a very good function that ZEND IDE uses, maybe one to consider?

Relative imports breaks SublimeCodeIntel autocomplete

Hello @Kronuz,

When using relative imports like:

from .models import Model1, Model2

SublimeCodeIntel stops working with this message:

...could not find data for Python blob "os"

Which seems to be a citadel thing, is there anything i can do to help ? Test ?

Thanks for your efforts, is there a donate button ?

Constantly rebuilding index

For some reason the indexes are being updated every single time the popup opens, which is causing the popup to take a few seconds each time.

Is this a known issue? I'm on OS X Lion.

Completion auto popup not working correctly

Hi,

I'm new to Sublime Text 2.

I was told this plugin would make, among other things, make the completion list popup every time text is entered.

This is not the case.. Sometimes it fires with just 1 letter, sometimes it doesn't.
Sometimes it doesn't work when you write more that 1 letter.
Sometimes it only works it you write 5 letters.

It seems very erratic.

Is this supposed to work like this?

Thanks

build fails for OSX

first i hade to create a symlink to my gcc-4.2 compiler, can't you just use gcc instead of /usr/bin/gcc-4.2?

quadcore-imac:src dj$ . build.sh
Archive: sgmlop-1.1.1-20040207.zip
inflating: sgmlop-1.1.1-20040207/doctest.py
inflating: sgmlop-1.1.1-20040207/PKG-INFO
inflating: sgmlop-1.1.1-20040207/README
inflating: sgmlop-1.1.1-20040207/selftest.py
inflating: sgmlop-1.1.1-20040207/setup.py
inflating: sgmlop-1.1.1-20040207/sgmllib.py
inflating: sgmlop-1.1.1-20040207/sgmlop.c
inflating: sgmlop-1.1.1-20040207/sgmlop.css
inflating: sgmlop-1.1.1-20040207/xmllib.py
running build
running build_ext
building 'sgmlop' extension
creating build
creating build/temp.macosx-10.6-universal-2.6
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c sgmlop.c -o build/temp.macosx-10.6-universal-2.6/sgmlop.o
sgmlop.c: In function ‘attrparse’:
sgmlop.c:1234: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
sgmlop.c:1285: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
sgmlop.c: In function ‘attrexpand’:
sgmlop.c:1356: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
sgmlop.c:1398: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
sgmlop.c: At top level:
sgmlop.c:76: warning: ‘copyright’ defined but not used
sgmlop.c:200: warning: ‘wf_checker’ defined but not used
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin10-llvm-gcc-4.2': execvp: No such file or directory
sgmlop.c: In function ‘attrparse’:
sgmlop.c:1234: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
sgmlop.c:1285: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
sgmlop.c: In function ‘attrexpand’:
sgmlop.c:1356: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
sgmlop.c:1398: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
sgmlop.c: At top level:
sgmlop.c:76: warning: ‘copyright’ defined but not used
sgmlop.c:200: warning: ‘wf_checker’ defined but not used
lipo: can't figure out the architecture type of: /var/folders/CF/CFtkKROTFa4HITlgVqS4IE+++TI/-Tmp-//ccH5eP07.out
error: command '/usr/bin/gcc-4.2' failed with exit status 255
-bash: cd: scintilla: No such file or directory

C:\.git\refs\heads\master

Hey,

There seems to be a problem regarding the folder: "C:.git\refs\heads\master" on Windows.

I downloaded Sublime CodeIntel using Mercurial (with the hg-git extension) and therefore don't have Git installed.

For ages, CodeIntel just said it was building the cache (left it for 6 hours) and it never finished.

I wanted to see if there were any permissions issues on my PC, so I ran SysInternals ProcMon and saw thousands of requests to the folder mentioned earlier. So, I went ahead and created the folder tree it was looking for and CodeIntel IMMEDIATELY began to work.

However, I now see the following error in Sublime Text 2's console:

Traceback (most recent call last): File ".\sublimelint_plugin.py", line 334, in _callback File ".\sublimelint_plugin.py", line 318, in _update_view File ".\sublimelint_plugin.py", line 219, in background_run File ".\sublimelint_plugin.py", line 235, in run_once File ".\sublimelint\modules\php.py", line 41, in run File ".\sublimelint\modules\php.py", line 17, in check File ".\subprocess.py", line 633, in __init__ File ".\subprocess.py", line 842, in _execute_child WindowsError: [Error 2] The system cannot find the file specified Exception in thread scanning thread: Traceback (most recent call last): File ".\threading.py", line 532, in __bootstrap_inner File ".\threading.py", line 484, in run File ".\python_codeintel.py", line 602, in _codeintel_scan File ".\python_codeintel.py", line 818, in get_git_revision File ".\python_codeintel.py", line 804, in _get_git_revision IOError: [Errno 13] Permission denied: 'C:\\.git\\refs\\heads\\master'

I assume this error is because the .git folder is empty--however, I do not want to install Git, nor do I want CodeIntel to be looking to this folder everytime it is called (as it is doing now).

Could this check (or whatever it is be removed)?

Many thanks (this is an awesome addition to Sublime Text 2),

atwright147

How to set custom completions for other languages?

Hello, I'm currently learning coffeescript, and it would be really cool to have autocomple from the Javascript libraries and the CoffeeScript ones, but the thing is that I didn't understand very well the examples in the main page, so I need a little help, thank you!

"Updating indexes…" never completes

I'm never seeing the "updating indexes" step finish. It just sits there until I click somewhere else in the application, then disappears. No errors in the ST console. I'm not seeing the high CPU usage that other users have reported in the forums; it just never seems to do anything.

ST2 build 2103, 64 bit OS X Lion, latest SublimeCodeIntel.

SublimeText2 segfaults due to SublimeCodeIntel

Hello German,

CodeIntel seems to be indexing ok, but when trying to autocomplete using ctrl+space it segfaults:

Example code:

import os

os.c<ctrl+space>

Here is my output:

(18:02:13) - douglas at shoryuken in ~
$ sublime-text-2 

This is perl, v5.10.1 (*) built for i686-linux-gnu-thread-multi
(with 53 registered patches, see perl -V for more detail)

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

PHP 5.3.5-1ubuntu7.2 with Suhosin-Patch (cli) (built: May  2 2011 23:18:30) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
v0.4.11
*** glibc detected *** /usr/lib/sublime-text-2/sublime_text: corrupted double-linked list: 0xaa0294f0 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x6b961)[0xb6c62961]
/lib/i386-linux-gnu/libc.so.6(+0x6e8c2)[0xb6c658c2]
/lib/i386-linux-gnu/libc.so.6(__libc_malloc+0x63)[0xb6c66f53]
/usr/lib/libcairo.so.2(+0x1bae4)[0xb7229ae4]
/usr/lib/libcairo.so.2(+0x1c28c)[0xb722a28c]
/usr/lib/libcairo.so.2(+0x2b060)[0xb7239060]
/usr/lib/libcairo.so.2(+0x4d34b)[0xb725b34b]
/usr/lib/libcairo.so.2(+0x2417a)[0xb723217a]
/usr/lib/libcairo.so.2(cairo_show_text+0x198)[0xb72284f8]
/usr/lib/sublime-text-2/sublime_text(_ZN20cairo_render_context9draw_textEP9px_font_t5point5colorPKc+0x22a)[0x84c5ada]
/usr/lib/sublime-text-2/sublime_text(_ZN17mini_texture_font17create_glyph_dataEj+0x204)[0x8293624]
/usr/lib/sublime-text-2/sublime_text(_ZN17mini_texture_font11draw_stringEP17px_render_contextdd5color15const_substring+0x28b)[0x829439b]
/usr/lib/sublime-text-2/sublime_text(_ZN9MultiFont4drawE5pointN5slate10usubstringE7vector3S3_b+0x16f)[0x84afa9f]
/usr/lib/sublime-text-2/sublime_text[0x8490592]
/usr/lib/sublime-text-2/sublime_text(_ZN20BufferedTextRenderer16drawBufferedTextEv+0x1ef)[0x84995ff]
/usr/lib/sublime-text-2/sublime_text(_ZN13TokenRenderer4drawEP6CanvasjRK10interval2dRKSt6vectorI15SelectionRegionSaIS6_EERS5_ISt4pairI11RegionStylePS9_ESaISE_EES6_S6_S6_RK9ViewStyleRKS5_IxSaIxEE+0x59a)[0x849393a]
/usr/lib/sublime-text-2/sublime_text(_ZN14TextBufferView4drawEP6CanvasbRKSt6vectorIxSaIxEE+0x7ef)[0x83db32f]
/usr/lib/sublime-text-2/sublime_text(_ZN23skyline_minimap_control4drawEP17px_render_context4rect+0x21d)[0x83cd60d]
/usr/lib/sublime-text-2/sublime_text(_Z13draw_controlsP17px_render_contextP7control4rect+0x5e)[0x82ac6ee]
/usr/lib/sublime-text-2/sublime_text(_Z13draw_controlsP17px_render_contextP7control4rect+0x302)[0x82ac992]
/usr/lib/sublime-text-2/sublime_text(_Z13draw_controlsP17px_render_contextP7control4rect+0x302)[0x82ac992]
/usr/lib/sublime-text-2/sublime_text(_Z13draw_controlsP17px_render_contextP7control4rect+0x302)[0x82ac992]
/usr/lib/sublime-text-2/sublime_text(_Z13draw_controlsP17px_render_contextP7control4rect+0x302)[0x82ac992]
/usr/lib/sublime-text-2/sublime_text(_Z13draw_controlsP17px_render_contextP7control4rect+0x302)[0x82ac992]
/usr/lib/sublime-text-2/sublime_text(_Z15on_expose_eventP10_GtkWidgetP15_GdkEventExposePv+0x528)[0x84bc408]
/usr/lib/libgtk-x11-2.0.so.0(+0x135a04)[0xb7601a04]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x192)[0xb70b8372]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(+0x1f048)[0xb70cb048]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x557)[0xb70d38d7]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x32)[0xb70d3cc2]
/usr/lib/libgtk-x11-2.0.so.0(+0x26a836)[0xb7736836]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x522)[0xb7600192]
/usr/lib/libgdk-x11-2.0.so.0(+0x3ba78)[0xb746ea78]
/usr/lib/libgdk-x11-2.0.so.0(+0x6e184)[0xb74a1184]
/usr/lib/libgdk-x11-2.0.so.0(+0x3698c)[0xb746998c]
/usr/lib/libgdk-x11-2.0.so.0(gdk_window_process_all_updates+0x137)[0xb746b937]
/usr/lib/libgdk-x11-2.0.so.0(+0x389bb)[0xb746b9bb]
/usr/lib/libgdk-x11-2.0.so.0(+0x14e48)[0xb7447e48]
/lib/i386-linux-gnu/libglib-2.0.so.0(+0x3c081)[0xb6fff081]
/lib/i386-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x1c8)[0xb7003848]
/lib/i386-linux-gnu/libglib-2.0.so.0(+0x41010)[0xb7004010]
/lib/i386-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x17b)[0xb70046cb]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb9)[0xb75fec39]
/usr/lib/sublime-text-2/sublime_text(_Z17px_run_event_loopv+0xe)[0x84bb8ee]
/usr/lib/sublime-text-2/sublime_text(main+0x427)[0x8378377]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0xb6c0de37]
/usr/lib/sublime-text-2/sublime_text[0x822c3b1]
======= Memory map: ========
08048000-08924000 r-xp 00000000 08:03 790136     /usr/lib/sublime-text-2/sublime_text
08924000-08925000 r--p 008db000 08:03 790136     /usr/lib/sublime-text-2/sublime_text
08925000-08985000 rw-p 008dc000 08:03 790136     /usr/lib/sublime-text-2/sublime_text
08985000-08994000 rw-p 00000000 00:00 0 
0a64e000-0b9ab000 rw-p 00000000 00:00 0          [heap]
a8ffe000-a8fff000 ---p 00000000 00:00 0 
a8fff000-a97ff000 rw-p 00000000 00:00 0 
a97ff000-a9800000 ---p 00000000 00:00 0 
a9800000-aa000000 rw-p 00000000 00:00 0 
aa000000-aa100000 rw-p 00000000 00:00 0 
aa7fe000-aa7ff000 ---p 00000000 00:00 0 
aa7ff000-aafff000 rw-p 00000000 00:00 0 
aafff000-ab000000 ---p 00000000 00:00 0 
ab000000-ab800000 rw-p 00000000 00:00 0 
ab800000-ab840000 rw-p 00000000 00:00 0 
ab840000-ab900000 ---p 00000000 00:00 0 
ab900000-ab9a2000 rw-p 00000000 00:00 0 
ab9a2000-aba00000 ---p 00000000 00:00 0 
aba00000-abb00000 rw-p 00000000 00:00 0 
abb00000-abc00000 rw-p 00000000 00:00 0 
abc00000-abe00000 rw-p 00000000 00:00 0 
abe00000-abfff000 rw-p 00000000 00:00 0 
abfff000-ac000000 ---p 00000000 00:00 0 
ac000000-ac100000 rw-p 00000000 00:00 0 
ac16b000-ac500000 rw-p 00000000 00:00 0 
ac500000-ac5f5000 rw-p 00000000 00:00 0 
ac5f5000-ac600000 ---p 00000000 00:00 0 
ac600000-ac700000 rw-p 00000000 00:00 0 
ac700000-ac800000 rw-p 00000000 00:00 0 
ac879000-ac87b000 r-xp 00000000 08:03 2621508    /lib/libnss_mdns4_minimal.so.2
ac87b000-ac87c000 r--p 00001000 08:03 2621508    /lib/libnss_mdns4_minimal.so.2
ac87c000-ac87d000 rw-p 00002000 08:03 2621508    /lib/libnss_mdns4_minimal.so.2
ac893000-ac894000 ---p 00000000 00:00 0 
ac894000-ad094000 rw-p 00000000 00:00 0 
ad094000-ad095000 ---p 00000000 00:00 0 
ad095000-ad895000 rw-p 00000000 00:00 0 
ad895000-ad8f5000 rw-s 00000000 00:04 13926406   /SYSV00000000 (deleted)
ad900000-ada00000 rw-p 00000000 00:00 0 
adaf7000-adaf8000 ---p 00000000 00:00 0 
adaf8000-ae2f8000 rw-p 00000000 00:00 0 
ae2f8000-ae2f9000 ---p 00000000 00:00 0 
ae2f9000-aeaf9000 rw-p 00000000 00:00 0 
aeaf9000-aeafa000 ---p 00000000 00:00 0 
aeafa000-af2fa000 rw-p 00000000 00:00 0 
af300000-af37e000 rw-p 00000000 00:00 0 
af37e000-af400000 ---p 00000000 00:00 0 
af4fc000-af4fd000 ---p 00000000 00:00 0 
af4fd000-afcfd000 rw-p 00000000 00:00 0 
afdfe000-afdff000 ---p 00000000 00:00 0 
afdff000-b05ff000 rw-p 00000000 00:00 0 
b05ff000-b0600000 ---p 00000000 00:00 0 
b0600000-b0e00000 rw-p 00000000 00:00 0 
b0e00000-b0f00000 rw-p 00000000 00:00 0 
b0ffd000-b0ffe000 ---p 00000000 00:00 0 
b0ffe000-b17fe000 rw-p 00000000 00:00 0 
b17fe000-b17ff000 ---p 00000000 00:00 0 
b17ff000-b1fff000 rw-p 00000000 00:00 0 
b1fff000-b2000000 ---p 00000000 00:00 0 
b2000000-b2800000 rw-p 00000000 00:00 0 
b2800000-b28fc000 rw-p 00000000 00:00 0 
b28fc000-b2900000 ---p 00000000 00:00 0 
b295d000-b29b5000 r--p 00000000 08:03 1582833    /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf
b2b00000-b2c00000 rw-p 00000000 00:00 0 
b2cb9000-b2cd4000 r--p 00000000 08:03 1576632    /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Regular.ttf
b2cd4000-b2d63000 r--p 00000000 08:03 1576602    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
b2d63000-b2dfe000 r--p 00000000 08:03 1576603    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
b2dfe000-b2dff000 ---p 00000000 00:00 0 
b2dff000-b35ff000 rw-p 00000000 00:00 0 
b35ff000-b3600000 ---p 00000000 00:00 0 
b3600000-b3e00000 rw-p 00000000 00:00 0 
b3e00000-b3ef8000 rw-p 00000000 00:00 0 
b3ef8000-b3f00000 ---p 00000000 00:00 0 
b3f15000-b3f19000 r-xp 00000000 08:04 3294977    /home/douglas/work/config/sublimetext2_configs/SublimeCodeIntel/libs/_local_arch/sgmlop.so
b3f19000-b3f1a000 r--p 00003000 08:04 3294977    /home/douglas/work/config/sublimetext2_configs/SublimeCodeIntel/libs/_local_arch/sgmlop.so
b3f1a000-b3f1b000 rw-p 00004000 08:04 3294977    /home/douglas/work/config/sublimetext2_configs/SublimeCodeIntel/libs/_local_arch/sgmlop.so
b3f1b000-b3ffc000 r-xp 00000000 08:04 3294978    /home/douglas/work/config/sublimetext2_configs/SublimeCodeIntel/libs/_local_arch/_SilverCity.so
b3ffc000-b3ffd000 r--p 000e0000 08:04 3294978    /home/douglas/work/config/sublimetext2_configs/SublimeCodeIntel/libs/_local_arch/_SilverCity.so
b3ffd000-b3fff000 rw-p 000e1000 08:04 3294978    /home/douglas/work/config/sublimetext2_configs/SublimeCodeIntel/libs/_local_arch/_SilverCity.so
b3fff000-b4000000 rw-p 00000000 00:00 0 
b4000000-b40fc000 rw-p 00000000 00:00 0 
b40fc000-b4100000 ---p 00000000 00:00 0 
b4100000-b4200000 rw-p 00000000 00:00 0 
b4201000-b4203000 r-xp 00000000 08:03 807374     /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b4203000-b4204000 r--p 00001000 08:03 807374     /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b4204000-b4205000 rw-p 00002000 08:03 807374     /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b4205000-b4209000 r-xp 00000000 08:03 2622317    /lib/i386-linux-gnu/libnss_dns-2.13.so
b4209000-b420a000 r--p 00004000 08:03 2622317    /lib/i386-linux-gnu/libnss_dns-2.13.so
b420a000-b420b000 rw-p 00005000 08:03 2622317    /lib/i386-linux-gnu/libnss_dns-2.13.so
b420d000-b4213000 r--p 00000000 08:03 1579170    /usr/share/locale-langpack/pt/LC_MESSAGES/gdk-pixbuf.mo
b4213000-b4219000 r--p 00000000 08:03 1579444    /usr/share/locale-langpack/pt_BR/LC_MESSAGES/gdk-pixbuf.mo
b4219000-b4233000 r--s 00000000 08:03 1182556    /usr/share/mime/mime.cache
b4233000-b4248000 r-xp 00000000 08:03 790350     /usr/lib/libdbusmenu-glib.so.3.0.14
b4248000-b4249000 r--p 00014000 08:03 790350     /usr/lib/libdbusmenu-glib.so.3.0.14
b4249000-b424a000 rw-p 00015000 08:03 790350     /usr/lib/libdbusmenu-glib.so.3.0.14
b424a000-b4258000 r-xp 00000000 08:03 790227     /usr/lib/libdbusmenu-gtk.so.3.0.14
b4258000-b4259000 r--p 0000d000 08:03 790227     /usr/lib/libdbusmenu-gtk.so.3.0.14
b4259000-b425a000 rw-p 0000e000 08:03 790227     /usr/lib/libdbusmenu-gtk.so.3.0.14
b425b000-b425c000 r-xp 00000000 08:03 792727     /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
b425c000-b425d000 r--p 00000000 08:03 792727     /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so/usr/bin/sublime-text-2: linha 2: 20989 Abortado                /usr/lib/sublime-text-2/sublime_text $*

I rebuilt the libs, but it does not helped.

Thanks !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.