KDevelop can't load project: "too large document"?
René J.V. Bertin
rjvbertin at gmail.com
Fri Dec 8 22:56:35 GMT 2017
On Friday December 08 2017 23:04:21 Sven Brauch wrote:
> Hmm, again, why is this happening? Isn't this a bug in cmake?
Yes (or a feature that should have a disable option) but not the fixed upper limit to JSON processing. That's given that will probably also be hit without the useless junk in the cmake output, for large enough projects.
Matthews way of handling JSON errors is not just a workaround for a particular CMake bug but simply makes sense IMHO. That JSON input doesn't come from some failsafe helper (because a 3rd party product) so the code processing it should be prepared to handle errors gracefully when they occur. If it already does this for "normal server errors" then it seems logical to handle JSON errors the same way (they are caused by the server doing something wrong after all).
More information about the KDevelop