Commit Graph

74059 Commits

Author SHA1 Message Date
hjk
644b51a699 Utils: Add more correct comment to QtcProcess::cleanedStd{Out,Err}
Change-Id: I50202db7d8455372c3697087d9571db6706b45a1
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-06-17 12:40:34 +00:00
hjk
eb411dfeb0 RemoteLinux: Fix rscync deploystep with multiple dirs
This was quoting them into a single argument, failing if there was more
than one.

Change-Id: Idc099970f3b747918adf7559b95e749940aad11a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-06-17 12:16:09 +00:00
hjk
6517e3bbe3 Valgrind: Simplify connection setup
It's static 1:1 nowadays.

Change-Id: I0bdc62bda4aade6753b04c42d95fbbdf70c37386
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-06-17 12:12:20 +00:00
Christian Kandeler
120f3872d2 CppEditor: Add an enum to the code style preview for braces settings
So the user gets feedback for all the checkboxes by default.

Fixes: QTCREATORBUG-27268
Change-Id: I3518a7693bf31ce6c48a12905b77713c591e1853
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-06-17 12:10:42 +00:00
Christian Stenger
7d69b5b208 Tests: Provide valgrind testapps in cmake build
Change-Id: I4ec94504e3d2265d066434e118ab2eae6279a42f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-06-17 11:49:55 +00:00
Eike Ziller
6767b9b737 COIN/GitHub: Use Qt 6.3.1
Change-Id: I2485ef1ec0414d503a907d69fcc277f80d569286
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-06-17 11:20:41 +00:00
Eike Ziller
5f48066328 Bump version to 8.0.0-beta2
Change-Id: I02a09e916d11c7ce28b2d58ba7517e582e14be06
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-06-17 11:14:32 +00:00
hjk
8295714ff6 Utils: Shuffle PathChooser expansion responsibility around
Change-Id: Iaee0c21e8e1c99cc034bee5b892587d3137b5508
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-06-17 10:19:59 +00:00
Jarek Kobus
f1ff0a90e0 DocumentClangToolRunner: Delete later the old runner on runNext()
Don't delete the old ClangToolRunner directly from its signal
handler when calling runNext().

Change-Id: I55e72c1cced9ecbce492d00896d6fa161df02fd0
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-06-17 10:17:55 +00:00
Alessandro Portale
f873ad1cf0 Debugger: Ensure termination of lldb.exe
LLDB 12.0.8, which is included in NDK 23.1, hesitates to termiate when
being told to. Calling QtcProcess::stop() and using CtrlCStub on Windows
helps with that.

Amends: 17ff9317cd

Fixes: QTCREATORBUG-27723
Change-Id: Ie9d4ed23a833019f445c1517983c90ae899fbf39
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-06-17 10:13:47 +00:00
Marcus Tillmanns
1e70973c32 qml-debug-doc: Inform the user that breakpoints are only available in block mode
Setting / triggering breakpoints is only possible
if the target application was started with the
"block" argument.

Fixes: QTCREATORBUG-27515
Change-Id: Idafdaa87c38c8c452771897d4d845c4398d55fc4
Reviewed-by: hjk <hjk@qt.io>
2022-06-17 08:37:58 +00:00
Christian Kandeler
db451f7778 iostool: Fix qbs build
Change-Id: I5a33a247152d779d89a5e607cd42ab7030ae528e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-06-17 08:12:14 +00:00
Eike Ziller
bd2a994434 UpdateInfo: Improve URL for "Qt blog" for new Qt releases
Use the URL that shows all release blog posts, which increases chances
for the user to find the right one without hassle.

Change-Id: Ia34b4de031223dd8b856be3cf1596fe1db274e54
Reviewed-by: hjk <hjk@qt.io>
2022-06-17 08:09:04 +00:00
Eike Ziller
65e043961e CMake: Fix missing path to ninja for ExternalProject_Add
ExternalProject_Add runs CMake not during the CMake run of the toplevel
project, but instead it runs CMake for the external project during the
build step. And while ExternalProject passes the CMAKE_COMMAND on to the
external project, it does not do so for the CMAKE_MAKE_PROGRAM.

