|
Re: 'package require' doesn't works when new a project [message #37197 is a reply to message #37061] |
Tue, 12 May 2009 06:07 |
Alex Panchenko Messages: 342 Registered: July 2009 |
Senior Member |
|
|
Hi loulis,
Would you please try with latest 1.0 milestone or integration builds?
This part was completely rewritten in 1.0, so let's check if it works
with your project configuration.
Regards,
Alex
loulis wrote:
> my dltk version:
> dltk-tcl-sdk-R-0.95.1-200809201836-incubation
>
> 1. i configurate a tcl interpreter in the preferences page,and
> configurate its lib paths manually;
>
> 2. new a tcl project
>
> 3. new a source folder and a script, then i use 'package require' with
> the key Alt+/ to show autocomplete package name list ,but there is
> nothing. when i use Ctrl + F1, pop-up a NPE,
>
> 4.if i add a user lib to this project , the 'package require'
> autocomplete will work well.
>
> i want to know why? how to reslove it?
>
> NPE:
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.dltk.tcl.internal.core.packages.PackagesManager. getPathsForPackage(PackagesManager.java:352)
>
> at
> org.eclipse.dltk.tcl.internal.ui.text.TclCorrectionProcessor .isFixable(TclCorrectionProcessor.java:160)
>
> at
> org.eclipse.dltk.tcl.internal.ui.text.TclCorrectionProcessor .isFixable(TclCorrectionProcessor.java:135)
>
> at
> org.eclipse.dltk.tcl.internal.ui.text.TclCorrectionProcessor .hasCorrections(TclCorrectionProcessor.java:184)
>
> at
> org.eclipse.dltk.tcl.internal.ui.TclUILanguageToolkit.hasCor rections(TclUILanguageToolkit.java:142)
>
> at
> org.eclipse.dltk.internal.ui.editor.ScriptAnnotationUtils.ha sCorrections(ScriptAnnotationUtils..java:39)
>
> at
> org.eclipse.dltk.internal.ui.editor.SourceModuleDocumentProv ider$ProblemAnnotation.initializeImage(SourceModuleDocumentP rovider.java:250)
>
> at
> org.eclipse.dltk.internal.ui.editor.SourceModuleDocumentProv ider$ProblemAnnotation.paint(SourceModuleDocumentProvider.ja va:303)
>
> at
> org.eclipse.ui.texteditor.DefaultMarkerAnnotationAccess.pain t(DefaultMarkerAnnotationAccess.java:247)
>
> at
> org.eclipse.jface.text.source.AnnotationRulerColumn.doPaint1 (AnnotationRulerColumn.java:767)
>
> at
> org.eclipse.jface.text.source.AnnotationRulerColumn.doubleBu fferPaint(AnnotationRulerColumn.java:518)
>
> at
> org.eclipse.jface.text.source.AnnotationRulerColumn.redraw(A nnotationRulerColumn.java:797)
>
> at
> org.eclipse.jface.text.source.AnnotationRulerColumn$6.run(An notationRulerColumn.java:784)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
>
> ... 22 more
>
|
|
|
Powered by
FUDForum. Page generated in 0.03580 seconds