Commit Graph

88653 Commits

Author SHA1 Message Date
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
Christian Kandeler
ccae4fc93c CppEditor: Consider #pragma once when inserting includes
Fixes: QTCREATORBUG-30808
Change-Id: Ib9f2ed1e428abfaa608b9dc42bc09dd2d403ee56
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-13 13:03:08 +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
David Schulz
b56a447a83 Debugger: Prevent showing the windows error on debugger detection
Change-Id: Id4a6d8fe345fa023d3a0bffe6e46fc2077cbfae5
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-06-12 12:56:31 +00:00
Artem Sokolovskii
d3753b97b2 AppStatisticMonitor: Add Mac support
Change-Id: I1af929cb9cccd115940cbcfddcd2102c6f15a367
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-12 12:06:28 +00:00
Eike Ziller
1ff3e0aab8 Merge remote-tracking branch 'origin/13.0' into 14.0
Change-Id: I530a3047364fae9cf8a992dd9395147d3e25a10a
2024-06-12 12:55:25 +02:00
Christian Kandeler
3ea08f9b6f ProjectExplorer: Make the timeout between TERM and KILL configurable
Fixes: QTCREATORBUG-31025
Change-Id: Ibb5b9f3a946e1603fb55b57511c4b6d90b1d6217
Reviewed-by: hjk <hjk@qt.io>
2024-06-12 10:34:54 +00:00
Sivert Krøvel
108ed5a400 McuSupport: Update getPath() test expectations
After the recent change 3be0b263a8,
SettingsHandler::getPath() can be called one additional time in the
McuPackage constructor. Take this into account in test expectations

Change-Id: Ib302de2b2d446a9b8884f8c3d0bfabd4223b8d87
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-12 10:25:38 +00:00
Eike Ziller
d49934604b Merge remote-tracking branch 'origin/14.0'
Change-Id: Ia809bda892afe5321aaaca2275f24baaf9569abc
2024-06-12 11:36:13 +02:00
Cristian Adam
0eed1b3efa CMake: Fix static build of Qt Creator
The plugin class names were different, and this is important for static
plugins because the symbols wouldn't be found at linking time.

Change-Id: Ia2254e5ce811fe23daf12e445593980211b7cd47
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-12 09:23:53 +00:00
Eike Ziller
e9fd7e5c2c Make it possible to mark a plugin experimental but not disabledByDefault
For plugins that are shipped by Qt Creator, it makes sense to disable
experimental plugins by default. But for separately installed plugins it
is weird that you first have to download and install them, and then also
have to explicitly turn them on.

Use that for AppStatisticsMonitor in the case that it is built and
installed as a separate plugin.

Change-Id: I12e979d2e088dc32380c2e2ae83ed2b7ef9276b0
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-12 09:22:25 +00:00
David Schulz
9a06e1f65c Debugger: prefer 64 bit cdb and remove auto detected 32 bit cdb
Change-Id: I57a4b0cb25a6d33478bc7a5cde9a427cfc5214c6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-12 09:11:37 +00:00
David Schulz
e84a9bc3d5 WorkspaceProject: exclude user file and define scheme url by default
Change-Id: I359682a0010a42f00591c103c93b7f41c7f987fd
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-12 09:06:51 +00:00
Christian Kandeler
6c6b01faa8 qbs build: Fix building documentation
qdoc needs a new environment variable these days.

Change-Id: I29eb64c2d3ee7555fc99a928971eaccaac8317bf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-12 08:30:20 +00:00
Leena Miettinen
9ee39e5141 Doc: Describe how to add optimized self-built Qt
Fixes: QTCREATORBUG-30841
Change-Id: Id5c2fe0fcf925812b9abc8d8f53557aeeb917e32
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-12 08:27:07 +00:00
Marcus Tillmanns
e47c797dee LSP: Fix MarkedString fromJson
fromJsonValue<T>(...) (with T = MarkedString) always tried to convert
the json value toObject() first. Which is wrong since it can be an
object or a string.

