Creator 13 + clang code model completer mess-up
-
Creator 13.0.0 with clang code model/completion. Default settings.
Seemingly, in some circumstances, when inserting the first statement inside a function/method I get "mess up".
I start with an new, empty method like:
void Class::method() { }(Happens whether or not I have put the declaration for the class member method in the
.hfile.)I now open a line and type the start of any function (declared or not):

So far, so good. Now I type the opening parenthesis, and this is what it does:

[You might want to click on that pic to enlarge it.] That is 9 sets of the left-hand-line-thing plus spaces, throwing me right across the page. Yuck!
As and when I type the terminating
;it (thankfully) reverts to:
But it's really disconcerting!
Can I reproduce? Yes. Can I tell you when it will happen? No! Tried elsewhere in that
.cppfile (result: similar behaviour, but sometimes fewer than 9 of the "left-hand-line-thing plus spaces" inserted), in other files (sometimes similar, sometimes no extra inserts). Seemingly only happens on first statement in a function. I don't know what the pattern is, though it might not happen in an "empty" file.[BTW, it's not just a screen-misdraw: those extra indenting spaces are there (as a single item) in the Undo history.]
Nobody experiencing same?
-
I am having the same issue, I figured it's somehow related to autointendation setting, it's getting confused sometimes.
-
@artwaw
LOL. So I'm neither going mad nor alone in this! Absolutely I'm sure it's "related to autointendation"!So that I know what to expect, what Creator version are you, and what platform?
-
Can reproduce it too.
It's a bug, clearly. -
Creator 13.0.0 with clang code model/completion. Default settings.
Seemingly, in some circumstances, when inserting the first statement inside a function/method I get "mess up".
I start with an new, empty method like:
void Class::method() { }(Happens whether or not I have put the declaration for the class member method in the
.hfile.)I now open a line and type the start of any function (declared or not):

So far, so good. Now I type the opening parenthesis, and this is what it does:

[You might want to click on that pic to enlarge it.] That is 9 sets of the left-hand-line-thing plus spaces, throwing me right across the page. Yuck!
As and when I type the terminating
;it (thankfully) reverts to:
But it's really disconcerting!
Can I reproduce? Yes. Can I tell you when it will happen? No! Tried elsewhere in that
.cppfile (result: similar behaviour, but sometimes fewer than 9 of the "left-hand-line-thing plus spaces" inserted), in other files (sometimes similar, sometimes no extra inserts). Seemingly only happens on first statement in a function. I don't know what the pattern is, though it might not happen in an "empty" file.[BTW, it's not just a screen-misdraw: those extra indenting spaces are there (as a single item) in the Undo history.]
Nobody experiencing same?
@JonB I also have this with QtC14, less frequently but it does happen.
Have you ever tried ordering arguments or initlizerlists vertically ? A nightmare. It just moves it one line lower, with the whitespaces added to place it at roughly the same horizontal place as before.
Then you manually move it to the left below the first argument/entry, to where you want it then it stays there until it doesn't, every once in a while a new element/argument added will move everything back to the right.