Commit Graph

72811 Commits

Author SHA1 Message Date
Alessandro Portale
fdfbf273a2 BareMetal: Use LayoutBuilder for DebugServerProvidersSettingsWidget
Change-Id: I66ec71567de0fc9ace233c1fe3dee5c088956acf
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-24 12:39:51 +00:00
Eike Ziller
959f5fa3a2 iOS: Simplify starting simulator
We do not need different code paths for Xcode < 9 nowadays.
Just tell simctl too boot the requested device and make sure the
Simulator app is running.

This also fixes an issue if for some reason a different device is already
booted without the Simulator app running, e.g.

1. make sure Simulator is not running
2. boot a device from the command line with
   `xcrun simctl boot <deviceID>` (get the device ID from the Devices &
   Simulators window in Xcode)
3. start Qt Creator and run an application on a *different* simulator
   device

Without this patch Simulator app opens with the device from (2) and
deployment of the application fails for the different device.
With this patch the device for (3) is booted and the application
deployed and run.

Change-Id: Ifce8c470f2d4d646295ca4e47fbd92308f87adf8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-24 12:04:47 +00:00
Eike Ziller
5cd35e33b3 iOS: Unify error output handling for all simctl commands
If simctl fails, always include its stderr output in the error, if any.

Change-Id: I7a5643ac81befc9d0595e9c3bd4fa009057ff85b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-24 12:04:36 +00:00
Christian Stenger
f91af7106a Lua: Fix qbs build
Amends 1220db049e.

Change-Id: I5e9f7898ec4d421fe44105c58cfd17eda68c8a6b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-24 10:58:54 +00:00
Marcus Tillmanns
05b1d9cf68 LuaLSP: Make init Options dynamic
Allows a LSP plugin to dynamically configure the initializationOptions

Change-Id: Idc5d6526a732512b2e4e7394fb1c8b5749cde25d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-24 10:44:10 +00:00
Marcus Tillmanns
df583b2cd0 Lua: Add to/from json convenience functions
Change-Id: Ibf69c8021d676bd6efbbdb5331f1925808fcfe38
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-24 10:43:57 +00:00
Christian Stenger
d0fe8ac061 Meson: Fix qbs build
Change-Id: Ib06c3fa58be117c315ec828d406221494d4e5481
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 10:38:48 +00:00
Marcus Tillmanns
1220db049e Lua: Add support for translation
Change-Id: I5398480233c830bb08c641bc8193b068fb037032
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-24 10:04:26 +00:00
Shrief Gabr
86abda20b0 QmlDesigner: Prompt to restart only if Insight Tracker status is changed
Fixes: QDS-13262
Change-Id: Ia295cb13752077366ec13cb2b9b5b76825ea2acf
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-07-24 10:01:15 +00:00
Tim Jenßen
3b0008220e qml2puppet: fix a frequent crash
Change-Id: I939e0df31dfab2a97235da7778c12534acb128e7
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-07-24 09:56:49 +00:00
Eike Ziller
8777b01cb3 Fix missing symbols in Meson plugin
Amends 3cf8a37c7d

Change-Id: Ied585d199f40d0e8ac75ca74201e549cbcc68b55
Reviewed-by: hjk <hjk@qt.io>
2024-07-24 08:29:41 +00:00
hjk
3cf8a37c7d Meson: Merge toolitemsettings.* into toolssettingspage.cpp
Change-Id: I69cc4032c6b5c8fc9e5c86753994781a4f65a35f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 08:07:55 +00:00
hjk
1decf593b1 Meson: Merge tooltreeitem into toolsmodel
Change-Id: I949e36740545ea1521a22efb6b1db16548dfae64
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 08:07:45 +00:00
Eike Ziller
4fb63e4c9d iOS: Remove unused variable
It was set, but nobody was actually using it.

Change-Id: I99c6fcd4605591d65e5f3fb3f489a3de0c61fb24
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-24 07:45:24 +00:00
hjk
b02783db02 Meson: Remove empty targetparser.h
Accidental leftover from 508189339.

Change-Id: I104512e3999297669c358e4e1d2b5672ced125c8
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 07:44:15 +00:00
hjk
c1b113d599 Meson: Compactify mesontools.{cpp,h}
Change-Id: I1f34fc5394aabfba1d2b069f12b9175f410aaf4f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 07:17:47 +00:00
hjk
3ca8c6a0a5 Meson: Merge toolwrapper and mesontool file pairs
Change-Id: I6383a5ee060957ba133ddf98a1a383bbe2489369
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 07:17:37 +00:00
hjk
23b31e24bf Meson: Start generalizing again
Change-Id: I9fc18edb0e159c448193b4cc7c4bd82b2d5f409a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 07:16:26 +00:00
hjk
a4a92a04a1 Meson: Streamline setup a bit
Change-Id: I8d146b2b79beb9b09dcf6f8ed498039d79af0e76
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 07:16:12 +00:00
hjk
ed10d7a449 Meson: Merge ToolWrapper classes
Change-Id: I140088263059944b39c913acd1df07312b249953
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 07:12:14 +00:00
Henning Gruendl
7e30662611 QmlDesigner: Add custom context help NavigatorView
Task-number: QDS-13252
Change-Id: Ib7228265619c95dd8421813bf545844bc1ecb58d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-24 06:31:01 +00:00
Henning Gruendl
52a5cfdb30 QmlDesigner: Fix NavigatorView context help
Remove line increment in jumpToModelNode code as it erroneously puts the
cursor in the text editor to the next line of a selected item.

