This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 200902231810) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Windows Vista, 6.1, x86 User Comments: robdaemon: Saving a python file Stacktrace: java.lang.NullPointerException at org.netbeans.modules.python.editor.scopes.ScopesCompiler.visitImport(ScopesCompiler.java:356) at org.python.antlr.ast.Import.accept(Import.java:131) at org.python.antlr.Visitor.visit(Visitor.java:26) at org.netbeans.modules.python.editor.scopes.ScopesCompiler.suite(ScopesCompiler.java:334) at org.netbeans.modules.python.editor.scopes.ScopesCompiler.visitModule(ScopesCompiler.java:181) at org.python.antlr.ast.Module.accept(Module.java:120)
Created attachment 79326 [details] stacktrace
This issue already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=148789
Build: NetBeans IDE Dev (Build 200908210201) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Windows XP, 5.1, x86 User Comments: type "import *" in source file. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.python.editor.scopes.ScopesCompiler.visitImport(ScopesCompiler.java:356) at org.python.antlr.ast.Import.accept(Import.java:131) at org.python.antlr.Visitor.visit(Visitor.java:26) at org.netbeans.modules.python.editor.scopes.ScopesCompiler.suite(ScopesCompiler.java:334) at org.netbeans.modules.python.editor.scopes.ScopesCompiler.visitModule(ScopesCompiler.java:181) at org.python.antlr.ast.Module.accept(Module.java:120)
Created attachment 86599 [details] stacktrace
This issue already has 6 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=148789
Created attachment 93217 [details] stacktrace
Created attachment 103975 [details] stacktrace
Happens to me when I change from: "from package import class" to "import package import class", with the goal of changing it to "import class" (I had "from Mailer import *", wanted to change to "import Mailer")
Cannot reproduce. I guess this has been fix some time ago. Downgrading priority to P4. This should be close with the next release of nbpython.
Fixed in Python Plugin version .151118 If you get this error, and are using NetBeans IDE 8.0.x, please upgrade to IDE 8.1 and install the latest Python plugin from the Update Center (Tools->Plugins). If you are using NetBeans 8.1 with Python Plugin version .151118 or greater, and you receive this error, please reopen with a duplicable test case and my apologies.