Commit Graph

76860 Commits

Author SHA1 Message Date
Eike Ziller
b038ea3a40 Fix debugging with LLDB
Broke with bb11788a0a

Change-Id: Ie02a36b98be83bd4721eacc834321a5494c584a3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
v9.0.0-rc1
2022-11-09 11:47:52 +00:00
The Qt Project
5434de83b9 Merge "Merge remote-tracking branch 'origin/8.0' into 9.0" into 9.0 2022-11-09 11:28:25 +00:00
Eike Ziller
872994b5e5 CMake/translations: Use lconvert for cleaning ts files
For the translation process it is nice to keep obsolete items and locations,
but we do not want these submitted in the end. So while translating we'd have
patches:

1. lupdate cleaned of obsolete and line numbers
2. wip: lupdate with obsolete and line numbers
3. translation of plugin X
4. translation of plugin Y

and before submitting we want to remove the wip patch (2).

But, running lupdate with "-no-obsolete -locations none" for cleaning
the ts file has a slightly different sorting than without it, which
leads to conflicts when removing the wip patch (2).

Instead run lupdate with obsolete items and line numbers first, and
clean the ts file with lconvert afterwards. That keeps the diff between
patch (1) and (2) minimal, and results in a clean rebase process when
removing patch (2).

Change-Id: I3b8ac7c30dc6eb0e501be765eb6e64069007a5bd
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-09 11:11:13 +00:00
hjk
c406df7470 Changes: Mention debugger performance once more
Change-Id: I0a44a4348c8f3bdac20e28cc15cff7093aef634d
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-11-09 10:54:34 +00:00
hjk
19ef8e5c7a Debugger: Avoid some temporary containers when parsing escaped chars
Change-Id: Ia9af6801de6f745388e464fc806297d396c66160
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-09 10:54:30 +00:00
Tim Jenssen
63d3a6bd3d Merge remote-tracking branch 'origin/8.0' into 9.0
Conflicts:
  src/plugins/qmldesigner/components/assetslibrary/assetslibrarywidget.cpp
  src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp
  src/plugins/qmldesigner/qmldesignerplugin.cpp

Change-Id: I24216ae3f83cdde3493b4a6274e24a72f75820fc
2022-11-09 11:45:25 +01:00
Marcus Tillmanns
06838e3e5e ProjectExplorer: Fix potential race condition
When using BuildStep::runImpl() it was possible for the async part
to still be running while the BuildStep is already deleted.

This change returns the Future so that users can wait for it to finish.

Change-Id: I27c0fc8741c59851c5ab8f5cb858fbcda923c14d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-09 08:33:37 +00:00
Eike Ziller
df946c77dc Chinese translation: Run lupdate for qtcreator_zh_CN.ts
in preparation for the translation. Result of
`lupdate . -no-obsolete -no-ui-lines -locations none
 -ts share/qtcreator/translations/qtcreator_zh_CN.ts`

Change-Id: I1e7389aae93f1aee8594f35e53531ee53e5f0ed6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Xu Shitong <xushitong@uniontech.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-11-09 07:03:20 +00:00
Christian Kandeler
f93c316b73 ClangCodeModel: Adapt to new upstream feature
See https://reviews.llvm.org/D130015.

Change-Id: I2c2590265f2d7a2c2b5e966b0dc65ceff6b1b3e6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-08 14:21:25 +00:00
hjk
bb11788a0a Debugger: Avoid quadratic behavior for larger debug output
Task-number: QTCREATORBUG-28111
Change-Id: I0567b6af9f74c2d335d19a52765834ef7cee9449
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-08 13:53:30 +00:00
Eike Ziller
bacb05e285 More change log for 9.0.0
Change-Id: Ic902972be6fe5c68e7675a10d5127672612e8f1d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-11-08 13:28:33 +00:00
hjk
9364304f81 Debugger: Remove some debugging code
Avoids a possibly large temporary string.

