Commit Graph

88420 Commits

Author SHA1 Message Date
Leena Miettinen
e8a85f9974 Doc: Describe options for updating Python Language Server
Task-number: QTCREATORBUG-30604
Change-Id: Ie41a971271e3f350218d45777ed081bc23167f91
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-17 08:47:36 +00:00
Cristian Adam
1ba52d1daa LLDB-DAP: Handle source mapping and additional debugger startup commands
This way we can step into Qt source code, and run startup commands like
`process handle SIGSEGV --notify true --pass true --stop true`

Change-Id: I495c1ef1554157989f4013473c22217e2d980053
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-06-17 08:36:52 +00:00
Artem Sokolovskii
76e176afe6 Core: Fix "Show All Kits" button appears after configure project
"Show All Kits" now button appears when project has been just
 configured.

Change-Id: I68c61aa56aca27c98afb60ada4a4d900db404a6c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-17 07:43:24 +00:00
David Schulz
32fdd72f14 ASM: Fix build on windows
Change-Id: Iee491d09aca54160ea59a34b12f2ce061852b51e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-17 05:44:44 +00:00
David Schulz
963e55f3db Debugger: remove unneeded size cache lookup
Change-Id: I1d16c4d8d1436fe252269439e4059c6cd9886d81
Reviewed-by: hjk <hjk@qt.io>
2024-06-17 04:27:39 +00:00
Christian Stenger
4ff0f93abc QbsPM: Be less aggressive when providing proposals
Change-Id: I3826651030a3ec1c8293625c4c99c0ee31a97a5f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-17 04:05:10 +00:00
Leena Miettinen
70941abad9 Doc: Add Type Hierarchy to the list of supported LSP features
Task-number: QTCREATORBUG-30604
Change-Id: Ic8925e990a14a38383f465295d857d15221693df
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-14 14:46:57 +00:00
Leena Miettinen
096c4ae18d Doc: Describe Open With > Qt Design Studio for .ui.qml.files
Task-number: QTCREATORBUG-30604
Change-Id: I4049e6717cb3e0811bed78a15a9be9c1fdda28d2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-14 14:02:02 +00:00
Cristian Adam
0cb8760338 Debugger: Fix LLDB-DAP attach to process
Change-Id: I464db537d85de7bce943334379b6ce499b32dc2b
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-06-14 13:06:16 +00:00
Jarek Kobus
ba73e3e50a SubDirFileContainer: Add optional filtering function
Change-Id: Icf972babadc87dbc681ca282984b82484afc68c4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-14 12:43:01 +00:00
Jarek Kobus
81ed276828 IosToolHandler: Don't call stop() from the other thread
Task-number: QTCREATORBUG-30633
Change-Id: I0ddb354dbd3be685919b98589a5f0d534bd30dbe
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-14 12:39:47 +00:00
Eike Ziller
f22660facb Bump version to 14.0.0-beta2
Change-Id: I1ca19c9cb6f7d8bfec665300c23389ba22e93c1e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-14 12:33:32 +00:00
Leena Miettinen
a3a543a55f Doc: Add use cases for Add Curly Braces quick fix
- Update and add examples
- Make punctuation in the topic more consistent
- Add a link to the docs to the change log

Task-number: QTCREATORBUG-30604
Change-Id: I723af29117a4b35a70eed61058c5d43da285242d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-14 12:02:02 +00:00
hjk
625fd895ce Fix more metatype related deprecation warnings
QT_DEPRECATED_VERSION_6_0
static int type(const QT_PREPEND_NAMESPACE(QByteArray) &typeName)

Change-Id: I6a085c6d370b6d65193dc09d4318765de81a8ce3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-14 11:00:32 +00:00
Christian Stenger
36531a1068 Cppcheck: Fix handling of settings
We need to distinguish between the global settings and the
settings used for a manual analyzer run.

Fixes: QTCREATORBUG-28951
Fixes: QTCREATORBUG-30615
Change-Id: Ic2dabd14e4d06d77bebcedd9e653f54a4d179c82
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-14 10:47:03 +00:00
Cristian Adam
8a7402c7cd Debugger: Allow GDB/LLDB DAP debugger as native C++ debugger
This would allow manual registration of a GDB/LLDB DAP debugger from a
CMake configure preset as follows:

```
  "vendor": {
      "qt.io/QtCreator/1.0": {
        "debugger": {
          "DisplayName": "LLDB Dap 18.1.7 Debugger",
          "Abis": ["arm-darwin-generic-mach_o-64bit"],
          "Binary": "/Users/cristian/llvm/clang/bin/lldb-dap",
          "EngineType": 1024,
          "Version": "18.1.7"
        }
      }
    }
```

This way I can configure a project with a toolchain that uses a DAP
debugger (not every gdb/lldb has python bindings) and have debugging
working out of the box.

