Commit Graph

88653 Commits

Author SHA1 Message Date
Christian Kandeler
1723af0206 ClangCodeModel: Enable clangd hidden features when server logging is on
Potentially useful for debugging.

Change-Id: Iada7f2809d0f42bd5445ac6f9a8161a03ffd9bb5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-28 09:53:39 +00:00
Eike Ziller
a0a4d9024e Merge remote-tracking branch 'origin/12.0'
Conflicts:
	src/plugins/python/pyside.cpp

Change-Id: I1f84ed56d38355cef6076797c72693fff4c1aa78
2023-09-28 11:02:38 +02:00
Tor Arne Vestbø
182d4540b3 lldb: Add summary provider basic debugging facility
Change-Id: I166ad0c2e7d4ed508b1f4a8eeaf5e1e2488a3b70
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-28 08:54:23 +00:00
Tor Arne Vestbø
7033bbf7e0 lldb: Set environment variable to detect when running lldb from Creator
Instead of relying on __name__ being 'lldbbridge', which can also
be the case if the lldbbridge.py script is imported into a plain
LLDB process, we can now look at the environment variable.

This also lets us break out early from __lldb_init_module
if the user has a `command script import llbdbridge.py`
in their .lldbinit, or is automatically loading the bridge
via the Qt Core debug script.

Change-Id: Id8168c692ef66ce50119b7426ca85c7bc99d9503
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-28 08:54:13 +00:00
David Schulz
51a406900c Python: fix installing PySide wheels on Mac
Change-Id: I3f9f9ee5580176a65ca8e6b5c62b793fed170462
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-28 08:43:21 +00:00
David Schulz
b9e327bb10 Python: read installer settings for pyside wheel requirement
This should be more stable than relying on a specific folder structure
in the Qt Package.

Change-Id: I20dea176df43c9f6e768f4db69ac4eb70633f01a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-28 08:42:50 +00:00
Tim Jenssen
e39c6d4f41 McuSupport: fix build with latest QtcSettings adjustments
Change-Id: Iea1ff349ef00a8f4255651c0a1baf3656b5153b7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-28 08:18:20 +00:00
Christian Stenger
aef5a94c22 QmlJS: Remove unused functions
Amends eb5cdb4293.

Change-Id: I8d8627b9471547df0334f6035d4a0241a21c1f1f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-09-28 07:27:36 +00:00
Christian Stenger
4872532ef1 Fix build
Change-Id: I2edadc699c7177f3239a686dd01f92e54fa56bf9
Reviewed-by: hjk <hjk@qt.io>
2023-09-28 07:15:26 +00:00
hjk
071416fde3 Meson: Move some code out of visible plugin setup
Background for the activity here is that this plugin's setup activities
take on my machine around 0.2s on Creator during Creator startup and
I'd like to reduce that a bit.

Change-Id: I880a0b5ce5c4dce52a041b6a3ef9dc3cef346adb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-28 07:04:03 +00:00
hjk
7bf1b6e586 Meson: De-noise project parser a bit
Change-Id: Ic0b19e5a1e10057f750c2ad13f61c09f1105d05d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-28 07:03:57 +00:00
hjk
895f8e7396 Meson: Merge MesonProcess into project parser file pair
Only used there.

Also remove the translation line in the test project to help
with incomplete Qt 5 installations.

Change-Id: Id7029b499cec69a7e1733e2ac4ade9026c522951
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-28 07:00:21 +00:00
hjk
7a4e66992c Utils: Streamline QtcSettings interface
Change-Id: Icd9592c0fca5df1e52bdafb570665d92deeb70bb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-28 07:00:05 +00:00
Marcus Tillmanns
aeb05db3af CompilerExplorer: Disable Dock menu and close
Change-Id: I874e624cc35c337a7774377847f5f1a79b07a2b4
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-28 06:59:40 +00:00
Jarek Kobus
c05f9cacc6 CtfVisualizer: Fix multithreading issues
Simplify the CtfVisualizerTool::loadJson(). Don't create a QThread
manually, but use TaskTree with AsyncTask instead.
Move pure parsing into the separate thread, and leave the
nlohmann::json event handling in the main thread.
Avoid moving m_modelAggregator between threads.