As the NavigatorView and others currently using the context help
function of the text editor, which internally depends on the cursor
position, and hence on the assumption that when selecting an item via
any view the cursor is placed on the item an not inside the item,
pushing the cursor down by one line breaks that assumption. As a result
the context help searches for nothing or a property (e.g. id) and not
the selected node.

Task-number: QDS-13252
Change-Id: I00810a0ff8ddd49177ebf18e3eea7b6b05cc0af3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-24 06:30:56 +00:00
hjk
36a6fa1664 Meson: Start simplification of tool loading
Change-Id: I5a70c17bd219dc8dc18061842808166b76b26828
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 06:30:09 +00:00
Marcus Tillmanns
c76025ed41 Lua: Allow category icon as filepath
Change-Id: I364b9d7c33e17986df3156dd59c359f111f05c00
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-24 06:15:24 +00:00
Marcus Tillmanns
7d4e2427fd Lua: Add pluginDirectory field to PluginSpec
Change-Id: I83066df3ce519d7e928bb79523ef43111b9bb1c0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-24 06:15:20 +00:00
Jarek Kobus
7cb3ba0b2f WebAssembly: Add missing include
Amends 62f68a2f99

Change-Id: I79166c7764a66b51545ab5124e3f4850b2d7567d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-24 04:28:15 +00:00
Jarek Kobus
b52bded0a7 Android: Don't pass error string
Instead, emit remoteProcessFinished() directly from the
startDebuggerServer() function. Make this function void.

Change-Id: Ibeeb2a1e3aabb9b3021203003e31a7b44eef573e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-24 04:15:15 +00:00
Christian Stenger
c9da771625 QmlJS: Fix requesting context help
Import versions as well as versionless imports can confuse
the help engine when performing context help lookups, which
leads in some cases to falling back to the wrong help items.
Remove the version for looking up help items.

Fixes: QTCREATORBUG-31280
Change-Id: Ida765369f52804186ca005ceec23cd9d795220c5
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
2024-07-24 04:04:43 +00:00
Jarek Kobus
529f8c453c Android: Remove unused functions from AndroidConfig
Change-Id: Ie2a0801eec65a97cc5b67994a6f9b2b07242137f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-23 18:31:08 +00:00
Jarek Kobus
f5dd0c63ac Android: Replace blocking run of Process with non-blocking
Make the getconf process a yet another task in the recipe.

Change-Id: I4c25cb512740471fa603ee0b9a46a41879ba90cd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-23 18:30:57 +00:00
Alessandro Portale
62f68a2f99 WebAssembly: Provide diagnostics for an unsuccessful emsdk detection
Setting up a working emsdk requires a couple of steps:

1) Installation/clone of emsdk
2) Installation of an SDK
3) Activation of an SDK

If the setup is incomplete, Qt Creator cannot use the emsdk. Until now,
users got no explicit indication of an unsuccessful emsdk detection and
no hint of what could be wrong. This change adds visual diagnostics of
potentially missing emsdk setup steps.

Fixes: QTCREATORBUG-30057
Change-Id: I2dc2d3388be75e8586dc18d24b0a5b57bcffaadb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-23 16:15:31 +00:00
Alessandro Portale
72509fbe10 WebAssembly: Simplify initial settings UI update
This removes the need for a delayed call of
WebAssemblySettings::updateStatus(), and a possible visual glitch where
too many widgets are visible for a split sencond.

Change-Id: I2b4b39f6576d16d4fde6b3e3df1ce09e6805086d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-23 16:14:40 +00:00
The Qt Project
74d7c84c8d Merge "Merge remote-tracking branch 'origin/14.0' into qds/dev" into qds/dev 2024-07-23 14:08:09 +00:00
Marco Bubke
2808b5175b QmlDesigner: Modernize string constants
Inline variables have weak linking. So the linker will reduce them to
one instantiation.

