Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
11.3
-
None
-
Product Version: Apache NetBeans IDE 11.3-beta2
Java: 11.0.2; Java HotSpot(TM) 64-Bit Server VM 11.0.2+9-LTS
Runtime: Java(TM) SE Runtime Environment 11.0.2+9-LTS
System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
User directory: C:\Users\Chrl\AppData\Roaming\NetBeans\11.3-beta2
Cache directory: C:\Users\Chrl\AppData\Local\NetBeans\Cache\11.3-beta2Product Version: Apache NetBeans IDE 11.3-beta2 Java: 11.0.2; Java HotSpot(TM) 64-Bit Server VM 11.0.2+9-LTS Runtime: Java(TM) SE Runtime Environment 11.0.2+9-LTS System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb) User directory: C:\Users\Chrl\AppData\Roaming\NetBeans\11.3-beta2 Cache directory: C:\Users\Chrl\AppData\Local\NetBeans\Cache\11.3-beta2
Description
I downloaded the newest version of NetBeans 11.3 beta 2. I tried to add a new language via Options -> Editor -> Language Servers for HTTP. See my attached textmate file for that.
After I added the language and hit apply on the options window, I got this exception:
org.xml.sax.SAXParseException; lineNumber: 66; columnNumber: 34; The content of elements must consist of well-formed character data or markup.
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1243)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
at org.eclipse.tm4e.core.internal.parser.xml.XMLPListParser.parse(XMLPListParser.java:48)
at org.eclipse.tm4e.core.internal.grammar.reader.GrammarReader$1.parse(GrammarReader.java:36)
at org.eclipse.tm4e.core.internal.grammar.reader.SyncGrammarReader.load(SyncGrammarReader.java:33)
at org.eclipse.tm4e.core.internal.grammar.reader.GrammarReader.readGrammarSync(GrammarReader.java:52)
at org.eclipse.tm4e.core.registry.Registry.loadGrammarFromPathSync(Registry.java:154)
at org.eclipse.tm4e.core.registry.Registry.loadGrammarFromPathSync(Registry.java:144)
at org.eclipse.tm4e.core.registry.Registry.loadGrammarFromPathSync(Registry.java:140)
at org.netbeans.modules.lsp.client.options.LanguageStorage.findScope(LanguageStorage.java:231)
[catch] at org.netbeans.modules.lsp.client.options.LanguageStorage.lambda$store$1(LanguageStorage.java:115)
at org.openide.filesystems.FileUtil$2.run(FileUtil.java:413)
at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:102)
at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:494)
at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:397)
at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:417)
at org.netbeans.modules.lsp.client.options.LanguageStorage.store(LanguageStorage.java:65)
at org.netbeans.modules.lsp.client.options.LanguageServersPanel.store(LanguageServersPanel.java:193)
at org.netbeans.modules.lsp.client.options.LanguageServersOptionsPanelController$1.run(LanguageServersOptionsPanelController.java:51)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
The exception is hidden inside of the Notifications, this wouldn't be a problem, but the problem is, that the lexer get's not affected to the given file. So nothing happened after I tried to add this lexer.