Commit Graph

88532 Commits

Author SHA1 Message Date
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
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
hjk
a8ea6c1eac Debugger: Fix action handling of QML Console filter buttons
Amends 93a5803956.

Fixes: QTCREATORBUG-30788
Change-Id: I3699e07e67821098500b5b4f85a15d8b19f57ec5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-11 11:34:12 +00:00
Jarek Kobus
faf6ae04c2 TaskTree: Qt-ify the code (part 3)
11. Replace local lambda with static method, otherwise getting:
    "qarraydatapointer.h:110:17: error: pointer may be used after
     ‘void free(void*)’" on rhel-9.2-gcc12.
12. Use std::optional::reset() instead of "= {}", otherwise getting:
    "error: use of overloaded operator '=' is ambiguous
     (with operand types 'std::optional' and 'void')" on vxworks-imx6.

Amends 88ee3aa908
Amends 6621c68ca9

Change-Id: Ie1631e119cb89d23a6acb3b4c39199e6ebaf1ea1
Reviewed-by: hjk <hjk@qt.io>
2024-06-11 11:11:31 +00:00
Christian Stenger
dbe2e422f7 Axivion: Link from dashboard overview to table
Make issue counts clickable and directly jump to
the respective issue kind.
This approach mimics original dashboard view more
closer and avoids confusion on the user side when
trying to find the issue table.

Change-Id: Ic23368ea6d881b46950ef41c28d4cbf737163cf2
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-06-11 11:07:26 +00:00
Cristian Adam
b66a800045 Revert "CMakePM: Set platform codegen and linker flags for GCC compilers"
This reverts commit 831b93905b.

Reason for revert: breaks Android and it looks like magic. For CMake one
should use a toolchain file. But this revert keeps the CMAKE_C|
XX_FLAGS_INIT parameters update / merging.

Change-Id: I1c3c61e4a9345a29e72db7f5f5a2d6e3fdba52f1
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
v14.0.0-beta1
2024-06-11 09:52:22 +00:00
Christian Kandeler
2d35dd1532 ClangTools: Fix behavior of expand/collapse button
It's a check button, so it should behave like one, i.e. its current
state should be considered when adding new diagnostics, and it should be
enabled regardless of whether any diagnostics are currently visible.

Change-Id: I0e21ad5fdc5cd6a20fda7b40ea7eecd454d1e11f
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-11 09:15:10 +00:00
hjk
4e2d8d0226 Fix more metatype related deprecation warnings
Change-Id: If206b70d263bcdb6d617827fb9cb8fe3214564a1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-06-11 08:51:23 +00:00
Eike Ziller
36ec16a34c Add change log for 14.0.0
Change-Id: I5350a15dc342ced4e181338443dfe44b0cf1bd5c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-06-11 08:33:30 +00:00
Leena Miettinen
4c2c709256 Doc: Add links to related topics from "Configuring Qt Creator"
Edit the style.

Change-Id: I3f0404b7d049cfa0e8f6eb530768d31f459ea1fe
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-11 08:30:38 +00:00
David Schulz
64f9ff8963 Rust: use cached release information
Change-Id: Ibc9b0921e02f4c190986bcf69f75a3347369c68d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-11 08:24:37 +00:00
Marcus Tillmanns
bb5b8b40ff LanguageClient: Don't store client settings multiple times
Change-Id: Iff6dcfef4d8f1e5cc01b48f2a4cf12f4c5927581
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-11 06:31:06 +00:00
Leena Miettinen
3cf9f64791 Doc: Update info about connecting Linux-based devices
- The device wizard instructions should not mention USB, as
  USB connections are detected automatically
- The descriptions in the Extension Manager should use
  "network" when both wired and wireless connections are
  supported

Change-Id: I29a7279c413b335280fc5f2fa254e8922ecac5a9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-11 06:06:52 +00:00
Christian Stenger
732b503aa2 Lua: Add wizards to qbs build
Amends cb1f1bdd61.

Change-Id: I56a20324a089abc360c94d6eb7d2c2522622a094
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-11 06:00:35 +00:00
hjk
8a6e1d6c06 TextEditor: Avoid some deprecation warnings
Change-Id: I05ceed344086f1cf75926f132422a1e0ae30cf08
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-11 05:47:42 +00:00
Christian Kandeler
f65c54fa3e Wizards: Remove remaining uses of classToHeaderGuard()
Amends 335c552bda.

Change-Id: I4f43e74f74cd42c4139e91b80abe89bf371411ef
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-10 14:08:15 +00:00
David Schulz
0cd5230f6a VCS: Improve performance of isVcsFileOrDirectory implementations
FilePath operations are relative expensive on Windows compared to the
cost of a string comparison, so always first check the file name before
checking any file meta data.

Change-Id: Ibb4c13d7e11e0c01bdf3706a62362f4c0a27d284
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-06-10 13:58:45 +00:00