Same here - the Ubuntu plus updating indexes thing, I mean. Sadcakes.
CodeIntel ported from Open Komodo Editor
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.
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:
<?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?
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
[quote=“mpedrummer”]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.[/quote]
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)
It’s the file referred to in the “Configuring” section here - 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.
[quote=“mpedrummer”]It’s the file referred to in the “Configuring” section here - 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.[/quote]
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 = (
I’m waiting for it to break
My co-worker, who had initially gotten it to work in Ubuntu, has subsequently had it stop working. We haven’t been able to figure out why.
Oh, computers. You suck, and I love you.
[quote=“mpedrummer”]I’m waiting for it to break
My co-worker, who had initially gotten it to work in Ubuntu, has subsequently had it stop working. We haven’t been able to figure out why.
Oh, computers. You suck, and I love you.[/quote]
Noooooooo!!! You are my only hope!!!
OK, here’s a hint maybe - we got his working again, though it took deleting as much evidence that Sublime had ever existed as we could find
At some point, he had moved the directory that contained the executable into .config/sublime-text-2, which turned out to be a horrible idea.
After reinstalling, he ran the build.sh that comes with SublimeCodeIntel, and it works!
Hello!
I’ve got some problem with this package.
What I’ve done:
- Installed the packages
- Created a new folder
- Created a new file test.rb
- Typed in some Ruby class
class Test
end
- Pressed super+j
In ~/.codeintel/codeintel.log I see
Updating indexes for 'Ruby'... The first time this can take a while.
Doing CodeIntel for 'Ruby' (hold on)...
eval 'Test' at test.rb#6 <Trigger 'ruby-defn-defn' at 37 (explicit)>
Unexpected error with evaluator: 'Test' at test.rb#6
Traceback (most recent call last):
File "/Users/andrew/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/tree.py", line 328, in eval
defns = self.eval_defns()
File "/Users/andrew/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/tree_ruby.py", line 293, in eval_defns
self._base_scoperefs = self._calc_base_scoperefs(start_scoperef)
File "/Users/andrew/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/tree_ruby.py", line 305, in _calc_base_scoperefs
scoperefs = [curr_scoperef, (self.built_in_blob, [])]
File "/Users/andrew/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/tree_ruby.py", line 965, in built_in_blob
if isinstance(self.libs-1], StdLib):
File "/Users/andrew/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/tree_ruby.py", line 155, in libs
self._libs = self.langintel.libs_from_buf(self.buf)
File "/Users/andrew/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/lang_ruby.py", line 323, in libs_from_buf
libs = self._buf_indep_libs_from_env(env):]
File "/Users/andrew/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/lang_ruby.py", line 444, in _buf_indep_libs_from_env
= self._ruby_info_from_ruby(ruby, env)
File "/Users/andrew/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/lang_ruby.py", line 355, in _ruby_info_from_ruby
p = process.ProcessOpen(argv, env=env.get_all_envvars(), stdin=None)
AttributeError: 'module' object has no attribute 'ProcessOpen'
done eval: eval error
I’ve tried other languages (e. g. Python) but I got similar errors.
We are working on v2.0 of SubimeCodeIntel, available at github.com/Kronuz/SublimeCodeIn … evelopment (development branch). This should fix many of the bugs that were there (making it slow and making CPU usage go crazy for too long)… please if anyone’s willing, I’d appreciate any feedback.
We need suggestions for proper and working key and mouse bindings for “jump to definition” (currently alt+click) and the autocomplete popup manual trigger. Any thought would be welcome.
[quote=“Kronuz”]We are working on v2.0 of SubimeCodeIntel, available at github.com/Kronuz/SublimeCodeIn … evelopment (development branch). This should fix many of the bugs that were there (making it slow and making CPU usage go crazy for too long)… please if anyone’s willing, I’d appreciate any feedback.
We need suggestions for proper and working key and mouse bindings for “jump to definition” (currently alt+click) and the autocomplete popup manual trigger. Any thought would be welcome.[/quote]
that’s a REAL good news!!!
The development version does not work on my computer (Ubuntu Linux 12.04 kernel 3.2.0-26-generic x86_64).
I’ve done this:
- Download development version from GitHub (github.com/Kronuz/SublimeCodeIn … evelopment)
- Unzip the zip
- Move extracted folder to ~/.config/sublime-text-2/Packages /
- Remove directory ~/.codeintel
When I try to go to the definition of an element with CTRL+SUPER+ALT+UP nothing happens. Neither pressing SHIFT+CTRL+SPACE to autocomplete.
I tried recompiling libraries at ~/.config/sublime-text-2/Packages/SublimeCodeIntel/src/ but nothing new happens.
The file ~/.codeintel/codeintel.log:
Starting logging SublimeCodeIntel rev GIT-unknown (1341919357) on Wed Jul 11 09:06:22 2012
==========================================================================================
+ Info: Invalid language: Plain text. Available: JavaScript, Mason, XBL, XUL, RHTML, SCSS, Python, HTML, Ruby, Python3, XML, XSLT, Django, HTML5, Perl, CSS, PHP, Less, Smarty, Node.js, Tcl, TemplateToolkit, Twig
+ Info: processing `PHP': please wait...
Updating indexes for 'PHP'... The first time this can take a while.
+ Info: processing `PHP': please wait...
Doing CodeIntel for 'PHP' (hold on)...
unknown UDL-based XML completion: <built-in function id>
done eval: error
Done 'PHP' CodeIntel! Full CodeIntel took 24ms
Updating indexes for 'PHP'... The first time this can take a while.
Doing CodeIntel for 'PHP' (hold on)...
unknown UDL-based XML completion: <built-in function id>
done eval: error
Done 'PHP' CodeIntel! Full CodeIntel took 32ms
I’m in the same situation as xavi above. I installed via git, but the result is the same.
Yeah I’ve burnt alot of time with this one over the last weekend.
Its patchy inconsistent and since I’m on the win7x64 side of things I’m finding most input is “huh works for me you must be dumb or something…” not so helpful. and many answers on here are from other platforms so sifting this info to determine whats useful is quite hard work.
I have found that with in config files the newer:
{
"Python":
{
"python": '%ProgramFiles(x86)%/Autodesk/Maya2012/bin/mayapy.exe',
"env":
{
"PYTHONPATH":'%ProgramFiles(x86)%/Autodesk/Maya2012/bin/python26.zip:$PYTHONPATH',
}
}
}
On winx64 just does not work.
Does not work with explicit paths, does not work with native envVars, although I don’t know if it should?
It also does not work with python packaged in .zip, should it? who knows… be nice if it did mind.
Nor does it work with an extracted typical installation of python i.e. c:/Python26/
at least in my experience
However the older:
[code]{
“Python”:
{
“python”: “C:/Python26”,
"pythonExtraPaths":
"C:/Data/PythonProjects/homeProjects"
]
// "env":
// {
// "PATH":"C:/Python26:C:/Data/PythonProjects/homeProjects",
// "PYTHONPATH":"C:/Python26: C:/Data/PythonProjects/homeProjects"
// }
}
}[/code]
seemed to work more reliably, however more reliable in the sense that some .py files in the same project work and complete quite nicely and gave me quite a chill a thing of beauty and so much promise, yet another file in the same project in the same directory would not complete anything at all, most frustrating! yes I have been blowing away the db files and rebuilding between each alteration test cycle to see what changes.
I am unsure if comments in code blocks above cause failure?
I am unsure if the “env” settings can even be put in the config files? I did try… no gravy…
the:
“python”: “C:/Python26”
forces it to use the specified python version which is nice otherwise it seems to find python in system paths somewhere, not sure where it gets them from the registry as that was the only place I found an entry for my local x64Python version at one point, I don’t have PYTHONPATH and PATH pointing to installations on my machine. Any more checking is probably going to be a debugging and dissection session.
I have found I only get db files in the:
C:/Users/user/.codeintel/db
and not in the:
C:/Data/PythonProjects/myProjects/.codeintel/db
even though I have configs there I don’t know if I should…
I would like to see :
PYTHONPATH : “path…”, “path…”]
rather than :
PYTHONPATH : “C:/Python26: C:/Data/PythonProjects/homeProjects:$PYTHONPATH”
as its far easier to deal with.
and that $PYTHONPATH is it accessing the current system PYTHONPATH, is that consistent for all platforms, what is it doing?
All the apparently stupid questions I’m asking really need documentation to assist this tool(me and CodeIntel), sometimes you have to over communicate stuff that may seem really obvious, when to some its really not.
If I could get some sort of consistency I’d be quite happy to use it, its got so much potential and is really nice… when it works!
But really as a result of the experience I’ve gone back to WINGIDE as it just works… and the auto-complete and the debuggers are really something I need for speed whilst working in a development environment.
But I am using Sublime more and more for general stuff replacing a stack of other editors that all have bits of things that are really useful that sublime has or as I figure it out I can probably add.