Fixes the broken hover text for the json language server.

Change-Id: Id69b4270238bea7068936a7d2142f4f94918f96b
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-12 08:08:58 +00:00
Christian Kandeler
f477ede697 CppEditor: Make header guard naming user-configurable
Fixes: QTCREATORBUG-25117
Change-Id: I732e9a8f146b4d6a346492141ec364a99f167b94
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-12 07:58:02 +00:00
Marcus Tillmanns
77b44bcb00 LuaLC: Register Settings type
Change-Id: I58b3817e83c598b62e0ae5e61c21043d2c3290a7
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-12 07:54:37 +00:00
David Schulz
804a890a00 Debugger: fix QStack and QDateTime dumper
amends 3aee50f5fd

Change-Id: Iaa6666eb6c59f88572add6ae79ef942643ba38d4
Reviewed-by: hjk <hjk@qt.io>
2024-06-12 07:42:12 +00:00
hjk
363e9b4c1a Debugger: Drop some Python 2 leftovers
Change-Id: Id120abaadb23af4139fc126b14a37932f6d630ea
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-11 16:11:08 +00:00
David Schulz
670b4ec729 Debugger: remove DebuggerRunTool::setUseCtrlCStub
The ctrl c stub is now used by default.

Change-Id: I802e8a4bd694bc98e8c4535875e9f2791d9dd5e9
Reviewed-by: hjk <hjk@qt.io>
2024-06-11 13:30:05 +00:00
David Schulz
9d88da6c2b Debugger: simplify interrupting windows processes
The win32interrupt.exe is gone. And since we do not support 32bit Qt
Creator builds anymore there is no purpose for a win64interrupt.exe.

Since some 'recent' changes interrupting the cdb works now by simply
setting Process::setUseCtrlCStub and calling Process::interrupt on the
debugger process. The same seems to work with gdb nowadays, but we need
to expect the SIGINT signal that gdb receives in this situation.
Otherwise the user will be shown a message box about the emission of
that signal.

Change-Id: I7a21d7ea34409d8bbf62d94e28387d591e7feb3d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-11 13:29:59 +00:00
Christian Stenger
0f983f2e95 Axivion: Remove unused lambda capture
Amends dbe2e422f7.

Change-Id: I06e75ff43a9504f4b1c06670427c1ec95bddafe9
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-06-11 13:09:53 +00:00
Leena Miettinen
6c98cb780d Doc: Describe configuring C++ code model for a project
Task-number: QTCREATORBUG-30604
Change-Id: I8f3634fe4282ebe3d364f7762fe651ddb872313f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-11 12:23:18 +00:00
Eike Ziller
cf64d46bbe Markdown: Implement navigation history
The text editor widget now tells us when it thinks a new navigation
point should be added, so do it.

Change-Id: I20e65134420cb1d94d7bc5310791d07ff951647c
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-11 11:49:22 +00:00
hjk
3aee50f5fd Debugger: Paddle back on the (non-)auto detection of Qt versions
It looks like there are Qt-using scenarios without easy way to have
the right Qt version in the kit,

Among the frequent cases where we need to distinguish Qt versions in
the dumpers are the Qt5/6 container layout differences which can in
some cases be detected from the currently dumped value. Use that now
as the primary distinction and fall back to the previous expensive
peeking only if that is needed. This also postpones any Qt version
related activity until a real Qt type is encountered, i.e. does not
impact non-Qt scenarios.

Task-number: QTCREATORBUG-31033
Change-Id: I67b6e34c42994ad9f6e8ec8698b430b55327cf0c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-11 11:46:11 +00:00
Leena Miettinen
3e40f2f0e4 Doc: Add a note that Docker plugin needs to be enabled
And a link to how to do it.

Change-Id: I4c2ed3e64306629db39bdf085db973c04bbb65f2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-11 11:44:53 +00:00