Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Guide to build IDE
Guide to build IDE [message #35639] Fri, 06 February 2009 13:47 Go to next message
Sergey Kolos is currently offline Sergey KolosFriend
Messages: 1
Registered: July 2009
Junior Member
I am trying to get started with DLTK by going throug the guide.
However, following instructions of Step 1 in the guide I was not able to
get to the pictures in the end of "First Python Project".
Instead I see the following exception:

Exception in thread "DLTK indexing" java.lang.NullPointerException
at
org.eclipse.dltk.ast.parser.SourceParserManager.getSourcePar ser(SourceParserManager.java:80)
at
org.eclipse.dltk.core.DLTKLanguageManager.getSourceParser(DL TKLanguageManager.java:223)
at
org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration( SourceParserUtil.java:129)
at
org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration( SourceParserUtil.java:121)
at
org.eclipse.dltk.core.AbstractSourceElementParser.parse(Abst ractSourceElementParser.java:49)
at
org.eclipse.dltk.core.AbstractSourceElementParser.parseSourc eModule(AbstractSourceElementParser.java:28)
at
org.eclipse.dltk.core.search.indexing.SourceIndexer.indexDoc ument(SourceIndexer.java:225)
at
org.eclipse.dltk.core.search.DLTKSearchParticipant.indexDocu ment(DLTKSearchParticipant.java:83)
at
org.eclipse.dltk.core.search.indexing.IndexManager.indexDocu ment(IndexManager.java:560)
at
org.eclipse.dltk.core.search.indexing.IndexManager$1.execute (IndexManager.java:1031)
at
org.eclipse.dltk.internal.core.search.processing.JobManager. run(JobManager.java:453)
at java.lang.Thread.run(Unknown Source)

From what I understand the list of parsers that SourceParserManager uses
is not initialized with ExamplePythonSourseElementParser. Otherwise
outline would be filled.

Also I noticed that the example shows "Script Explorer" rather than
package explorer. Since the example does not define any perspectives I
assume that the view cannot obtained at the step it is shown in the Guide
and some additional code is necessary, but even with complete cvs code for
Step 1 I could not obtain the view described in the guide and was getting
exception.

Can anyone help me to resolve this issue?

Thank you,

Sergey

P.S. I am using Eclipse 3.4 under Windows XP, and tried both stable
(Stream: 1.0 Build Name: 1.0M4 Mon, 29 Dec 2008 -- 02:49 (UTC)) and
integration (Stream: R1.0 Build Name: I200812180549 Thu, 18 Dec 2008 --
05:49 (UTC)) releases.
Re: Guide to build IDE [message #35706 is a reply to message #35639] Mon, 09 February 2009 05:37 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
Hi Sergey,

The signature of ISourceElementParser.parseSourceModule() method was
changed recently. I have updated wiki and example code in CVS.

"Script Explorer" view could be opened at any time via menu:
Window - Show View - Other...

Regards,
Alex

Sergey Kolos wrote:
> I am trying to get started with DLTK by going throug the guide.
> However, following instructions of Step 1 in the guide I was not able to
> get to the pictures in the end of "First Python Project".
> Instead I see the following exception:
> Exception in thread "DLTK indexing" java.lang.NullPointerException
> at
> org.eclipse.dltk.ast.parser.SourceParserManager.getSourcePar ser(SourceParserManager.java:80)
>
> at
> org.eclipse.dltk.core.DLTKLanguageManager.getSourceParser(DL TKLanguageManager.java:223)
>
> at
> org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration( SourceParserUtil.java:129)
>
> at
> org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration( SourceParserUtil.java:121)
>
> at
> org.eclipse.dltk.core.AbstractSourceElementParser.parse(Abst ractSourceElementParser.java:49)
>
> at
> org.eclipse.dltk.core.AbstractSourceElementParser.parseSourc eModule(AbstractSourceElementParser.java:28)
>
> at
> org.eclipse.dltk.core.search.indexing.SourceIndexer.indexDoc ument(SourceIndexer.java:225)
>
> at
> org.eclipse.dltk.core.search.DLTKSearchParticipant.indexDocu ment(DLTKSearchParticipant.java:83)
>
> at
> org.eclipse.dltk.core.search.indexing.IndexManager.indexDocu ment(IndexManager.java:560)
>
> at
> org.eclipse.dltk.core.search.indexing.IndexManager$1.execute (IndexManager.java:1031)
>
> at
> org.eclipse.dltk.internal.core.search.processing.JobManager. run(JobManager.java:453)
>
> at java.lang.Thread.run(Unknown Source)
>
> From what I understand the list of parsers that SourceParserManager
> uses is not initialized with ExamplePythonSourseElementParser. Otherwise
> outline would be filled.
>
> Also I noticed that the example shows "Script Explorer" rather than
> package explorer. Since the example does not define any perspectives I
> assume that the view cannot obtained at the step it is shown in the
> Guide and some additional code is necessary, but even with complete cvs
> code for Step 1 I could not obtain the view described in the guide and
> was getting exception.
>
> Can anyone help me to resolve this issue?
>
> Thank you,
>
> Sergey
>
> P.S. I am using Eclipse 3.4 under Windows XP, and tried both stable
> (Stream: 1.0 Build Name: 1.0M4 Mon, 29 Dec 2008 -- 02:49 (UTC)) and
> integration (Stream: R1.0 Build Name: I200812180549 Thu, 18 Dec 2008 --
> 05:49 (UTC)) releases.
>
Re: Guide to build IDE [message #37163 is a reply to message #35706] Thu, 07 May 2009 07:27 Go to previous message
Klaus Schultz is currently offline Klaus SchultzFriend
Messages: 1
Registered: July 2009
Junior Member
Hi Alex,

it would help if those methods in the Example got annotated with
@Override.
With @Override, a difference to a superclass method shows up like an
error.

Cheers, Klaus
Previous Topic:[BUILD] S-1.0M7-200905061301
Next Topic:'package require' doesn't works when new a project
Goto Forum:
  


Current Time: Sat Apr 20 04:56:55 GMT 2024

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

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

Back to the top