Commit Graph

68765 Commits

Author SHA1 Message Date
Marco Bubke
4aa7c89aad Nanotracer: Add copy for object token
Change-Id: I8d11284db1b38eeff6f271495f3095b49415f78c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-10-17 12:04:27 +00:00
Marco Bubke
b6f14a5421 Nanotracer: Simplifying tracer
It is not only simpler but more flexible too.

Change-Id: I9b4b0e522865270bcb84ea5d343d7f8ada708d3b
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-10-17 12:03:10 +00:00
Marco Bubke
707585da44 Nanotrace: Print only ids for event types which have an id
Change-Id: Idf41483b09a54f93f2d84f3ad9d5712b218e373c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-17 12:02:13 +00:00
Marco Bubke
f7314133fe Nanotrace: Remove the magic booleans and use an enumeration
Hopefully it will make more clear what is disabled or enabled.

Change-Id: Ibc9b2329f5b664ba346bafeb27c54cf082758449
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-10-17 12:01:24 +00:00
Marco Bubke
120f587d58 Nanotrace: Change event queue allocation
The event queue data will be not filled with zero if it has internal
linkage.

Change-Id: Icb7798ac7ad8cc4c4f486b49e9d94f08625b818a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-10-17 11:57:55 +00:00
Marco Bubke
ad12bbb669 QmlDesigner: Add object trace
'N' and 'D' phases are not supported by Perfetto. So I mapped it to
async events. This patch is improving the interface for arguments too.
Now you can select the type for you arguments. So the name can be a
string_view but the arguments can be a string.

The variadic template arguments are used to prevent any conversion code
which could not be optimized out for an empty function.

Change-Id: I1ad1927b5e3b63607a21df1351b1f5cfba50159c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-17 11:55:03 +00:00
Marco Bubke
11bf705e26 QmlDesigner: Add move only trace token
It is quite hard to define always an end to a trace. A move only
token can do that. The drawback is that the token gets bigger but only
compile them for an avtivated category.

Change-Id: I88b47c5b47e4129b1cd402e89251b45fa126111c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-10-17 11:43:58 +00:00
Marcus Tillmanns
ab23ee98f9 PackageManager: Search for vcpkg in project root
Change-Id: I467476e6897f36558afc76a262f631cdaa47320e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-10-17 11:43:57 +00:00
Marco Bubke
3d8c740705 Nanotrace: Optimize the id counter
We use the atomic only to get an offset and then use it as an normal
counter.

Change-Id: Ieef3c318107c26227efd2e493bf4a76b5744dff8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-10-17 11:43:23 +00:00
Cristian Adam
2e2248e80e CMakePM: Allow invalid file characters as part of preset names
The fact that Qt Creator uses the preset name to create a directory and
then import the directory is an implementation detail.

This changeset will allow characters like ":" to be part of the preset
name.

Task-number: QTCREATORBUG-29643
Change-Id: I84a224b78eb3d2233f80d9bdb8bf4478471349b0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-17 11:37:57 +00:00
Marcus Tillmanns
e13c1a1239 CompilerExplorer: Fix display of selected library
Change-Id: I44085ef914930a16f14a2fc79e2941852dc2e4fb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-17 09:24:22 +00:00
Christian Stenger
effe73024f AutoTest: Avoid duplicated logging category
Change-Id: I6b8b56176f4f5e919badd87e7603f1b05a0f0245
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-17 09:09:33 +00:00
Alessandro Portale
30e8a1db55 ScreenRecorder: Switch from Experimental to DisabledByDefault
Trivial plugins may apparently skip the experimental state on their
introduction. At least according to the mutilple request towards me to
do so with the ScreenRecorder plugin.

Change-Id: I1e3d911ee79548d0fd72d3af0e3a568f6ab88d5a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-17 09:06:34 +00:00
Leena Miettinen
66f77f749e Copilot: Fix UI text for proxy settings
Change-Id: I36854db711d697bd1cb0ffc8a646e00c97979e2f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-10-17 08:59:27 +00:00
Marcus Tillmanns
1891c37b46 CompilerExplorer: Fix restoring library selection
Change-Id: Iae64cf8629495457e423d9e635b2ffcf912d89b8
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-17 08:58:43 +00:00
Marcus Tillmanns
e3f33962e3 CompilerExplorer: Fix highlighter for assembly
Change-Id: Id58546d99232b19252c99da5018c1ce45a2e8dc5
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-17 08:53:45 +00:00
Marcus Tillmanns
d8a75d48a3 TextEditor: Add selecting highlighter by name
Change-Id: I5c706dd151173bf08c5fbd4dacbf6e5d6416b87b
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-17 08:47:45 +00:00
Amr Essam
d8bbbd2494 QmlDesigner: Compile effect maker shaders using qsb tool
Task-number: QDS-10811
Change-Id: I6028dea262b2658838b59156ac062657cc4ef3f0
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-10-17 08:41:16 +00:00
David Schulz
f2934f8497 Utils: avoid another assert in FileSystemWatcher
amends f77635883b

