Commit Graph

84268 Commits

Author SHA1 Message Date
Jarek Kobus
828f78ccd3 KillAppStep: Always finish the step with success
Fixes: QTCREATORBUG-30024
Change-Id: I7f2f3167bd3620a5a313fe6359c4ee58ff0d9e03
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-12-13 18:46:06 +00:00
Cristian Adam
32c389a556 CMakePM: Do not reconfigure during build
On Windows upon a CMake file change and save during a build, the
reconfiguration would fail due to the inability to save the build.ninja
file.

Fixes: QTCREATORBUG-30048
Change-Id: I68bec70b0a95bc4256b736a1c4caf1b4d706e43b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-12-13 09:19:26 +00:00
hjk
3a8314f793 WebAssembly: Support emsdk path with spaces on Linux/macOS
The command passed to bash as argument needs to be quoted.

Task-number: QTCREATORBUG-29981
Change-Id: I0e91ab4c088f8cd4e5a2df82604ea86cf73369fc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-12-12 15:19:54 +00:00
Christian Kandeler
cf16ef3139 RemoteLinux: Shut down an unresponsive SSH master connection
Otherwise, all subsequent ssh operations will silently fail.

Fixes: QTCREATORBUG-29982
Change-Id: I781aafcf408a9cb216f632e2beef92ec38652f57
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-12-12 14:27:57 +00:00
Christian Kandeler
f8cdcfd70c ProjectExplorer: Fix shutting down unreachable remote processes
We forgot to reset the state, which gave us a permanently broken run
control, preventing re-starting the application, among other things.

Change-Id: I7c168e31e015fdf7002c57aba0ed2178437a15ae
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-12-12 14:26:54 +00:00
Eike Ziller
a374588604 QmlDesigner/editor3d: Fix build with Qt 6.7
rendercontextcore is now a public header

(qtquick3d 89ca37fb914c6539334df62b38ea8cee80dade9d)

Fixes: QTCREATORBUG-30052
Change-Id: I58ac699ed81e958c0a0fccd14385b3359be1fb08
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-12-12 11:52:45 +00:00
Cristián Maureira-Fredes
c4464eb072 Add logo and title to PySide install dialog
Change-Id: I7888ee906334de2c93c24c5da2394c9e73101a28
Fixes: QTCREATORBUG-30041
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-12-12 08:51:44 +00:00
Christian Kandeler
1365ee7cb2 CppEditor: Add assertions to CppRefactoringFile::{start,end}Of(AST *)
I've seen this crash once with a null pointer.

Change-Id: I162e36155f030712f697da0bbf39ea5fef849db3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-11 15:06:14 +00:00
Christian Kandeler
c7f88ced89 ProjectExplorer: Fix FilePath construction for git paths
Change-Id: If29c0afcd41789ded5eccc6e098b3fadb390287d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-12-11 14:59:58 +00:00
Eike Ziller
d3c805630a CMake Debugging: Do not build/deploy
Fixes: QTCREATORBUG-30045
Change-Id: I478abaf29462d9413f3285527459a98b1cae899d
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-12-11 14:50:17 +00:00
Christian Stenger
1633d76b76 SquishTests: Allow designer test to progress further
Explicitly chose a newer kit as the kit we would use by default
lacks some compiler features on Windows.
This patch here only fixes the test crash when trying to access
a disabled menu item due to cmake dropping out with error when
parsing the project with the active kit.
Drive by change: removed workaround for fixed bug.

Change-Id: I783626f30d27ab1852536ae0d1f936ec8323feb8
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-12-11 14:03:13 +00:00
Eike Ziller
049ac852a6 Change log: Add some more items, convert bug numbers to links
Change-Id: Ic9b3d3f9a7441fd6bec0ffee4fee7082e91d5a95
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-12-11 12:37:33 +00:00
Artem Sokolovskii
ee75c7276b ClangFormat: Fix utf8 symbol indentation
Fixes: QTCREATORBUG-29927
Change-Id: I5a5a326e13cbe3a874a66e275ded0c6dea9964d7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
v12.0.1
2023-12-08 17:48:39 +00:00
Christian Kandeler
2f49c0830e Update qbs submodule to HEAD of 2.2 branch
Change-Id: I52b79281d4df14fd90719d2e7d61f293cb7d43d9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-12-08 13:47:08 +00:00
Christian Kandeler
fa6a50e349 QbsProjectManager: Fix project parsing crash
We called deleteLater() on the parser while immediately deleting an
object that was supposed to outlive the parser.
Amends 1231c9e546.

