lahodaj commented on code in PR #9749:
URL: https://github.com/apache/netbeans/pull/9749#discussion_r4434747389
##########
ide/lsp.client/nbproject/project.xml:
##########
@@ -102,6 +102,14 @@
<specification-version>1.0</specification-version>
</run-dependency>
</dependency>
+ <dependency>
+ <code-name-base>org.netbeans.libs.jackson</code-name-base>
Review Comment:
So, unfortunately, the real-world language configurations (at least the
C/C++ one) contain things like comments:
https://github.com/microsoft/vscode/blob/1306698e328e5e531f5e632301d30020aa994eff/extensions/cpp/language-configuration.json#L110
or trailing commas in object definitions:
https://github.com/microsoft/vscode/blob/1306698e328e5e531f5e632301d30020aa994eff/extensions/cpp/language-configuration.json#L106
Given the goal here is to be able to use the unmodified language
configuration files, we need a parser that can tolerate both of these, and I
believe Gson cannot be configured to tolerate the trailing commas, and the
simple json does not tolerate the comments (although I admit I didn't know
about the simple json). Jackson can be configured to tolerate both of these
misbehaviors.
--
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