Make sure that the make program is also found when configuring the
external project during the build step, by adding the path to ninja to
the build environment, instead of just the CMake process.

Fixes: QTCREATORBUG-27495
Change-Id: I672ec04881387a7411836ab94655176b7a5fb681
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-06-17 07:31:01 +00:00
Eike Ziller
addcfa6dc7 CMake build: Fix issues with sharing qmldesignercore files
When adding the .ui files from qmldesignercore.cmake to
tst_assetsImport and tst_merge in the qtquickdesigner repository,
AUTOUIC for some reason gets the output location for the
generated ui_*.h headers from: It puts them into
qtquickdesigner/tests/qtcreator/src/plugins/qmldesigner/designercore/
instances/
instead of into the corresponding *_autogen directory.

That leads to both tests wanting to generate the same file, and
ninja complains with

ninja: error: build.ninja:78635: multiple rules generate
qtquickdesigner/.....

Do not use AUTOUIC for these .ui files, but instead add them manually
with qt_wrap_ui.

Change-Id: I1d60fae95739335a87f8196ed2a686a0633165b2
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-06-17 07:28:13 +00:00
Marcus Tillmanns
35707f8674 android: fix call TaskHub::addTask from wrong thread
Fixes: QTCREATORBUG-27105
Change-Id: I3be5e09e66642f8405979f601eee0db7b6a530e8
Reviewed-by: hjk <hjk@qt.io>
2022-06-17 07:15:02 +00:00
Marcus Tillmanns
e3fd840f98 iostool: Improve deployment speed using delta deploy
The iostool did always deploy the whole bundle, without taking
into account whether anything has actually changed. This meant
that for big bundles anytime the user starts the application
on his device, a full deployment was done.

For a ~1GB bundle this would take around a minute on a recent
Mac and iPhone 12.

This fix uses a new function from the mobiledevice framework
called AMDeviceSecureInstallApplicationBundle.
This function takes a new parameter "ShadowPathKey" which points
to a directory where the last deploy state is captured temporarily.

Before deploying to the device, the function compares
what is to be deployed against the last deploy state and
only deploys the parts that actually changed.

QtCreator provides a temporary folder for this. Due to this,
the initial deployment still does a complete deployment as
no state is available yet. All subsequent deployments
take the captured state into account.

For backwards compatibility, the old deployment method is left intact.

Fixes: QTCREATORBUG-24371
Change-Id: I4df6aa79d41b34c326d78be7952d7eeb23774648
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-06-17 07:09:45 +00:00
Piotr Mućko
fd68b1c58e McuSupport: Update renesas flash tool path env variable
Change-Id: Ib5375ef2d5ab049313ccfbeb0fd3763d3baa8004
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-06-17 06:54:53 +00:00
Alessandro Portale
b2af450cdb Debugger: (Re-)Fix start of Android lldb from NDK 23.x on Linux
In order to help lldb locate libpython3.9.so, we need to point
LD_LIBRARY_PATH to the right lib/ path inside the NDK.

Amends: b54bf8ad86

Reason for amend: The "prepend" use-case of Environment::prependOrSet
failed due to the undefined separator. Now, use
Environment::prependOrSetLibrarySearchPath instead, since that handles
the separator and knows the environment variable name.

Fixes: QTCREATORBUG-27297
Change-Id: I770a6335a7a26c65d23c930f7d6f9795b3dc52b5
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-06-17 06:19:55 +00:00
David Schulz
e052d75987 Core: FilePathify WindowTitleHandler
Change-Id: I905a193e70b199cbbd483e76e14c7f9fd2b179ef
Reviewed-by: hjk <hjk@qt.io>
2022-06-17 04:22:23 +00:00
Jarek Kobus
3ab822739d FetchContext: Connect to done() signal
Instead of connecting to errorOccurred() and finished() signals.

Change-Id: I16e0de8422be989bf56cc6c5b865966f97013731
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-06-16 20:49:04 +00:00
hjk
af4a6b1a74 Debugger: Use ProcessResultData a bit more
Instead of its individual items.