Change-Id: I8aa02aa1181a59faf955f31d2683a76e8aef2df6
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-23 13:53:20 +00:00
Tim Jenssen
e5d8d1cef0 Merge remote-tracking branch 'origin/14.0' into qds/dev
Change-Id: I1c354102209ba0c3505e3e2745e64ce77cc22bb3
2024-07-23 15:28:59 +02:00
Tim Jenssen
180e8c74a4 QmlDesigner: puppet needs to know the databaseFilePath
Task-number: QDS-10540
Change-Id: I8df5b38ffa6b0f96c06f3b5aafbbe3f960f9dab8
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-07-23 13:04:10 +00:00
Tim Jenssen
173716cbec QmlDesigner: fix build on MSVC2019
Change-Id: I635e40cba17531c1d56e5cbcc4f86853edb0e9ae
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-07-23 13:04:03 +00:00
Shrief Gabr
231cbdb254 QmlDesigner: Change splash screen for Insight
Fixes: QDS-13225
Change-Id: Ia636b03c96c9d295990f9f9e2c4e0aca852835c4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-23 11:01:15 +00:00
Jarek Kobus
ddbf884c12 QmlDesigner: Fix warnings about deprecated operator+
Use operator| instead.

Change-Id: I34392de11a9430922a644851602d5cce4c72df42
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-23 10:54:38 +00:00
Jarek Kobus
841db70d32 QmlPreview: Remove unimplemented methods
Change-Id: Ic1b4ae5c39ef5e1093d2b8a45b08f7bec75d2b9c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-23 10:54:17 +00:00
hjk
a43d687a10 ProjectExplorer: Add a trival BuildConfiguration
So people can at least add a custom build step

Change-Id: I78f3601233c776501bdc73fb7d67cbfeb886ced2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-23 10:04:46 +00:00
hjk
89aa5c984f ProjectExplorer: Make custom build step id accessible
Change-Id: Ia1877c4b14fbdc91e6cc1e24b0ee0182f548c5fd
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-23 10:04:40 +00:00
Eike Ziller
0be6d0d972 Add native name to language setting options
If someone wants to switch to a language because it is their native one,
it makes most sense to show the option in their language.
Nevertheless the english name is useful too, so keep it.

Change-Id: I3afb81202e6799525c1c9c503ac3a97c608c3c8a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-23 09:20:15 +00:00
Marcus Tillmanns
73494e3235 CompilerExplorer: Remove unused member
Change-Id: I7cbab5db00d79c52f5fe4b78f9e6b5f1f382ba5a
Reviewed-by: hjk <hjk@qt.io>
2024-07-23 09:04:23 +00:00
Christian Stenger
370c2d7787 Debugger: Fix snapshot handling
Avoid sharing the workers with the engine creating the
snapshot to avoid closing both when stopping the debugger
engine for the snapshot.
Correctly detach at finish to avoid having a runcontrol
appearing still running.

Fixes: QTCREATORBUG-31220
Change-Id: Iccb54b0fc2d7f5bf54b42a116e56c1a840b1f46e
Reviewed-by: hjk <hjk@qt.io>
2024-07-23 09:03:40 +00:00
Eike Ziller
42536411ef Improve debugging of context changes
Add some more information to the core logging category.

Change-Id: Ie2b4a473cfb4b5f721860457282ee668d828cefa
Reviewed-by: hjk <hjk@qt.io>
2024-07-23 08:20:18 +00:00
hjk
42e327f960 CompilerExplorer: Move to new editor factory setup scheme
Also clean up #includes a bit.

Change-Id: Ia8793e1eb549209df31cdfbd6d9290f5d42360d3
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-23 07:55:33 +00:00
Alessandro Portale
7b4b1e2a72 Debugger: Fix debugger type detection of Android NDK LLDBs
NDKs usually ship the python libraries required by the NDKs LLDB.
However, these libraries reside in a different location.
DebuggerItem::addAndroidLldbPythonEnv takes care of finding that
location.

This change re-adds the recently remopved
DebuggerItem::addAndroidLldbPythonEnv call, so that LLDB can again be
detected.

Amends: b56a447a83

Fixes: QTCREATORBUG-31279
Change-Id: I78cb7dfd1abd96f7bc52e4adff9dddd054f8ac0b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-23 07:54:04 +00:00
Lukasz Papierkowski
1f75b35bb2 Lua: Fix language client
Change-Id: If87adc59e997626ad4ca77a75802f7c068cf26e5
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <mua@spyro-soft.com>
2024-07-23 06:18:46 +00:00
Alessandro Portale
931f55200b ExtensionManager: Keep "Load on Start" checkbox up to date
If a plugin was selected in the ExtensionManager, and meanwhile, the
"load" status of that plugin was changed via the plugin dialog, the
change was not reflected in the ExtensionManager.

This change connects the "Load on Start" checkbox in the
ExtensionManager with the PluginManager's "changed" signal to keep the
state in sync.

Fixes: QTCREATORBUG-31177
Change-Id: I6946e23e8491e9c896026b55315acf76bb50cb92
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-22 19:55:45 +00:00