Change-Id: I7ada041c4047d86249c5bdefc0c53e70dcdd5140
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-12-08 13:26:06 +00:00
Eike Ziller
d39a10bdd2 Designer: Fix the mapping between buttons and edit mode
The tool buttons for switching the edit mode e.g. between "edit",
"signals/slots", and "buddy" hardcoded the index of the corresponding
tool in designer. The index in designer depends on the load order of
(static) plugins, that has changed in qtbase
2f226336a2aeb477b7ba339b6c3a63abb69746c3 (Qt 6.5.1 and later).

Instead of relying on the index/plugin load order, try to find the right
tool by class name (still falling back to the index otherwise).

It would be nicer if the tools had actual IDs though, but that change
would need to go into Designer first.

Fixes: QTCREATORBUG-30017
Change-Id: I17caea6289574db2b1c8934e80d865a142b74725
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-12-08 11:10:52 +00:00
Eike Ziller
a20e2d29fc CMake: Fix file path kind for the staging directory
Fixes: QTCREATORBUG-29997
Change-Id: I7a86b90a366bc59b206a44b5e93b54582c2aed14
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-12-07 12:26:33 +00:00
Cristian Adam
144194b79a CMakePM: Fix crash when editing CMake files without a project
Fixes: QTCREATORBUG-30023
Change-Id: Id849635dd0e7437d7ae93251130d2f26ded24def
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2023-12-07 11:21:19 +00:00
Christian Kandeler
68e44b3372 CppEditor: Do not insert empty project part lists
... in CppModelManager::projectPart().
Amends 96c21b0e36.

Change-Id: I7e0dac258a4b4576a6ab772cb7074068a1bea726
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-12-07 11:16:09 +00:00
Robert Löhning
f52c92bfe5 SquishTests: Update tst_openqt_creator
Task-number: QTCREATORBUG-29923
Change-Id: I59ccfca431ab4a0d7d5bb8be78c078e2e5d58825
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-12-07 07:52:58 +00:00
Andre Hartmann
e944a26435 Git: Fix Instant Blame for files with only one line
As we don't show blame annotations for the trailing
(empty) lines, the following could happen for single
line files:

1. Cursor is in the first line, annotation is shown
2. Cursor is moved to the last line, the annotation
   is cleared
3. Cursor is moved back to the first line, but now
   no annotation is shown

Fix this by resetting the last visited line when the
annotation is cleared in step 2.

Change-Id: I1ea5dc339f57c94bc1835dcbccd7a9d93f79ffe5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-12-07 07:15:11 +00:00
Christian Stenger
d1ac2fe45a Adjust position of refactor submenu
Fixes: QTCREATORBUG-30010
Change-Id: Idf4ce4e3bc4d0af3d40460c8f2e27f52c90f2454
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-12-06 13:04:42 +00:00
Cristian Adam
b360776b1f CMakePM: Always display the right CMake version Qt SDK installs
Qt SDK is using the following parameters for sdktool:
  "--name", "CMake %CMAKE_VERSION% (Qt)"

This effectively hardcodes the CMake version for the Qt SDK forever.

Fixes: QTCREATORBUG-30019
Fixes: QTCREATORBUG-29973
Fixes: QTCREATORBUG-28437
Change-Id: I05408442ea26d390f60a123be4fbf71f7018b150
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-06 12:52:43 +00:00
Friedemann Kleint
5b28043d46 pdb: Fix duplication of command line arguments
They are already added by the Python run configuration.

Change-Id: Icfea32e00209a690901cf672a17a8ef5c23b909d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-06 12:32:57 +00:00
Friedemann Kleint
332a742e0b pdb: Fix command line arguments
pdbbridge uses exec() on the main file which causes the inferior to
use its sys.argv. Inferiors using argparse would then fail since they
cannot make use of the working directory passed.

To fix this, append the inferior arguments separated by "--" and
change sys.argv accordingly.

Change-Id: I35caf4b3ec19c5259c0d4235787c03a3e592768a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-12-06 12:20:48 +00:00
Eike Ziller
ade5ebd95f Add change log for 12.0.1
Change-Id: I077362b4ddb4fc09d66e682c9e12775a33d822b7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-12-06 12:19:22 +00:00
Christian Kandeler
6d101cd812 ClangCodeModel: Fix following virtual functions
We used to follow a Goto Implementation request with a Goto Definition
request, because the latter gave us the declaration instead of the
definition. This has changed in clangd 17, which means we now called Goto
Definition on a definition, which clangd interprets as switching to the
declaration.
We now do the right thing for all supported clangd versions.