Change-Id: Icd668a61de1c2de676e0a44769f1c1bb5375c523
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-06-16 15:43:25 +00:00
Jarek Kobus
aa117f9955 QbsSession: Connect to done() signal
Instead of connecting to errorOccurred() and finished() signals.

Change-Id: I164338c17acf6ec0eff5c514d6919a27c3feaae8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-06-16 15:09:55 +00:00
hjk
5ee880ce5e Utils: Add a few convenience functions to work with process output
Change-Id: I45acea77ccfdc15b1be9693c1658890865383c16
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-06-16 14:43:21 +00:00
Jarek Kobus
25b1c59f74 ValgrindRunner: Connect to done() signal
Instead of connecting to errorOccurred() and finished() signals.

Change-Id: I8eda3a01d73c87bd2673b40723e563ec3ce3a01c
Reviewed-by: hjk <hjk@qt.io>
2022-06-16 13:16:43 +00:00
Cristian Adam
01d3b69719 cdb: Use CtrlCStub for cdb.exe
This makes sure that any processes started by the debugged project in
cdb are also closed when the debugger should be stopped.

It happened to me in the past that while debugging Qt Creator in Qt
Creator and closing the debugging session tens of uic.exe were left as
zombies. And for some reason they started consuming CPU time.

taskkill /f /im uic.exe was the needed command to handle the situation.

Change-Id: I498381e793405854f7c02e9fec6b6e4718c75c25
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-06-16 12:39:56 +00:00
Jarek Kobus
1558a81ac1 MesonProcess: Connect to done() signal
Instead of connecting to errorOccurred() and finished() signals.

Change-Id: I94b5b55795110ea4bdc90fd5da88585bd28f1b32
Reviewed-by: hjk <hjk@qt.io>
2022-06-16 12:28:07 +00:00
Artem Sokolovskii
5d8f13bfd4 CppQuickFixes: Add "auto" as local declaration incase cxx11
Add local declaration function add "auto " incase
cxx11 features are enabled.

Fixes: QTCREATORBUG-26004
Change-Id: I10da77e8baa52740b1c4df5a21d78ac5f0d1c5d6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-06-16 11:43:47 +00:00
hjk
189fe7fab3 ClangTools: Simplify process rampdown
This is now taken care of in the desctuctor of QtcProcess itself.

Change-Id: I51e65344e6d2cae4498e292e4ad6a586c68b0539
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-06-16 11:20:56 +00:00
Artem Sokolovskii
706dc654b9 CppQuickFixes: Add function getDeclaration for AddLocalDeclaration
Change-Id: Ie2d5c5de6b871a855b95efe7c633b28d6ed5c512
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-06-16 11:20:20 +00:00
David Schulz
677a8fe34a Coco: remove unused parameter
Change-Id: If4af2b10df1260d6f3806a5f1f6f1a442609f8d5
Reviewed-by: hjk <hjk@qt.io>
2022-06-16 10:42:15 +00:00
David Schulz
21e254baca ClangCodeModel: return absolute path to fallback client from path
Change-Id: I9731aca47975e47756042fb8ed42c2f648e365ed
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-06-16 10:26:53 +00:00
hjk
3efa0f3961 Combine more of local and remote paths in SimpleTarget runner
Change-Id: Ic50d96b582b355807234618884ec45da09e398d4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-06-16 10:26:51 +00:00
Jarek Kobus
af8f6dc039 LinuxDeviceTester: Test if required commands are available
Change-Id: Iaad3ec8667c4134ead86ca9e3239e810554b8f43
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-06-16 09:28:49 +00:00
hjk
53896ed295 Utils: Dissolve QtcProcess::stopProcess
Change-Id: Ife07f34ffc69cd30984276464bd89738c2a71311
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-06-16 09:17:23 +00:00
Jarek Kobus
b7a71af4c1 Replace QtcProcess::stopProcess() by stop()
Amends 219339987aaf67fe97c5ffa418879b747545b137