Change-Id: I2b0f92db3218192457a08ff8a473444fd2f811a8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-17 08:01:41 +00:00
Eike Ziller
c2a470e853 Revert "TextEditor: Hide LineNumberFilter implementation"
Fixes missing "Line in Current Document" locator filter.
Locator filters need to be created during startup.

This reverts commit 8af6d16b6c.

Change-Id: I53ec1c1079b4a719169e8db95b6d77f703264b65
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-17 07:46:02 +00:00
Christian Stenger
54b841f789 QtSupport: Store Qt versions after autodetection on startup
Restores old behavior. When QC is started with a Qt in PATH but
without existing settings it ran the autodetection and stored
the Qt versions to disk. This made it possible to restart QC later
with the same settingspath, but without having Qt in PATH.
Without this patch the Qt versions of QC only got persisted if
the settings dialog had been opened at least once and closed with
Ok (or an explicit Apply).

Change-Id: I74bd9bc0b96d5ff66e5a81200d6a269a5411a5ea
Reviewed-by: hjk <hjk@qt.io>
2023-10-17 07:39:31 +00:00
Eike Ziller
3363d71888 Build: Fix handling of (s)ccache support
So it also works when building individual projects like cdbext

Change-Id: Ibb9cac77146a9f19cbbe22f2c7257b951f38f3fc
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-10-17 07:30:51 +00:00
Marcus Tillmanns
98d3508baa Docker: Fix deadlock
The blocking queued connection could block the main thread
if the main thread was blocking for an action that would access
the docker device.

Change-Id: I79c0c74688ac77f2763b9aa748386f27be011304
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-17 07:25:09 +00:00
Cristian Adam
16b147d563 CMakePM: Expand macros in cmakeExecutable CMake preset value
The specification allows this, so we need to support it.

Task-number: QTCREATORBUG-29643
Change-Id: I8bd0a91ba05d2ed27b7a7af2d268539de020826f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-17 06:36:29 +00:00
Cristian Adam
12a6d9e5dc CMakePM: Update CMake conan to latest version
Url: https://github.com/conan-io/cmake-conan/blob/develop2/
conan_provider.cmake
sha: 451fa97d2c59c07b13fb4812a64b2a6391f9e781

Change-Id: Ia52f5d856cf045d7a1d1871d6d43fd1d014439c4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-16 20:05:21 +00:00
Eike Ziller
1359e9c84f Tr: Fix some plurals
Change-Id: I9d7a52a64536e6e1c0a9da4f3cb2f3a116afb6cd
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-16 13:19:28 +00:00
Eike Ziller
abeb2287ce Tr: Fix some quoting
Change-Id: I91c515822d48b4efb7c7869c5afe06b5375bf20e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-16 13:16:00 +00:00
Christian Kandeler
ab16e61ab4 CppEditor: Do not match scope names in "all symbols" locator
Instead, put the scope name into the extra info.
Amends 91dbac0303.

Fixes: QTCREATORBUG-29133
Change-Id: I7eb0d76782135c4246769728451985dc72e31f4d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-16 12:28:04 +00:00
Christian Kandeler
b6d7990f25 TextEditor: Add missing colon to label text
Change-Id: Ie8b727d2405ff14f0ce7aa55dec4d56514405b37
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-16 11:28:24 +00:00
Artem Sokolovskii
358ecee5e8 DAP: Remember current engine after restart
Change-Id: I13a6c559a3a5bb9f40c95ef3932d796776cd26ce
Reviewed-by: hjk <hjk@qt.io>
2023-10-16 11:08:41 +00:00
David Schulz
cad73e4f1a LanguageClient: avoid assert on init response
Fixes: QTCREATORBUG-29748
Change-Id: I6b86906f302be6e0eb3a89eaf851f7231bf78586
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-10-16 11:03:29 +00:00
Eike Ziller
f1fe8392d2 Tr: Fix shortcut display for exiting FakeVim
Qt "Meta" is macOS "Control"

