[
https://issues.apache.org/jira/browse/NETBEANS-3962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17093966#comment-17093966
]
Laszlo Kishalmi commented on NETBEANS-3962:
---
Also if it is possible create a project where this issue can be reproduced.
Without that these kind of issues are most probably not resolvable.
> Background scanning of projects seems to never end
> --
>
> Key: NETBEANS-3962
> URL: https://issues.apache.org/jira/browse/NETBEANS-3962
> Project: NetBeans
> Issue Type: Bug
>Affects Versions: 11.3
> Environment: WIndows 10
>Reporter: Rejoan
>Priority: Blocker
>
> It seems JavaScript parser throws some exception making background scanning
> never end:
> again.INFO [org.netbeans.modules.extbrowser]: interrupted in run():
> java.lang.InterruptedExceptionWARNING
> [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]java.lang.StringIndexOutOfBoundsException:
> begin 39, end 41, length 40 at
> java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319) at
> java.base/java.lang.String.substring(String.java:1874) at
> org.netbeans.modules.javascript2.jsdoc.model.JsDocElementUtils.createParameterElement(JsDocElementUtils.java:189)
> at
> org.netbeans.modules.javascript2.jsdoc.model.JsDocElementUtils.createElementForType(JsDocElementUtils.java:63)
> at
> org.netbeans.modules.javascript2.jsdoc.JsDocParser.parseCommentBlock(JsDocParser.java:138)
> at
> org.netbeans.modules.javascript2.jsdoc.JsDocParser.parse(JsDocParser.java:75)
> at
> org.netbeans.modules.javascript2.jsdoc.JsDocDocumentationHolder.getCommentBlocks(JsDocDocumentationHolder.java:41)
> at
> org.netbeans.modules.javascript2.doc.spi.JsDocumentationHolder.getDocumentation(JsDocumentationHolder.java:184)
> at
> org.netbeans.modules.javascript2.model.ModelVisitor.handleDeclaredVariable(ModelVisitor.java:1652)
> at
> org.netbeans.modules.javascript2.model.ModelVisitor.access$100(ModelVisitor.java:110)
> at
> org.netbeans.modules.javascript2.model.ModelVisitor$1.handleDeclarations(ModelVisitor.java:1468)
> at
> org.netbeans.modules.javascript2.model.ModelVisitor$1.leaveBlock(ModelVisitor.java:1494)
> at com.oracle.js.parser.ir.Block.accept(Unknown Source) at
> com.oracle.js.parser.ir.LexicalContextNode$Acceptor.accept(Unknown Source) at
> com.oracle.js.parser.ir.Block.accept(Unknown Source) at
> org.netbeans.modules.javascript2.model.ModelVisitor.processDeclarations(ModelVisitor.java:1558)
> at
> org.netbeans.modules.javascript2.model.ModelVisitor.enterFunctionNode(ModelVisitor.java:934)
> at com.oracle.js.parser.ir.FunctionNode.accept(Unknown Source) at
> com.oracle.js.parser.ir.LexicalContextNode$Acceptor.accept(Unknown Source) at
> com.oracle.js.parser.ir.LexicalContextExpression.accept(Unknown Source) at
> org.netbeans.modules.javascript2.model.ModelVisitor.init(ModelVisitor.java:145)
> at
> org.netbeans.modules.javascript2.model.api.Model.getModelVisitor(Model.java:168)
> at
> org.netbeans.modules.javascript2.model.api.Model.getGlobalObject(Model.java:468)
> at
> org.netbeans.modules.javascript2.editor.index.JsIndexer.index(JsIndexer.java:96)
> at
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$3.run(Indexable.java:225)
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
> at
> org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:223)[catch]
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$2.run(RepositoryUpdater.java:3209)
> at
> org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
> at
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
> at
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
> at
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
> at
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
> at
> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
> at
> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
> at
> org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
> at
> org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
> at
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
> at
> org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81)
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.indexEmbedding(RepositoryUpdater.java:3143)
> at
> org.netbeans.modules.parsing.im