[jira] [Updated] (NETBEANS-5214) AssertionError when scanning certain projects (CSS parser problem)

2021-01-04 Thread Junichi Yamamoto (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Junichi Yamamoto updated NETBEANS-5214:
---
Component/s: web - CSS Editor

> AssertionError when scanning certain projects (CSS parser problem)
> --
>
> Key: NETBEANS-5214
> URL: https://issues.apache.org/jira/browse/NETBEANS-5214
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Parsing  Indexing, web - CSS Editor
>Affects Versions: Next
> Environment: Windows 10 64-bit, Oracle JDK 1.8 and OpenJDK 11.0.6
>Reporter: Michal Koscielny
>Assignee: Matthias Bläsing
>Priority: Major
>  Labels: pull-request-available
> Attachments: testcss2.zip
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> (Regards build #226 20210103-release)
> When scanning certain projects for the first time Netbeans reports a 
> java.lang.AssertionError, it looks like it's caused by the css parser. The 
> error does not reappear when opening the project for the second time, but 
> when I delete the Netbeans cache folder the scanning happens again and the 
> error reappears.
> I attach a simple project to reproduce it - it essentially contains only 
> tinymce editor library, I suspect one of its minimized css files might be 
> causing the problem.
> Here is the error:
> {{java.lang.AssertionErrorjava.lang.AssertionError at 
> org.netbeans.modules.css.lib.api.properties.GrammarResolver.resolve(GrammarResolver.java:299)
>  at 
> org.netbeans.modules.css.lib.api.properties.GrammarResolver.resolve(GrammarResolver.java:129)
>  at 
> org.netbeans.modules.css.lib.api.properties.GrammarResolver.resolve(GrammarResolver.java:83)
>  at 
> org.netbeans.modules.css.lib.api.properties.ResolvedProperty.(ResolvedProperty.java:59)
>  at 
> org.netbeans.modules.css.lib.api.properties.ResolvedProperty.(ResolvedProperty.java:45)
>  at 
> org.netbeans.modules.css.editor.csl.CssAnalyser$1.visit(CssAnalyser.java:149) 
> at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:89)
>  at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:93)
>  at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:93)
>  at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:93)
>  at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:93)
>  at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:93)
>  at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:93)
>  at 
> org.netbeans.modules.css.editor.csl.CssAnalyser.getExtendedDiagnostics(CssAnalyser.java:200)
>  at 
> org.netbeans.modules.css.lib.ErrorsProviderQuery.getExtendedDiagnostics(ErrorsProviderQuery.java:47)
>  at 
> org.netbeans.modules.css.lib.api.CssParserResult.getDiagnostics(CssParserResult.java:79)
>  at 
> org.netbeans.modules.css.lib.api.CssParserResult.getDiagnostics(CssParserResult.java:97)
>  at 
> org.netbeans.modules.csl.core.TLIndexerFactory$TLIndexer.index(TLIndexerFactory.java:265)
>  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 
> 

[jira] [Updated] (NETBEANS-5214) AssertionError when scanning certain projects (CSS parser problem)

2021-01-04 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated NETBEANS-5214:
-
Labels: pull-request-available  (was: )

> AssertionError when scanning certain projects (CSS parser problem)
> --
>
> Key: NETBEANS-5214
> URL: https://issues.apache.org/jira/browse/NETBEANS-5214
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Parsing  Indexing
>Affects Versions: Next
> Environment: Windows 10 64-bit, Oracle JDK 1.8 and OpenJDK 11.0.6
>Reporter: Michal Koscielny
>Assignee: Matthias Bläsing
>Priority: Major
>  Labels: pull-request-available
> Attachments: testcss2.zip
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> (Regards build #226 20210103-release)
> When scanning certain projects for the first time Netbeans reports a 
> java.lang.AssertionError, it looks like it's caused by the css parser. The 
> error does not reappear when opening the project for the second time, but 
> when I delete the Netbeans cache folder the scanning happens again and the 
> error reappears.
> I attach a simple project to reproduce it - it essentially contains only 
> tinymce editor library, I suspect one of its minimized css files might be 
> causing the problem.
> Here is the error:
> {{java.lang.AssertionErrorjava.lang.AssertionError at 
> org.netbeans.modules.css.lib.api.properties.GrammarResolver.resolve(GrammarResolver.java:299)
>  at 
> org.netbeans.modules.css.lib.api.properties.GrammarResolver.resolve(GrammarResolver.java:129)
>  at 
> org.netbeans.modules.css.lib.api.properties.GrammarResolver.resolve(GrammarResolver.java:83)
>  at 
> org.netbeans.modules.css.lib.api.properties.ResolvedProperty.(ResolvedProperty.java:59)
>  at 
> org.netbeans.modules.css.lib.api.properties.ResolvedProperty.(ResolvedProperty.java:45)
>  at 
> org.netbeans.modules.css.editor.csl.CssAnalyser$1.visit(CssAnalyser.java:149) 
> at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:89)
>  at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:93)
>  at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:93)
>  at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:93)
>  at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:93)
>  at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:93)
>  at 
> org.netbeans.modules.css.lib.api.NodeVisitor.visitChildren(NodeVisitor.java:93)
>  at 
> org.netbeans.modules.css.editor.csl.CssAnalyser.getExtendedDiagnostics(CssAnalyser.java:200)
>  at 
> org.netbeans.modules.css.lib.ErrorsProviderQuery.getExtendedDiagnostics(ErrorsProviderQuery.java:47)
>  at 
> org.netbeans.modules.css.lib.api.CssParserResult.getDiagnostics(CssParserResult.java:79)
>  at 
> org.netbeans.modules.css.lib.api.CssParserResult.getDiagnostics(CssParserResult.java:97)
>  at 
> org.netbeans.modules.csl.core.TLIndexerFactory$TLIndexer.index(TLIndexerFactory.java:265)
>  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 
>