Discussion:
[Qt-creator] QtCreator 4.7 RC Feedback
Michael Jackson
2018-07-04 16:10:08 UTC
Permalink
Just wanted to throw some feedback while I use the 4.7 Betas and RCs on my macOS systems. For the most part I like what I am seeing but there currently is an issue that is really starting to get in the way. The speed at which a C++ file is parsed so that all the syntax highlighting and coloring becomes available is taking way too long. With QtCreator 4.5 and 4.6 I would open a file and only a second at most would pass and the method drop downs would be populated and I could start navigating. With the 4.7 series (latest I pulled was from July 4th) it takes 10 seconds to get the syntax highlighting and navigating. (I did a side-by-side comparison with a screen recording to verify the times).
I know that QtCreator is still in the RC mode and still being developed but that wait times are making navigating a real issue. My question: Are there still optimizations still being worked on for the final release? I know from a previous post that the code model and clang-tidy were thrown onto separate threads for good reasons but something else is happening to slow down that initial parse/navigation stage.

Again, thank you for the wonderful IDE that I use and rely on every day. I don't think I could develop C++ codes on macOS without it.

--
Mike Jackson | Owner, President
BlueQuartz Software
[e] ***@bluequartz.net
[w] www.bluequartz.net
Ivan Donchevskii
2018-07-04 19:33:03 UTC
Permalink
Hi!
If the initial parsing time is absolutely crucial for you you can turn ClangCodeModel plugin off (it's turned on be default since 4.7). ClangCodeModel provides more precise results but takes longer to parse files. We did some work to make it faster but the most recent part of it was mostly about code completion.

Also it's important that you use our prebuilt libclang shipped with Qt Creator installer but not the one in your system because it might provide the slowdown.


Hope that my answer helps you

Kind regards
Ivan

________________________________
From: Qt-creator <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of Michael Jackson <***@bluequartz.net>
Sent: Wednesday, July 4, 2018 6:10:08 PM
To: qt-***@qt-project.org
Subject: [Qt-creator] QtCreator 4.7 RC Feedback

Just wanted to throw some feedback while I use the 4.7 Betas and RCs on my macOS systems. For the most part I like what I am seeing but there currently is an issue that is really starting to get in the way. The speed at which a C++ file is parsed so that all the syntax highlighting and coloring becomes available is taking way too long. With QtCreator 4.5 and 4.6 I would open a file and only a second at most would pass and the method drop downs would be populated and I could start navigating. With the 4.7 series (latest I pulled was from July 4th) it takes 10 seconds to get the syntax highlighting and navigating. (I did a side-by-side comparison with a screen recording to verify the times).
I know that QtCreator is still in the RC mode and still being developed but that wait times are making navigating a real issue. My question: Are there still optimizations still being worked on for the final release? I know from a previous post that the code model and clang-tidy were thrown onto separate threads for good reasons but something else is happening to slow down that initial parse/navigation stage.

Again, thank you for the wonderful IDE that I use and rely on every day. I don't think I could develop C++ codes on macOS without it.

--
Mike Jackson | Owner, President
BlueQuartz Software
[e] ***@bluequartz.net
[w] www.bluequartz.net<http://www.bluequartz.net>
Michael Jackson
2018-07-05 02:32:40 UTC
Permalink
Ok, Good suggestion. I went back and for the QtC 4.6 test the Clang code model was turned off. So I went back and tried again. The Syntax highlighting took about 5 seconds for the particular file that I am using as my benchmark. More Importantly the drop down was populated with the methods of the class in about 2 seconds which is reasonable. At least I can start navigating quickly. By the time I find the method I am interested in, the syntax highlighting is kicking in. With QtC 4.7 it is a different story. The function drop down appears at the same time as I get the highlighting which is about 10 seconds based on my screen captures. Of course I also get the full syntax highlighting at that point also BUT not I have to wait that entire time. I guess I would rather have the function drop down get populated first, then the syntax highlighting/code completion if that takes longer? Of course I could argue it both ways. I got used to the way that Qt4.5 and 4.6 did it so now having to wait breaks the cadence of opening a file and getting right to work on it.



My system is macOS 10.13.x on a 2013 15” MacBook Pro. I sure hope that Xcode’s libClang is not getting in the way. I would hope that the one from QtC is used. Not sure how I would check that.



I can do some side by side screen recordings showing the differences on my system anyone is interested.



--

Mike Jackson



On 7/4/18, 3:33 PM, "Ivan Donchevskii" <***@qt.io> wrote:



Hi!
If the initial parsing time is absolutely crucial for you you can turn ClangCodeModel plugin off (it's turned on be default since 4.7). ClangCodeModel provides more precise results but takes longer to parse files. We did some work to make it faster but the most recent part of it was mostly about code completion.

Also it's important that you use our prebuilt libclang shipped with Qt Creator installer but not the one in your system because it might provide the slowdown.



Hope that my answer helps you

Kind regards
Ivan

From: Qt-creator <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of Michael Jackson <***@bluequartz.net>
Sent: Wednesday, July 4, 2018 6:10:08 PM
To: qt-***@qt-project.org
Subject: [Qt-creator] QtCreator 4.7 RC Feedback



Just wanted to throw some feedback while I use the 4.7 Betas and RCs on my macOS systems. For the most part I like what I am seeing but there currently is an issue that is really starting to get in the way. The speed at which a C++ file is parsed so that all the syntax highlighting and coloring becomes available is taking way too long. With QtCreator 4.5 and 4.6 I would open a file and only a second at most would pass and the method drop downs would be populated and I could start navigating. With the 4.7 series (latest I pulled was from July 4th) it takes 10 seconds to get the syntax highlighting and navigating. (I did a side-by-side comparison with a screen recording to verify the times).
I know that QtCreator is still in the RC mode and still being developed but that wait times are making navigating a real issue. My question: Are there still optimizations still being worked on for the final release? I know from a previous post that the code model and clang-tidy were thrown onto separate threads for good reasons but something else is happening to slow down that initial parse/navigation stage.

Again, thank you for the wonderful IDE that I use and rely on every day. I don't think I could develop C++ codes on macOS without it.

--
Mike Jackson | Owner, President
BlueQuartz Software
[e] ***@bluequartz.net
[w] www.bluequartz.net
Eike Ziller
2018-07-05 05:45:16 UTC
Permalink
Post by Michael Jackson
Ok, Good suggestion. I went back and for the QtC 4.6 test the Clang code model was turned off. So I went back and tried again. The Syntax highlighting took about 5 seconds for the particular file that I am using as my benchmark. More Importantly the drop down was populated with the methods of the class in about 2 seconds which is reasonable. At least I can start navigating quickly. By the time I find the method I am interested in, the syntax highlighting is kicking in. With QtC 4.7 it is a different story. The function drop down appears at the same time as I get the highlighting which is about 10 seconds based on my screen captures. Of course I also get the full syntax highlighting at that point also BUT not I have to wait that entire time. I guess I would rather have the function drop down get populated first, then the syntax highlighting/code completion if that takes longer? Of course I could argue it both ways. I got used to the way that Qt4.5 and 4.6 did it so now having to wait breaks the cadence of opening a file and getting right to work on it.
My system is macOS 10.13.x on a 2013 15” MacBook Pro. I sure hope that Xcode’s libClang is not getting in the way. I would hope that the one from QtC is used. Not sure how I would check that.
I doubt that some other libclang gets in the way, but to be sure you can check in Activity Monitor:

- find and select the Qt Creator process
- click the info tool button
- select “Open Files and Ports”
- search for libclang and check the path

Br, Eike
Post by Michael Jackson
I can do some side by side screen recordings showing the differences on my system anyone is interested.
--
Mike Jackson
Hi!
If the initial parsing time is absolutely crucial for you you can turn ClangCodeModel plugin off (it's turned on be default since 4.7). ClangCodeModel provides more precise results but takes longer to parse files. We did some work to make it faster but the most recent part of it was mostly about code completion.
Also it's important that you use our prebuilt libclang shipped with Qt Creator installer but not the one in your system because it might provide the slowdown.
Hope that my answer helps you
Kind regards
Ivan
Sent: Wednesday, July 4, 2018 6:10:08 PM
Subject: [Qt-creator] QtCreator 4.7 RC Feedback
Just wanted to throw some feedback while I use the 4.7 Betas and RCs on my macOS systems. For the most part I like what I am seeing but there currently is an issue that is really starting to get in the way. The speed at which a C++ file is parsed so that all the syntax highlighting and coloring becomes available is taking way too long. With QtCreator 4.5 and 4.6 I would open a file and only a second at most would pass and the method drop downs would be populated and I could start navigating. With the 4.7 series (latest I pulled was from July 4th) it takes 10 seconds to get the syntax highlighting and navigating. (I did a side-by-side comparison with a screen recording to verify the times).
I know that QtCreator is still in the RC mode and still being developed but that wait times are making navigating a real issue. My question: Are there still optimizations still being worked on for the final release? I know from a previous post that the code model and clang-tidy were thrown onto separate threads for good reasons but something else is happening to slow down that initial parse/navigation stage.
Again, thank you for the wonderful IDE that I use and rely on every day. I don't think I could develop C++ codes on macOS without it.
--
Mike Jackson | Owner, President
BlueQuartz Software
[w] www.bluequartz.net
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
***@qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
Jason H
2018-07-05 14:46:50 UTC
Permalink
QML Enums are _still_ not syntax-highlighted. https://bugreports.qt.io/browse/QTCREATORBUG-19226

My other _want_so_bad_ are also not in:
https://bugreports.qt.io/browse/QTCREATORBUG-16925 - Find result locations in scrollbars other than code pane. (Help, application output)
Jason H
2018-07-09 13:20:01 UTC
Permalink
Major Kudos to whomever added the cast<type> fixit!

Loading...