Change-Id: I1c0acd2c8d5c942f7e25dedb1da953bb4f8d8d13
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-06 11:48:47 +00:00
Robert Löhning
5c1b8dee32 SquishTests: Simplify and stabilize special handling of Mac menus
- Check condition only once
- Make sure correct length is being used

Change-Id: I8c9627d91b4f022d60bae039c0478248cc30d183
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-06 07:35:12 +00:00
Eike Ziller
a6a95420b6 Main: Show a GUI message if platform plugin fails to load
If the Qt platform plugin fails to load, most famously xcb on systems
that do not have libxcb-cursor0 installed, the interesting messages are
only written to a terminal, and not visible when running Qt Creator from
e.g. the installer or dock.

Temporarily install a special Qt message handler that scribbles along
the qWarnings and qFatals while creating the QGuiApplication, and make
it output the messages via xmessage in case a qFatal is received (and
xmessage is available). On macOS show a dialog with osascript. Windows
already gets a dialog from Qt proper.

Also add the explicit message about (lib)xcb-cursor0 for Qt versions
that do not have it yet.

Fixes: QTCREATORBUG-30004
Task-number: QTBUG-108796
Task-number: QTCREATORBUG-29873
Change-Id: I5e5dafb398db6a72178413c8b883325c56d9a016
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-12-05 12:04:45 +00:00
Yasser Grimes
9a364811de McuSupport: Ignore resetting QtMCUs package on target update
QtMCUs package is part of every target with the same pointer address across all
targets, when reseting the target packages to default this will cause
inconsistensy as the default path for QtMCUs package is the home directory.

Fixes: QTCREATORBUG-29960
Change-Id: I2fcc6b631355928bc883e9072b0f3f3c12737c37
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Karim Abdelrahman <karim.abdelrahman@qt.io>
2023-12-05 10:18:22 +00:00
Samuli Piippo
5460a0d5f6 boot2qt: QDB devices support rsync and sftp
Users don't add QDB device themselves and therefore device test isn't run.
This means neither rsync or sftp is available with GenericUpload deployment.
Ideally, we should run the device test in the background but that would
require larger code refactoring to support it. For now, set all QDB devices
with support for both rsync and sftp. Host's support will still determine
if either one can be used.

Change-Id: I1f73508b9255e0984ca48c763dcaf49b931e0e21
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-12-05 06:54:04 +00:00
Robert Löhning
c0d1975ff9 SquishTests: Fix fetching Jira status
Change-Id: If01b08673f88588eee9370488a429a6f633d93db
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-04 17:49:18 +00:00
Cristian Adam
e8262ed930 CMakePM: Fix crash (potential) on CMakeParser::flush
Use the Task copy for the inversal of the call stack.

Amends edf4280bd9

Fixes: QTCREATORBUG-29965
Change-Id: I6119e03c75ff5a7d44f86e91cc93e6417fea1689
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-12-04 13:37:15 +00:00
Andre Hartmann
c0d7835022 Git: Stop Instant Blame when git returns empty blame data
That can happen for example, when having a file with active
Instant Blame open and choosing "Save As" to save a copy
of that file in a folder not under version control.

Also fix the related case, when the file is saved in the
same folder, but is not under version control yet.
In this case, let's remove the blame mark, otherwise it
will stay forever as we only stopped the cursor connection.

Fixes: QTCREATORBUG-29991
Change-Id: I6ffed869c18334ba87dbcded409d31ead21f4b25
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-12-04 13:07:45 +00:00
Christian Kandeler
f073db7f4c ProjectExplorer: Fix "unavailable" annotation of fixed run configs
Amends 058a931d27.

Fixes: QTCREATORBUG-29983
Change-Id: I4db546d1370909b55d6662d403be10e263c4e878
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-12-04 10:06:44 +00:00
Cristian Adam
3204002055 CMakePM: Check if the callStack optional has value
Amends edf4280bd9

Task-number: QTCREATORBUG-29965
Change-Id: I7deb6d5952cceaa1f238cdd02393a369c56e0376
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-12-02 16:56:12 +00:00
Christian Kandeler
81c39da7d0 Update qbs submodule to HEAD of 2.2 branch
Change-Id: Ief8758531017292fd87ac93a9653dc73b3ccbd3e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-01 10:49:14 +00:00
Robert Löhning
b757ca9f7a SquishTests: Update expected tree for tst_cmake_speedcrunch
Change-Id: I13df997c6b265ba8795c7f1f3024c5deef5e2cad
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-30 09:25:52 +00:00
Eike Ziller
3b6dc15e04 Fix that target selector accumulated labels again
It was previously fixed in  1a43983ea6

Since then, adding the aspect to grid adds a label itself, so the self-
created label in setKit is irrelevant (it adds some empty space), and
the labels that are created for the aspects are accumulated again.