Change-Id: Ic20cccedc35df0172c3586054f098e2c0f4b69c2
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-08 13:25:42 +00:00
Mats Honkamaa
85fde5932a Doc: Add Effect Maker documentation
Task-number: QDS-7669
Change-Id: I49f77d61b018516bd3b460fd92c8fa620ec10d81
Reviewed-by: <amr.elsayed@qt.io>
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-11-08 13:08:37 +00:00
David Schulz
08002c6278 Editor: delete assist interface in lsp/clangd support
The complete memory management in the code assistant needs an overhaul.
For now just delete or at least track the assist interface with scoped
pointers.

Fixes: QTCREATORBUG-28408
Change-Id: I0bd4cfaa36a660b6fd5bb467af3b13414ed76e63
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-08 12:07:56 +00:00
Eike Ziller
3c6435387b QmlJS: Fix cursor position and breakpoints when reformatting
Use the intelligent partial text replacement logic that is also used for
e.g. the Beautifier formatters.

Fixes: QTCREATORBUG-28349
Fixes: QTCREATORBUG-25218
Change-Id: I9ae4052df27c8aa2012106a8ef8f624ba5f3c30b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-08 11:38:54 +00:00
Marcus Tillmanns
bb3e9c44be Android: Fix reference to out of scope variable
Change-Id: I49ea5c059ed68230e368d8de2aaddca979019bfa
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-08 11:37:26 +00:00
Eike Ziller
56bc91d0d8 German translation: Welcome plugin
Change-Id: I8d50831e3fc20364c4738c0fe64ca2feacf72c41
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2022-11-08 10:56:50 +00:00
Eike Ziller
48c7e78e01 German translation: TextEditor plugin
Change-Id: Ie4dfe8001ecb51e7f012080230da0ca4c0ccd56f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2022-11-08 10:56:26 +00:00
Alessandro Portale
657cc181fe CMakeProjectManager: Deduplicate string "-DQT_QML_DEBUG"
Change-Id: Ice9bc9b1ee17d477a484b9f4d630737f6633c06c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-11-08 10:52:03 +00:00
Kwangsub Kim
d881932695 McuSupport: Update library path for Windows platform
The Qt shared library for Windows desktop platform has been
moved from Qul 2.3.0 to support MinGW toolchain. The updated
library path needs to be configured correctly.

Task-number: QTCREATORBUG-28303
Change-Id: I7cf8150bfb4a66731904ea49089849496305f22e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-11-08 10:24:18 +00:00
Christian Stenger
c392cb8acf MesonPM: Only set tools if possible
Avoids triggering a soft assert.

Change-Id: I86dd6fd3876504abc3ecf5b543e7c86d886bb4c2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Reviewed-by: hjk <hjk@qt.io>
2022-11-08 10:09:57 +00:00
Christian Stenger
09047d5a99 AutoTest: Log info messages as well
Amends f792dc0216.

Task-number: QTCREATORBUG-28394
Change-Id: I5bf9bb29a56e57ce0440ac1a831d6d552f93d791
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-08 10:09:48 +00:00
Marcus Tillmanns
129448d61d QmlJS: Fix Follow under cursor
When trying to jump to a symbol in a qml file the Qml Model may find
the location in a generated .qml file in the build folder.
QtCreator searches in all generated .qrc files to try and find
the source file so it can jump to it instead.

Previously not all auto-generated ".rcc" folders would be found
as only the folders of targets (executables) were searched.
Plugins or Static Libraries were not searched.

With this fix, all projects nodes are searched for the ".rcc" folder
and therefore also finds them for Dynamic / Static libraries and
plugins.

Fixes: QTCREATORBUG-27173
Change-Id: Ic51ac8fbc82c15785cbefd76787942a512ecf3db
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-11-08 09:54:10 +00:00
Leena Miettinen
fe376af66b Doc: Update File System view screenshot to show the number
...that is referred to in the text.

Change-Id: If5f343d2b25ecf5cfc4761f2a1326903f8925f36
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-11-08 09:13:26 +00:00
Leena Miettinen
f57ec09ee8 Doc: Add debugger troubleshooting information
From https://wiki.qt.io/Qt_Creator_Windows_Debugging