Change-Id: Id9bff26b6544b7af99caccb18cdbe0edb334218a
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-06-14 10:36:44 +00:00
Christian Kandeler
834e0867b0 Update qbs submodule to HEAD of 2.4 branch
Change-Id: I21173a7408dd40dbe12a142d01956cbb784d4ce7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-14 10:32:25 +00:00
Leena Miettinen
f1fd60077c Doc: Add example of Convert Function Call to Qt Meta-Method Invocation
Task-number: QTCREATORBUG-30604
Change-Id: I9245b4eb35f6cc951ba70583a628870b53040e7b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-14 09:40:55 +00:00
Christian Kandeler
44927d7cdc BareMetal: Do not ignore compiler flags
... when querying pre-defined macros.

Task-number: QTCREATORBUG-24040
Change-Id: Icd3625aaedb374048673c9eb239819b245dfdaa7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-14 08:32:26 +00:00
Christian Kandeler
c41c3619b1 BareMetal: Add missing pre-defined macro
Task-number: QTCREATORBUG-24040
Change-Id: I8d3a8f263cdee1d7971d339a56e30a6742b45bc5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-14 08:31:40 +00:00
Christian Kandeler
9e4fc34e79 QbsProjectManager: Consider common compiler flags
... also for non-GCC and non-MSVC toolchains.

Task-number: QTCREATORBUG-24040
Change-Id: I4133c4dac8183012e1bc6fd8a037f75a50d3a166
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-14 08:30:45 +00:00
Leena Miettinen
9aeb396836 Doc: Describe Preferences > C++ > Code Style > Statement Macros
Task-number: QTCREATORBUG-30604
Change-Id: I8ce44b3ed677076801d3ec96cdf33704a97f4efe
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-14 07:29:20 +00:00
Leena Miettinen
ad2b6eeeb3 Doc: Describe Preferences > C++ > Code Model > Enable indexing
Task-number: QTCREATORBUG-30604
Change-Id: I93e2e251f58e335c6f4491fd9e7e84e69528611e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-14 07:29:13 +00:00
Cristian Adam
dcaa55200b Debugger: Add "LLDB Dap" preset
lldb has a dap interface since a while now. The "GDB Dap" preset is not
compatible, since gdb uses the same executable and lldb has a "lldb-dap"
(previously "lldb-vscode") executable.

Change-Id: I4105223659de093f0ee44129527c4830d21a3090
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-06-13 15:02:45 +00:00
Leena Miettinen
45f262f92c Doc: Describe new Clangd preferences
- Updated screenshots
- Added option names and location to the change log

Task-number: QTCREATORBUG-30604
Change-Id: I1554d6b7dbd588619eb992ef906d1bcef056f8c5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-13 14:30:19 +00:00
hjk
9fe4f23272 QmlJS: Fix severity of some (non-)error
"Calls of functions that start with an uppercase letter
should use 'new'." is a warning, not an error.

Fixes: QTCREATORBUG-27522
Change-Id: If1f82665819053b72e412a51cf4cf3c9b3e91ae2
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2024-06-13 14:10:20 +00:00
Leena Miettinen
5665c349d1 Doc: Describe new C++ quick fixes
Task-number: QTCREATORBUG-30604
Change-Id: I08ee0478660b9166b1a6f2d1451ceab0d0c79789
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-13 13:36:08 +00:00
hjk
a8ca4fa0a4 Fix more deprecation warnings
Change-Id: If4be230541b2737aaea2be2b3907472d5c1131a5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-13 13:19:23 +00:00
Marcus Tillmanns
a76d9bf085 Lua: Add documentation
Change-Id: I96b4525b68919247440d6aad544e0386d921384f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-06-13 12:54:42 +00:00
Marcus Tillmanns
39c1d82f46 Lua: Implement lua pluginspec specific version check
Change-Id: I52c496c177c949056ff5e7a4ff7b903a028620b1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-13 12:52:14 +00:00
Marcus Tillmanns
20a6a5cd78 Extensionsystem: Allow pluginspecs to customize how they want to check dependencies
Change-Id: I84f3a56160588e4842301f4577f7bfdad96463ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-13 12:52:08 +00:00
David Schulz
bb4c6d2bff Dumper: optimize cdb Qt version detection
... by not overwriting DumperBase.qtVersion. This function already
checks whether the Qt version was passed via the fetch variables
command.

amends 3aee50f5fd

Fixes: QTCREATORBUG-31049
Change-Id: Ifa67be5701fc7e5492e4c1fcb8943111b299c78d
Reviewed-by: hjk <hjk@qt.io>
2024-06-13 12:20:40 +00:00
Christian Stenger
52a8aa7d09 FakeVim: Handle highlights for more split actions
This fixes the issue at least for all usual FakeVim commands.
It still breaks if the user directly uses the respective
buttons on the editor toolbar, but that is a different story.
Amends 5ad790d5c8.

Task-number: QTCREATORBUG-28914
Change-Id: I0a69d1f50eb6788099ac93bb529f72502cbd6ed0
Reviewed-by: hjk <hjk@qt.io>
2024-06-13 11:50:50 +00:00
Marcus Tillmanns
0c0ad6e7d8 Lua: Replace -loadluaplugin with -pluginpath
Change-Id: Ic398e09dedd6ba11a73e616788b92a001e0a96bd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-13 11:13:15 +00:00
Leena Miettinen
ca90dcdc13 Doc: Change the title of a tutorial to move it down the list
This is a temporary fix until the real fix ends up in Qt 6.9
and we start using QDoc from there to build the docs. Then,
we can rethink the title.

