Node.js Core -Best Javascript Runtime

Node.js 是非常优秀的 Javascript Runtime,NodejsCore介绍 Node.js 框架、应用程序和服务器端的开发问题

Learn more

在开发node.js应用程序时,在eclipse中“types推断时发生错误”

我正在开发eclipse中的节点,并且正在进入一些非常奇怪的错误,在“错误日志”中每隔几分钟就会抛出一个错误: 信息: 'error during type inferencing' 堆栈跟踪: 'java.lang.NullPointerException at org.eclipse.wst.jsdt.core.infer.InferredAttribute.<init>(InferredAttribute.java:59) at org.eclipse.wst.jsdt.core.infer.InferredType.addAttribute(InferredType.java:125) at org.eclipse.wst.jsdt.core.infer.InferEngine.populateType(InferEngine.java:1327) at org.eclipse.wst.jsdt.core.infer.InferEngine.handlePotentialType(InferEngine.java:925) at org.eclipse.wst.jsdt.core.infer.InferEngine.visit(InferEngine.java:328) at org.eclipse.wst.jsdt.internal.compiler.DelegateASTVisitor.visit(DelegateASTVisitor.java:526) at org.eclipse.wst.jsdt.internal.compiler.ast.Assignment.traverse(Assignment.java:224) at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:584) at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:539) at org.eclipse.wst.jsdt.core.infer.InferEngine.doInfer(InferEngine.java:1772) at org.eclipse.wst.jsdt.internal.compiler.parser.Parser.inferTypes(Parser.java:7093) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.accept(CompilationUnitProblemFinder.java:167) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.askForBinding(LookupEnvironment.java:279) at org.eclipse.wst.jsdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:249) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:2105) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getType(Scope.java:1876) at org.eclipse.wst.jsdt.core.infer.InferredType.resolveType(InferredType.java:319) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1085) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.bindArguments(AbstractMethodDeclaration.java:135) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildMethods(SourceTypeBinding.java:209) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:77) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:186) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:393) at […]