Task-number: QTCREATORBUG-27876
Change-Id: I36b19311387a93f729aea1bbc28db125e1d1230c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-11-08 08:32:28 +00:00
Leena Miettinen
65cfbc1b6e Doc: Use "remote Linux" instead of "generic remote Linux"
- Reflect the term changes in the UI.
- Move info about SSH port property to the wizard step list.
- Make the topic names in "Deploying to Devices" shorter.
- Remove some unnecessary "if defined(qtdesignstudio)" conditions
  from topics that are not used in the QDS Manual.

Task-number: QTCREATORBUG-27876
Change-Id: I2282257f245c31af82a41ea0e533407bf1cbd775
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-11-08 08:31:30 +00:00
Christian Kandeler
c4ee485bdf ClangCodeModel: Fix persistent SwitchDeclDef object
If both AST and document symbols are available right away, the
ClangdSwitchDeclDef object emits its done() signal before it is
connected and stays around, potentially firing off new "follow symbol"
requests to the bewilderment of innocent users.

Fixes: QTCREATORBUG-28183
Change-Id: I972c8d4d9d7b7435e293d76fe710b19c9c4fb287
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-11-08 08:14:37 +00:00
Eike Ziller
a1851c7cf1 Add -language command line option for overriding UI language
I run Qt Creator in german, but for responding to questions and
generally looking things up I regularly want to run it temporarily in
english. A command line option makes that easier than having to start Qt
Creator, navigate to the settings, and restarting it, and doing the same
again to revert back to german.

Change-Id: I7c0d84375ffc97e5c7607307fd3f785f2c315c3d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-11-07 14:50:36 +00:00
Leena Miettinen
fb5093d140 Doc: Update info on Docker devices
Task-number: QTCREATORBUG-27876
Change-Id: I837ce8b8aeea5d238e98a70b7b5754be46d2e34a
Reviewed-by: hjk <hjk@qt.io>
2022-11-07 14:39:58 +00:00
Daniele Bortolotti
11c9332574 McuSupport: Use lower case platform name for CMake configurations
QUL_PLATFORM name is converted in CMake to lower case, resulting
in misleading warnings about platform name due to case mismatch.

Fixes: UL-6641
Change-Id: I25df689c91dca65ef67c80d9527c0afe7952278b
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-11-07 14:38:03 +00:00
Eike Ziller
9eebcf3ef0 Restrict Python application wizards to desktop
Fixes: QTCREATORBUG-28258
Change-Id: I9814abe093efbff0b7b15711d4773c8cbcdc8e41
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-07 13:56:55 +00:00
Christian Stenger
f792dc0216 AutoTest: Fix Catch2 output handling
Handle warnings or explicit failures instead of ignoring
them.

Fixes: QTCREATORBUG-28394
Change-Id: I5ccde8e7b9dfa1118f42ea881b9152069616193f
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-07 13:13:47 +00:00
Jarek Kobus
dc9cb0562a Utils::Id: Make access to internal cache thread safe
Secure all accesses to internal cache with QReadWriteLock.
Move firstUnusedId into secured scope, too.

Fixes: QTCREATORBUG-28415
Change-Id: I99d23213ec169b2b74748f54c98b834f88ab6a3d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-11-07 11:58:57 +00:00
Robert Loehning
176df5827e SquishTests: Fix tst_CSUP04
Change-Id: I4d9546c13451d8e56a1bc616c3ac8a7640db3204
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-07 11:41:46 +00:00
Robert Löhning
724d275f4f SquishTests: Update tst_QMLS01
Change-Id: I8313aa6dbd9120341bcd9eee7b8d7c72f051a9b9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-07 09:50:04 +00:00
Eike Ziller
5335de2669 German translation: ExtensionSystem
Change-Id: Ia74823094434138889bf6699283e183a925584bf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2022-11-07 06:50:08 +00:00
Christian Stenger
c4204f6eaa Core: Silence wizard handling
The way wizards get created has changed. Originally the
factory had been able to return an empty list in case something
was wrong. This list's items had been processed. Now it just
returns a nullptr for each item as they get processed now one by one.
This triggers soft asserts when e.g. having only a subset of
plugins loaded like when running plugin unit tests.
Amends 1cf6b031cf.

