XIAOXIAOSIYU commented on issue #6175: URL: https://github.com/apache/netbeans/issues/6175#issuecomment-1631373927
I don't know why but this time it works! Here is how I did it: 1. Download installer from: https://dlcdn.apache.org/netbeans/netbeans-installers/18/Apache-NetBeans-18-bin-windows-x64.exe 2. Installation process: 2.1 Uncheck Java SE and Java EE 2.2 Says 'The specified installation folder is not empty, I delete that folder (I guess that was generated from the last time I install the application) and the error information disappeared and then I click on 'Next>' 3. I left other options as default 4. The installation was completed, then I ran it. 5. Create a new HTML5 Project: File -> New Project, Choose Category "HTML5/Javascript", select "HTML5/JS Application" and then "Next" 6. The creation process asks for Site Template, I choose No Site Template, then "Next" 7. The creation process asks for Tools, I uncheck all 4 of them, then "Finish" 8. The creation process creates an "index.html" for me and automatically opens it 9. Create a new file test.css in the Site Root folder by clicking the right button on "Site Root"->New->Cascading Style Sheet File->Change name to "test.css", leave other options as default, and then "Finish" 10. Copy and paste the code from your previous post to test.css, then "Save" it 11. Switch to file "index.html", insert an empty line after the last metatag, and fill it with <link href="test.css" rel="stylesheet" />, then "Save" 12. Place caret behind the div of the div-Element in the body and enter class=" 13. Call code completion (CTRL+Space) 14. It works. 15. And then I close this project and open an existing project, waiting for everything loaded and try it again, it works too. but with an error: `java.util.ConcurrentModificationException at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:764) at java.base/java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:796) at java.base/java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:794) at org.netbeans.modules.javascript2.model.ModelVisitor.enterClassNode(ModelVisitor.java:715) at com.oracle.js.parser.ir.ClassNode.accept(ClassNode.java:169) at com.oracle.js.parser.ir.ExportNode.accept(ExportNode.java:180) at org.netbeans.modules.javascript2.model.ModelVisitor.enterFunctionNode(ModelVisitor.java:979) at com.oracle.js.parser.ir.FunctionNode.accept(FunctionNode.java:319) at com.oracle.js.parser.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:76) at com.oracle.js.parser.ir.LexicalContextExpression.accept(LexicalContextExpression.java:63) at org.netbeans.modules.javascript2.model.ModelVisitor.init(ModelVisitor.java:137) at org.netbeans.modules.javascript2.model.api.Model.getModelVisitor(Model.java:160) at org.netbeans.modules.javascript2.model.api.Model.getGlobalObject(Model.java:459) at org.netbeans.modules.javascript2.editor.index.JsIndexer.index(JsIndexer.java:97) 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:274) at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:223) [catch] at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1T.run(RepositoryUpdater.java:3229) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586) at org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:169) at org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:140) 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:85) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.indexEmbedding(RepositoryUpdater.java:3268) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2861) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.lambda$index$0(RepositoryUpdater.java:2626) at org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:540) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:2625) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.lambda$scanSource$3(RepositoryUpdater.java:5735) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.lambda$runInContext$4(RepositoryUpdater.java:2119) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2117) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2098) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.access$1400(RepositoryUpdater.java:135) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSource(RepositoryUpdater.java:5770) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSources(RepositoryUpdater.java:5443) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:5075) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3452) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6197) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$3400(RepositoryUpdater.java:5855) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.lambda$call$0(RepositoryUpdater.java:6116) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288) at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.performScan(RunWhenScanFinishedSupport.java:83) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6116) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6112) 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.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:6112) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1419) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2034) ` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
