Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » DLTK indexing(I am trying out the dltk python to know the dltk indexing internal. )
DLTK indexing [message #915501] Mon, 17 September 2012 12:21 Go to next message
birendra acharya is currently offline birendra acharyaFriend
Messages: 1
Registered: September 2012
Junior Member
I am trying to use the Python SDK before implementing dltk in a separate language.
But till now I am not able to make it work as a whole. The parsing seems to work correctly and even I am getting the outline of the code in the outline view. Now my next move is to verify the python search. But this is not working.

Below is the PythonSearchFactory class.

]public class PythonSearchFactory extends AbstractSearchFactory {

public IMatchLocatorParser createMatchParser(MatchLocator locator) {
return new PythonMatchLocationParser(locator);
public SourceIndexerRequestor createSourceRequestor(){
return new PythonSourceIndexerRequestor();
public ISearchPatternProcessor createSearchPatternProcessor() {
return new PythonSearchPatternProcessor();


Even I have PythonSourceElementRequestor and PythonSourceElementParser class implemented.

Now, what else I need to do?
I have doubt on indexing of my code.
How can I print the index details?
Does the indexing happens for all the file during the eclipse start up?
Re: DLTK indexing [message #921404 is a reply to message #915501] Mon, 24 September 2012 04:48 Go to previous message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member

You'd better check JavaScript/Ruby/TCL implementations, as Python has
some missing bits.

Indexing happens on changes and also initial index update happens on

The data for the indexing are reported by *SourceElementParser - it's
invoked with different requestors for building the module structure
(Outline) and for the indexing.

Search is performed in 2 steps: first source modules are identified
based on index, then the matcher is called to find the exact matching
nodes in the AST.

Hope it helps.

Previous Topic:ASTNode start()/end() invariants
Next Topic:Unable to debug plug-in function calls through JRuby script
Goto Forum:

Current Time: Sat Feb 24 10:49:10 GMT 2024

Powered by FUDForum. Page generated in 0.02170 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top