Change-Id: Ia91df462ea52efe301c2dca07bc69aeb2f569b78
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-11-07 05:59:57 +00:00
Björn Schäpers
f4545807de clang-format: Adapt to LLVM 16
Change-Id: I2e35f92db6de10b1e4bf173f0864f0cd893a011f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-11-06 18:56:32 +00:00
Christian Kandeler
ed33e2bfb5 Update qbs submodule to HEAD of 1.24 branch
Change-Id: I521dd1cd921197392b359aee8e3b9fb9546a6cbd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
2022-11-06 13:16:56 +00:00
Sivert Krøvel
572747db37 McuSupport: Make legacy kit creation match QtCreator 8
The default path for the STM32 Cube Programmer was recently changed for
legacy packages. This means that Qt for MCUs 2.2 kits created with
QtCreator 9 and kits created with QtCreator 8 would have different
paths. This is not ideal as a basis for automatically creating new
kits when changing Qt for MCUs version.

This change makes QtCreator 9 create legacy kits in the same way
QtCreator 8 did.

Change-Id: I8b1fa4a0d673f746edf058aee292e6d42ca2cdcf
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-11-04 16:28:09 +00:00
Sivert Krøvel
6d992c9f3c Revert "McuSupport: CMake expects programmer path to include the bin folder"
This reverts commit e558fc4d1f.

Reason for revert: Because this is incompatible with how QtCreator 8
makes kits, it breaks the kit when changing versions. A fix for the
original issue was made in Qt for MCUs to accommodate not having bin
the path, allowing the detectionPath to be bin/... in matching with
legacy code.

Change-Id: I64c670398287b3ec9beec0aa6fac02325b322664
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-04 16:27:58 +00:00
Sivert Krøvel
6aaf33bee5 McuSupport: Do not update paths in kits for different SDK versions
When updating paths for a target in Devices > MCU, the paths were
updated in the corresponding kits for all Qt for MCUs versions.
This would break existing kits made for a different version than
the currently active one.

With this change, only kits made for the same SDK version as the
currently selected target will be modified.

Task-number: UL-6755
Change-Id: I6fda050094b5603914fbbc29a5fc2e83d974a2d6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-11-04 14:56:49 +00:00
Amr Essam
f4723ae885 QmlDesigner: Show proper warning if .qep file has no component
When dragging an empty effect, a messagebox shows with an option to open QQEM

Task-number: QDS-8155
Change-Id: I2afbf7ffb9cb58243f3635fe3a7aee999ab68713
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-04 12:56:42 +00:00
Eike Ziller
7203d6d44b German translation: Bookmarks
Change-Id: I4ee0d059d30b99742a1706e6e5769e71251ae6b7
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2022-11-04 12:17:18 +00:00
Eike Ziller
79781f05c4 litehtml viewer: Show link targets in tool tip
Like done for the other backends.

Fixes: QTCREATORBUG-23027
Change-Id: Idc1f7ee2f6240e6c488a9d7d65ead3be6846d303
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>
2022-11-04 12:16:48 +00:00
Eike Ziller
ead9dd987f German translation: Core plugin
Change-Id: Iec22406e32a21c58629889361fba22f0278da5b1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2022-11-04 10:54:21 +00:00
Eike Ziller
935f2e5d5e German translation: Help plugin
Change-Id: I555c20649ed838c08a074c76f78ba10a310c53a9
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2022-11-04 10:53:52 +00:00
Eike Ziller
e19c80b2c0 German translation: UpdateInfo plugin
Change-Id: I0dc74089a67245d2c7ec1ebcaf17acd848625037
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2022-11-04 10:53:36 +00:00
Eike Ziller
6401479dfd German translation: lupdate ts file
Result of `cmake --build . --target ts_de_cleaned` in the build
directory, in preparation for translations.

Change-Id: I9cf3b1aa08244e157e784ae148ed9b1dd308adb5
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2022-11-04 10:53:20 +00:00
Yasser Grimes
3c6a40b30e McuSupport: Support expanding multiple wildcards in a path
To support defining default paths such as "Microsoft Visual Studio/2019
/*/VC/Tools/MSVC/*/bin/Hostx64/x64"

Change-Id: I889439a0f2a05b15121a28fbf2b50acde2e74968
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-11-04 10:33:57 +00:00