Fixes: QTCREATORBUG-29657
Change-Id: I0c6a9a4ea8298dbbdbafcddd338d39ad73c3f82b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-27 15:09:56 +00:00
Cristian Adam
c32022f085 GitHub/Coin: Update LLVM/Clang to 17.0.1
Change-Id: I0cc3e3640eb60cd991fba073f8d32d3de9b900fe
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-27 14:32:59 +00:00
hjk
9c6bb1ac80 ProjectExplorer: Use less overlapping patterns in toolchain detection
Change-Id: I7de28d736e940d06267a16c9619e95d6fa2c6112
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-27 14:16:05 +00:00
Cristian Adam
695952f84b CMakePM: Integrate RSTParser into hover help / code completion
Change-Id: I1618be1aff83e8164c53040bb2c7230bcc1ec8ee
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-27 14:14:43 +00:00
Cristian Adam
94d7c76d67 CMakePM: Add missing features to RSTParser
To be able to parse the rst help files from CMake

Change-Id: Ibec21e8571324276d2080f81728b1268581601d0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-27 14:14:31 +00:00
hjk
50a4ece91f ProjectExplorer: Re-order some code
Change-Id: Iab4be8f5d55bc88518f7473cef20b024ef6cd26d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-27 14:12:20 +00:00
hjk
24f8990511 ModelEditor: Clean up exposed constants
Change-Id: Ic8b51dc2d121f7bfefb58a6b15a961e70ee8c74a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 14:10:15 +00:00
hjk
60d1fe4cb7 All: Even less #include <QSettings>
Change-Id: Ifbb2af34169036236e6f2f7b09ef115de5c6a6c7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 14:10:07 +00:00
hjk
018993fc37 ModelEditor: Simplify UiController
Change-Id: I3182f3e3c038d0c2d6daa94d59cb96865d2baf20
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 13:59:13 +00:00
hjk
0eacd0190d All: Remove some unneeded #includes
Change-Id: If9a8fb5e0b32424e3b37ecf3adefc060f86b3630
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 13:50:38 +00:00
hjk
b3c23435b4 ModelEditor: Simplify settings use
Change-Id: Ic9a82e09d65a9a8136baea785d01bebb5cea2c58
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 13:27:39 +00:00
hjk
342e066886 Utils, all: Standardize on QtcSettings
Change-Id: Id222016f15b1c3bfe6710fe5d0297666d4565ef1
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 13:25:31 +00:00
Alessandro Portale
4924e5afec CMakeProjectManager: Fix warnings
Change-Id: I190646684a1cadbcc1a5906642ed48e9dd84ed88
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-27 12:57:12 +00:00
Christian Stenger
4629b0f69e ScreenRecorder: Fix handling of capture type
Amends 3ef401cd9a.

Change-Id: I09e6de09358843ee0109e906577c0f152b0ed22a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-27 12:50:14 +00:00
Christian Stenger
91c0b60752 ProjectExplorer: Fix build
Change-Id: Iee85ecce556df3235775e150466d5fcde9fab252
Reviewed-by: hjk <hjk@qt.io>
2023-09-27 12:21:18 +00:00
Christian Kandeler
b986ce5175 CppEditor: Make all actions available in Tools menu and context menu
The differences seemed rather arbitrary and were possibly unintended.

Change-Id: I68151739875e6bb6bf5fedf8cc7ae54d4b70f42c
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-27 12:13:21 +00:00
David Schulz
2c298097e9 Python: detect pythons async
Change-Id: I74484a4f2c33c4fd7754f87bfbf3b9d711542741
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-27 12:08:36 +00:00
Olivier De Cannière
eb5cdb4293 Revert: qmljs: add check for comparisons not depending on values
The warnings produced by these checks have always been somewhat broken.
Ever since they were added people users complained about the M325
warnings because they were confusing or because of false positives.

Fixes: QTCREATORBUG-29601
Change-Id: Ifac1ed0819a05251b3c4b583627cc45553e3d680
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-27 12:07:35 +00:00
Aleksei German
38500a5c68 QmlDesigner: Fix unenclosed multistrings
Task-number: QDS-10681
Change-Id: Ide92c93c85f0d61b48c4c1cb0096cd8db201238d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-09-27 11:27:40 +00:00
Jarek Kobus
4e90ca1b59 CMakeToolManager: Add static readFirstParagraphs()
Reuse it in CMakeEditor and CMakeFileCompletionAssistProvider.

Amends d04585b519

Change-Id: I8dbd59c815e017404ff215ca1ff68740d6653e91
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-27 11:21:50 +00:00
Marco Bubke
85da9d7af5 Utils: Remove disabled warning
Seems to work on my GCC but lets see if older GCC can handle it.