Change-Id: I31709910a5f0a4f4ec5bcbafa422f693b3c2049e
Reviewed-by: hjk <hjk@qt.io>
2022-06-16 09:08:57 +00:00
Eike Ziller
3ef8635261 Add Coco detail to change log
Change-Id: I2b829b38136a86cf4596f3d152fc082ee7de8272
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-06-16 09:01:22 +00:00
hjk
152b14207c Replace QtcProcess::stopProcess() by stop() plus waitForFinished
... or nothing, if the process object is destroyed immediately.

Change-Id: I6a1e1928bc49fc20a1c0e0ee9b8f4f723276bbca
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-06-16 08:26:10 +00:00
hjk
bfad59ade0 Debugger: Use QtcProcess::stop instead of stopProcess
Less synchronous in cases where it is not needed.

Change-Id: Ia07e6d293c7f5e6dfb81b06c0ffb6d5d651b88b3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-06-16 08:26:01 +00:00
Christian Kandeler
07dfd7c0b3 Wizards: Bump QtQuick import version in file wizards
Use 2.15 as default, plus a little heuristic to use the same version as
other files in the project.

Fixes: QTCREATORBUG-27614
Change-Id: Ic84db5da97a9f35a2ad0e57fd47b75fb32a0b7f8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-06-16 08:23:14 +00:00
Christian Kandeler
ebfbc55166 RemoteLinux: Remove CheckForFreeDiskSpaceStep
This step was of very little use out of the box, as it required the user
to pass sensible values for e.g. the required disk space. Making it
smart enough would require non-trivial effort for very little gain, in
particular as the concept hardly makes any sense at all in conjunction
with deployment via rsync.

Fixes: QTCREATORBUG-27081
Change-Id: I586fceb59947334eba19b10fcc94ecedc661908f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-06-16 08:21:49 +00:00
Eike Ziller
2dc343970b Update change log for 8.0
Change-Id: Ieff8d123ef1cb0596dc604256a284b8ba74fece8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-06-16 08:16:19 +00:00
Thomas Hartmann
53cd1f1ea2 Move the options to the edit menu
This is more consistent with many other tools.
Visual Studio is one of the few tools that
have the options under tools.
and allows to hide tools in the context of Qt Design Studio.

Renaming options to preferences.

Change-Id: I4bb554f00005eb415a203faa8bf7340d047b5a84
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-06-16 07:52:19 +00:00
David Schulz
48a43511c7 ProjectExplorer: fix environment is valid check
Amends d76458a8b6

Change-Id: I0a9d4d6c4489f2bfd3d61c3db3f1040fbc5cbdbc
Reviewed-by: hjk <hjk@qt.io>
v8.0.0-beta1
2022-06-16 07:31:00 +00:00
hjk
1c587f136a Valgrind: Use stop() instead of stopProcess()
Change-Id: I9efd3dcec1e894e64fc2684ae2fad5606c90b68f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-06-16 06:48:54 +00:00
Jarek Kobus
c96571ca74 Update qlitehtml
The new head contains a fix for pageUp/Down keys issue.

Task-number: QTBUG-100837
Change-Id: Ifa925f4270fb9106b60dead94cdbf61c5cb38351
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-06-16 06:31:23 +00:00
hjk
43a9278809 Valgrind: Act on pressing Stop
Fixes: QTCREATORBUG-27714
Change-Id: I82b49df8e4ac70e095abbac31fe5fc06d0140e17
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-06-16 06:30:41 +00:00
David Schulz
f81afa4556 TextEditor: adjust default coco colors and controls
Change-Id: I6fa4d5a65067d58e07be974e6ccc349030a03a53
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-06-16 06:24:27 +00:00
hjk
cc4c12b281 CMake: Drop some unneeded includes
Change-Id: I212d518e47529ff0cacdd968c1d09a7f0970c8d4
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-06-16 06:19:11 +00:00
Eike Ziller
87645d7355 Fix Qt Quick Application wizard for Qt >= 6.2
Wrong variable used in the template's CMakeLists.txt resulted
in errors when configuring.

Amends db2cc2ba27

Fixes: QTCREATORBUG-27725
Change-Id: Id644ba83e118de1f12f4cdb4caa6368bd418419d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-06-16 06:18:02 +00:00