KDevelop can't load project: "too large document"?

Matthew Woehlke mwoehlke.floss at gmail.com
Mon Dec 11 15:14:57 GMT 2017


On 2017-12-08 17:04, Sven Brauch wrote:
> On 08/12/17 22:59, Matthew Woehlke wrote:
>> At any rate, it's probably safe enough to apply at least my patch, which
>> gets us to an assuredly better position than we're at otherwise.
> 
> Hmm, again, why is this happening? Isn't this a bug in cmake?

It's a confluence of three bugs or (mis)features:

- CMake sends an enormous response
- QJson refuses to parse said response¹
- KDevelop does not handle said failure gracefully

(¹ https://bugreports.qt.io/browse/QTBUG-58652)

In some senses, it's actually the last is the "most bug-like", and is
what my patch addresses. IMHO this should be fixed regardless, since it
is making KDevelop more robust against unexpected conditions at minimal
cost; it will provide more graceful degradation in case of QJson failure
for *any* reason. (In particular, as René notes, it should improve
things in the case that the server sends a corrupt response for some
reason. We don't *expect* that would ever happen, but right now, if it
did, it would cause the same symptoms.)

-- 
Matthew




More information about the KDevelop mailing list