Instead of trying to delete the labels, create a wrapping QWidget.
Deleting this widget gets rid of any widgets that might have been added
when creating the grid of mutable aspects.

Fixes: QTCREATORBUG-29990
Change-Id: I5f2aebf9a865e532c9e24a29ec5979b11d17d43a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-29 13:28:26 +00:00
Christian Kandeler
c20129a973 ClangCodeModel: Make VirtualFunctionAssistProcessor more safe
Let's not access the object state after emitting
ClangdFollowSymbol::done(), in case the receiver deletes us.
Can happen in test code.

Change-Id: Ia6c691c0f88b16476da1a6be1cedd106d9da2d53
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-29 09:48:30 +00:00
Christian Kandeler
6ed456ed9e ClangCodeModel: Fix check for strings that look like file paths
Backslashes in the markup string are escaped with another backslash, so
we need to check for two consecutive ones on Windows.
Otherwise, qdoc/doxygen commands such as "\note" are interpreted as files
and trigger expensive I/O operations.

Fixes: QTCREATORBUG-29975
Change-Id: I822f57a8612274ff4112063928cab21b9d7ca792
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-29 09:47:46 +00:00
Alessandro Portale
a71b33944b Core: Restore opening of files that are dropped on the MainWindow
The code to handle dropping unintentionally got commented out, then
fixed, then commented out again.

This change restores it.

Amends: e5f74d217b
..which amended: 5da1f14903
..which amended: e34762c844

Fixes: QTCREATORBUG-29961
Change-Id: Iccc8a9b7bc24bc3475ed4fa37a7c231a1f575c1c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-28 14:03:21 +00:00
Marcus Tillmanns
a27aceb558 CompilerExplorer: Add user-agent
Change-Id: Ia2193a1cf9bd0b3542313162d6befe14649efe97
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-11-28 13:17:09 +00:00
Samuli Piippo
ed4dadfcc1 boot2qt: use DirectUploadStep on Windows
GenericUploadStep doesn't set execute rights to the binary when
deployed from Windows host. Switch back to DirectUploadStep
until support is available.

Task-number: QTCREATORBUG-29971
Change-Id: I253210d44c5587d529f1f7082cac3e9a2ead59c1
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-28 11:54:28 +00:00
Jarek Kobus
0f8a057bea Valgrind: Fix stopping the Valgrind process
Fixes: QTCREATORBUG-29948
Change-Id: Idb7f113bee6706283c7fdea66d9f9dfccbd6cdb4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-11-27 15:18:14 +00:00
Jarek Kobus
b26d7b0f48 RemoteLinux: Preserve TransferMethod setting
Change-Id: I265831c4a552caa258417952bd418a284734fd4b
Reviewed-by: hjk <hjk@qt.io>
2023-11-27 14:15:31 +00:00
Marcus Tillmanns
1079204a3e Utils: Fix updating BoolAspect::action() checked state
Task-number: QTCREATORBUG-29949
Change-Id: I1c12bd59855ecf13f06fdb16bf8e0937768527b1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-27 14:06:11 +00:00
Christian Kandeler
41ac635ca6 ProjectExplorer: Fix restoring kits data
Another fallout of Utils::Store.

Fixes: QTCREATORBUG-29970
Change-Id: I2b696b83980c451d5312ac8a874d9f3dc86361c9
Reviewed-by: hjk <hjk@qt.io>
2023-11-27 11:51:26 +00:00
Tor Arne Vestbø
d7545f9bf5 Prevent lldb from enabling os_log mirroring to stderr
lldb will normally set OS_ACTIVITY_DT_MODE, so that NSLog is mirrored
to stderr, but this also affects os_log, which we use in the Apple
unified logging backend.

When we detect this situation in the unified logging backend, we disable
Qt's own stderr logging, to avoid duplicate messages.

As the Qt stderr logging is preferable to the stderr logging that os_log
gives, we override lldb's choice, using the same environment variable
opt out that Xcode uses: IDE_DISABLED_OS_ACTIVITY_DT_MODE.

This makes console output in Qt Creator the same, regardless of whether
the user is debugging the app or not.

Change-Id: I5544bde803671258cede918705388c9283885e30
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-27 09:58:56 +00:00
Christian Kandeler
61e9a7fe16 CppEditor: Fix comment conversion for indented comments
Due to accidentally overlapping removal/replace operations, it could
happen that we lost actual content when trying to remove whitespace.
Amends f93836b25d.

Change-Id: I7a624e78cf0986ee9818d47ea0812c6632426a24
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-11-27 09:57:52 +00:00