Change-Id: I95332b18f7b53fd9b01d0b986275c958add0f00e
Reviewed-by: hjk <hjk@qt.io>
2024-06-13 11:06:44 +00:00
Marcus Tillmanns
ddd137f3b1 Lua: Move lua plugins into normal plugin folder
Change-Id: I14ab0bb755a4279bc255673596fe084cd556433c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-13 10:26:29 +00:00
Cristian Adam
f7991a80f5 GitHub/Coin: Update LLVM/Clang to 18.1.7
Fixes: QTCREATORBUG-31045
Change-Id: Id70b3ac32a944c89763d095f5dcf6cd20849610d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-13 10:04:50 +00:00
Jarek Kobus
c9ce9f819b SubDirFileContainer: Fix manual tests
TaskTree::runBlocking() returns DoneWith enum these days.

Change-Id: Ib6fb1ce3e849586e236c9985461c29695ff9d880
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-13 09:52:58 +00:00
Eike Ziller
03626ad26a Add information about Lua to change log
Change-Id: Iaeb1e1c0883c3638e75c36c16d340fafc8fd1d39
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-06-13 09:29:41 +00:00
Marcus Tillmanns
8f715a350b Lua: Fix comment line endings
Change-Id: I00a5ece580b69a65c8fa60eae8458526d1df257e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-06-13 09:20:23 +00:00
Jarek Kobus
e331329e4f TaskTree: Detect a misconfigured recipe of a nested task tree
Change-Id: I6652336023ac111cde5334e655f5dd972977b07f
Reviewed-by: hjk <hjk@qt.io>
2024-06-13 09:17:24 +00:00
Christian Kandeler
55836c174d CppEditor: Fix unit test
Amends f477ede697.

Change-Id: Ibc6ae49adbe6932c57ca22008cbd354cd3bd26f5
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-13 09:14:03 +00:00
Christian Stenger
7d5f1bd17d CppEditor: Silence warning
Amends f477ede697.

Change-Id: I99b10d2f9ba460ee0a1fa828e1b19465077192ef
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-13 09:13:39 +00:00
Christian Stenger
20dda9d5fd FakeVim: Avoid possible nullptr access
Amends 9f0919c4a3.

Fixes: QTCREATORBUG-30730
Change-Id: I389412a0b069fd34a625075d97c89f106c5b5f74
Reviewed-by: hjk <hjk@qt.io>
2024-06-13 09:13:29 +00:00
David Schulz
c5564559cc ProjectExplorer: use multiple threads to scan for files recursively
Change-Id: I845d2e2eaffd8d6a4e85d3186435d57846789506
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-06-13 08:13:35 +00:00
Eike Ziller
caa5c3947f iOS: Fix slow debugging with recent Xcode and iOS < 17
When starting the debugger, we need to pass it the location of the
downloaded device symbols, or otherwise debugger startup is very slow.

Xcode changes the location where it saves this information once in a
while, and it must have again. The location with Xcode 15.2 at least is
in the style "iPhone8,1 15.7.3 (19H307)", i.e. it starts with the
"product type" now.

Retrieve the product type of the device and add another candidate
directory for device symbols.

Fixes: QTCREATORBUG-31044
Change-Id: I1a65305fc84c1af8cd48c4ebb249167e1dbe6ae1
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-13 06:09:47 +00:00
Alessandro Portale
b599edb9b7 Qt Creator redesign: Update the mode bar icons
This updates the existing mode bar icons in the svg file with the new Qt
Creator Design icons from Figma. The pngs are updated accordingly.

For consistency, the "beetle overlay" for toolbar actions is also
updated.

The custom color for "active" state of a mode icon has been removed. If
we keep this change, a couple of Theme::IconsMode*ActiveColor entries
can be removed.

Change-Id: I9b5422c79f5426e31b41e59d67ddc307b521c0af
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-06-12 15:08:00 +00:00
Cristian Adam
bd6e47ce46 Core: Fix use after free ASAN error
When closing the "Preferences..." dialog with Esc key, the ASAN address
checker would report a use after free at "while (m_running)" below in
the code.

Fixes: QTCREATORBUG-31047
Change-Id: I484a80305ebbd903607e945eb56b331f57d40370
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-12 14:51:59 +00:00
Eike Ziller
d074f1a9b4 Improve the position of Open Workspace in the File menu
Keep the "Recent *" menus together

Change-Id: I99613201bf7ee00e91ca63b56ddcccf23f13c5c7
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-12 13:23:36 +00:00
Leena Miettinen
25290aaf05 Doc: Split up the table of C++ Quick Fixes
Organize quick fixes in tables in alphabetic order
according to where they are available.

The one big table was getting very hard to read and
new quick fixes are added all the time.

Change-Id: Ieaff98b7cdb2d781b14630fa4db77b4b261f4573
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-12 13:04:46 +00:00