Change-Id: I9c2ca5fe25d70da97871e54060c892eb6fa78e0a
Reviewed-by: hjk <hjk@qt.io>
2023-10-16 10:23:26 +00:00
Marcus Tillmanns
a4df0a3cc4 CompilerExplorer: Add "powered by" label
Change-Id: I0006d314ee69f863e48196a7719a3ef7ebc127ae
Reviewed-by: hjk <hjk@qt.io>
2023-10-16 08:07:36 +00:00
Marcus Tillmanns
8475872e10 CompilerExplorer: Add missing translation
Change-Id: If12a0530addf3c815d7b3a25b6dfdd90d29361a6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-16 08:05:50 +00:00
hjk
5859384250 Debugger: Update internal buffer before checking dirtyness
Fixes: QTCREATORBUG-29746
Change-Id: I63f3c5bd2c628b42ba23dd19d80a410dbca8cfc1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-16 07:45:12 +00:00
Cristian Adam
d7f44cdd24 CMakePM: Enable ANSI codes colored output
Qt Creator is able to display colored output for the _Compile Output_
and _General Messages_ panes.

This commit enables CMake and tools to use this functionality.

See https://cmake.org/cmake/help/latest/variable/
CMAKE_COLOR_DIAGNOSTICS.html and http://bixense.com/clicolors/ for more
details.

Change-Id: Ied4058bbd2522750d559b05d585092830ce3a911
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-10-16 07:29:56 +00:00
David Schulz
eab779d13a LanguageClient: report error for requests on unreachable server
Change-Id: I5444279b544a1aab3896f9e12ab7cad595a49267
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-16 07:21:25 +00:00
David Schulz
085949bbae LanguageClient: do not assert on sending messages to a dying client
Fixes: QTCREATORBUG-29747
Change-Id: I14067695425d74eaeaa255b370ebf4106c0ac591
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-10-16 07:21:15 +00:00
Marco Bubke
1faa8e29e2 Nanotrace: Add asynchronous trace points
With asynchronous traces you can follow complex tasks.

Change-Id: Ia0fd20f34f3529c59eff5d222c8d87ac5dacd514
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-10-13 15:17:59 +00:00
Marco Bubke
33084f228e Nanotrace: Only print existing trace points
Change-Id: Id65b4154eac7d3cfda247514b7a59abfd7f6d0a5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-10-13 15:16:10 +00:00
Marco Bubke
d98fa1f173 QmlDesigner: Fix typo
Change-Id: I95d015bde565995d3c5429e0dbb94782e2dd0981
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-10-13 15:15:59 +00:00
Marco Bubke
c4deafc555 Nanotrace: Export functions and add dependencies
Under linux it was linking But I think it will not work under windows
without exports.

Change-Id: Idd27583defc1c00a6bb2426efb160e7d90abd3df
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-10-13 15:15:50 +00:00
Marco Bubke
077320d74c QmlDesigner: Fix thread local tracing categories
The macro was not exported to the category was not enabled in other
targets for inline functions.

Change-Id: I176df1bc6aaaf8b3c8851224e78e43238a98a3a8
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-13 15:15:43 +00:00
Marco Bubke
dcbb07544e QmlDesigner: Use raw string to improve readability
Change-Id: Id829dde077dd95c7cfd10af0a0e6389db2701953
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-13 15:15:34 +00:00
Cristian Adam
52fa2c369e CMakePM: Remove compiler group for all generated sources
Change-Id: Ie30bb63c96438d3582a7d2b753b9677a4a95fe9b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-13 13:30:46 +00:00
Christian Kandeler
0bfa8fd718 ClangCodeModel: Allow users to choose between completion ranking models
... in clangd.

Task-number: QTCREATORBUG-29013
Change-Id: Idd80a195709e9813f1713a048f6229a7dd6493ba
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-13 13:03:21 +00:00
Mahmoud Badri
c3e4258b78 EffectMaker: Clear composition nodes on view attach
Fixes: QDS-10513
Change-Id: I3d2b1369c4e33fb6e21311c59a92625437382602
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-10-13 12:36:26 +00:00
Christian Stenger
43cfe48fed ClangCodeModel: Respect settings
If the user disables usage of clangd and opens a cpp file
without a project we still tried to set up the fallback clangd.
Silences a soft assert.

Change-Id: I753ce2eddb00b344b109ba4ff3da61a849767a79
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-13 12:34:19 +00:00
Mahmoud Badri
5c68f4fa21 EffectMaker: Ensure node categories sorting order across all OSs
Fixes: QDS-10520
Change-Id: I24cc5c3a858be31acc3e72d563947cd991cef5a8
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
2023-10-13 12:08:03 +00:00
Christian Stenger
3a671c2bb9 ProjectExplorer: Fix autodetect of toolchains on macOS
...when not loading the iOS plugin. Fixes a condition and
lowers priority of gcc/g++ on macOS in general.
Without this patch Qt related kits had a detected g++/gcc
assigned as compiler which made the kits useless.
When loading the iOS plugin the Apple related clang is
preferred which made the issue not present by default.
Fixes execution of AutoTest and ClangTools plugin unit
tests too.

Change-Id: I7515980c0fda48c942d7f3e7cb4d8c66965a1ab3
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-13 11:37:58 +00:00