Skip to main content



      Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » 'package require' doesn't works when new a project
'package require' doesn't works when new a project [message #37061] Mon, 04 May 2009 23:33 Go to next message
Eclipse UserFriend
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
Re: 'package require' doesn't works when new a project [message #37197 is a reply to message #37061] Tue, 12 May 2009 02:07 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Guide to build IDE
Next Topic:Unresolve "package require Expect" in tcl project
Goto Forum:
  


Current Time: Mon Jun 09 06:24:40 EDT 2025

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

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

Back to the top