Change-Id: I2932798da3691201f7dd4c8c981ae0dc29d01a86
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-27 11:02:00 +00:00
Marco Bubke
a914b550ed Utils: Workaround warning about missing disabled warning
Change-Id: Icae1e30176fa5439a9e60be69b4eca754aca94d9
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-27 11:01:51 +00:00
hjk
3d0ff7ef29 ProjectExplorer: Simplify detection of "built-in" clang
This is also the only case that triggered the short code path in
findCompilerCandidates().

Change-Id: Id8a88a275655526733e80c30250800db66ac6653
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-27 10:31:46 +00:00
Marcus Tillmanns
cbc6809b28 SSH: Fix Askpass on Windows 11
The standard openssh on windows 11 will not use the "askpass" unless
SSH_ASKPASS_REQUIRE is set to "force".

see: https://github.com/PowerShell/Win32-OpenSSH/issues/2115

Change-Id: I96a32e333a39e0cf5f5dab4c0f9c201b20daf533
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-27 10:27:56 +00:00
Jarek Kobus
3e0f7773b8 Autotest: Ensure m_checkStateCache isn't nullptr
Fixes: QTCREATORBUG-29654
Change-Id: Ia1864756a232663c4109fdae61de1dcaf1fbcd14
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-27 10:25:38 +00:00
Christian Stenger
8f741e3ab0 AutoTest: Split and re-organize wizard
Split off the single wizard into separate wizards listed
inside a separate projects category.
Simplifies maintenance and additional handling to be added
in a later patch.
Minor drive-by fixes for the cmake based projects.

Change-Id: I4f2f83c3892ea9a0f31691770a927294922c382d
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-27 09:57:25 +00:00
Christian Stenger
621a492b6a AutoTest: Guard against concurrent access
While parsing for Qt Quick Tests it may happen that an internal
map is accessed concurrently by different threads.
Guard against this. Minor drive-by optimizations.

Change-Id: Ic3b62c27feddb9a5ac5588a6c9643fc0e623ce19
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-27 09:57:15 +00:00
hjk
d6fe357d81 Utils: Use a proper class as Key
The Key encapsulates now a QByteArray.

Plan is to use QByteArray::fromRawData on literals, but that's not
active yet due to an unclear ASAN report, see the gerrit discussion.

For now we also paddle back when interfacing QSettings, instead of mimicing
writing a QVariantMap (and fail in some corners), always convert
the Store. This is meant to go away in the future when code paths
are better controled.

Change-Id: Id1206a434d511f8003903d5322c7c9bd5f5fb859
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 09:41:44 +00:00
hjk
d3b9b9b2d1 ProjectExplorer: Move some compiler detection path setup one level up
Not the big win yet, but doing the activity just once instead of
previously nine times.

Change-Id: Ibe8a782e1261228ef1ea8891878c45ea19e9bcf2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-27 09:26:29 +00:00
Christian Stenger
dda6d05282 SquishTests: Adapt to changed ui
Change-Id: I906f4f9dc07f905b9efa71b1ada60409349a1b05
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-27 08:43:23 +00:00
Christian Stenger
cd5cbd64f7 SquishTests: Fix finding line edit on wizard
Change-Id: I26be629e11e2d768b3afed518cd6026028d2e17a
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-27 08:43:11 +00:00
hjk
0df7fe319d ProjectExplorer: Remove some repeated checks
This should already bark in the ToolchainDetector nowadays.

Change-Id: Id835b4e2946f78cf508b13d75aeb08a289346806
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-27 08:41:19 +00:00
hjk
fa58a55b4f ProjectExplorer: Move path collection in gcc autodetection one level up
Closer to doing it just once.

Change-Id: I8d9c7d8c4d3b7bd3afb57eb612eaae9bc4f7b616
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-27 08:33:48 +00:00
Jarek Kobus
d04585b519 CMakeProjectManager: Remove unused arg
Make some methods static.

Amends 05614ab740

Change-Id: Ia72a95c0c3bf0acf7a94e1bac0a162db23aa0c77
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-27 08:17:19 +00:00
Eike Ziller
288d2e76bc FancyLineEdit: Fix some warnings
- initialize opacity (was never used uninitialized though)
- fix include

Change-Id: Ic3a9f8154f1c4bd77e759b6b45ee06b20a394c8d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 07:58:06 +00:00
Ali Kianian
1bee70d07b QmlDesigner: Modify the background color for the ComboBoxes on ToolBar
Task-number: QDS-10706
Change-Id: Id67479d771ee0f8ac6b6116703ad2821517374cd
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-27 06:51:52 +00:00