Commit Graph

89052 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Andre Hartmann
25bf06968a Git: Add full blame and showing file from Instant Blame
Add actions to get the full file blame at the current lines
revsion respective its parent revision and to show the whole
file at the lines revision.

Change-Id: I2c6a1e98967cd40d658afe6bfedf0a0d9e988186
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-07-22 18:36:38 +00:00
hjk
a9ee4ed5e8 Nim: Hide NimBuildSystem definition in .cpp
Change-Id: Ib6fe898ccb0c58725c336819e4a02a441a304c3a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 13:27:32 +00:00
hjk
750e9c3b6b Nim: Standardize Project classes setup
Change-Id: If95e98e406c1a9bacd75ccf3b58416185e6152a2
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 12:07:44 +00:00
hjk
0982613a73 Meson: Simplify Command structure
Also, change from .toString() to .path() which is the right thing
to uses in this context.

Change-Id: Ic1fe001267a729e9f68a313bea476eb17b718ba3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 12:07:15 +00:00
hjk
3197ef3ea6 Meson: Merge the tool wrapper files
Change-Id: I055006e29ee8c2067275e64043c7a7ffcc460390
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 12:00:40 +00:00
hjk
d09063de87 Meson: Hide the tool aspect implementation
Change-Id: Ib8cf56385d7e369a2c185d6cbd62613b4b28bc79
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 10:34:06 +00:00
hjk
95cf4a46ff ProjectExplorer: Remove left over assert
Amends 07df45cdeb.

Change-Id: Ic4520020cd57eac72631efee05ca9b55e62e34e6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-22 09:42:22 +00:00
hjk
00d26f4e8e Meson: Rename ToolKitAspectWidget -> MesonToolKitAspectImpl
Following the (changed) global naming scheme.

Change-Id: If98d644b52013af4f973540cd56d1186d3656e52
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 08:36:37 +00:00
Marcus Tillmanns
231de93b26 Core: Add Open next/previous document actions
Fixes: QTCREATORBUG-1208
Change-Id: I27c84e2c4fb64751b0aa92042518e8351eed0034
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-22 06:51:33 +00:00
Jarek Kobus
de7f0e3a2a ModelIndexer: Dismantle the fake thread
Since no object was moved to the started IndexerThread thread,
all signals scheduled to this object were dispatched
in main thread. So, the thread was started, but no code
was ever executed in there.

Remove the IndexerThread class and do some cleanup by the way.

Change-Id: I9ae185b8e0c38557e5b0ba3dd87f3c70141227d3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-22 06:32:53 +00:00
Jarek Kobus
dcaa3afd6d Various Plugins: Replace setPaused() with setSuspended()
Fix warnings about deprecated QFutureWatcherBase::setPaused().

Change-Id: I7c4637bcaf141bbda46e34da48306a25c68f039f
Reviewed-by: hjk <hjk@qt.io>
2024-07-22 06:09:07 +00:00
Marcus Tillmanns
2145023c8c Fix compile error
Change-Id: Ibd4593381df017c80129ac9d56a5031e46bd908f
Reviewed-by: hjk <hjk@qt.io>
2024-07-22 05:48:46 +00:00
Jarek Kobus
2a5c2765c4 ProjectExplorer: Introduce JsonWizardGeneratorTypedFactory
Limit code repetition by introducing convenient class template.

Change-Id: I90b45a305c5a6f28bf75a602c14ff055928cda48
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-22 05:37:40 +00:00
Christian Kandeler
9d0c144892 ProjectExplorer: Let toolchains be (de)registered in bulk
When some code adds or removes a bunch of toolchains at once, that
should be made explicit and also be reflected by the respective signal
emissions.
Fix some leaks and typos along the way.

Change-Id: I4a1f12a2378316c5faf70e85a88adc467f076caf
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 14:44:47 +00:00
Christian Kandeler
eb6c95b50d ProjectExplorer: Fix restoring toolchains
Amends ec5e055a90.

Fixes: QTCREATORBUG-31263
Change-Id: Ic86149d9916cdef6991fed4b9972f4d44dfe8b7c
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 14:43:48 +00:00
hjk
8830a38c7d ClangTools: Handle a Qt deprecation warning
Q_WEAK_OVERLOAD
    QT_DEPRECATED_VERSION_X_6_4("Use the 'qsizetype *suffixIndex' overload.")
    [[nodiscard]] static QVersionNumber fromString(QAnyStringView string, int *suffixIndex)

We are now well-prepared to handle Qt version strings with more than
two billion characters before the suffix.

Change-Id: I2aed2c3b8650ff6fba68a174b13d826dc9ab446e
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:42:23 +00:00
hjk
e9e793fb6a Autotools: Hide AutotoolsBuildSystem definition in .cpp
Change-Id: I7ef251452c522593da955a64024068682f7fdfb1
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:41:57 +00:00
hjk
e7dcbb6b44 CompilationDatabaseProject: Simplify a bit
Change-Id: I83b6d2e77a4a5585af3c816aba1a7710d8d24ad6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:38:20 +00:00
Marcus Tillmanns
b0262115dd LuaLS: Add sendMessageForDocument
The original "sendMessage" function sends a message to each client.
To send a message to a specific Language client the sendMessageForDocument
and sendMessageForDocumentWithId functions are added.

As a fix the way that settings are copied into the Lua wrapper and the id used
to find clients was changed.

Change-Id: I577ee1f9da983c80e4ef00b8e86ccb2bfe369314
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 14:34:54 +00:00
hjk
68d00db242 Utils: Fix some Aspect::on*Changed names
Change-Id: Ic23cc6f5fe9cee6b7d54ea73fc2a35f6b3843269
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-19 14:19:29 +00:00
hjk
f2505ee90a CompilationDataBase: Hide build system definition in .cpp
Change-Id: I49fe7eae6bc323c4d618a463d701021591f4d15d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:08:51 +00:00
Eike Ziller
84cc7208de iOS: Improve error message when installation on Simulator fails
In case of error, post the output of the simctl command in compile
output and issues pane.

Fixes: QTCREATORBUG-25833
Change-Id: I62a0f7b10b5188a7c8b4e1db543b66d0661d4e6a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-19 14:05:12 +00:00
hjk
c895f67b6a Vcpkg: streamline vcpkgmanifesteditor.cpp a bit
Change-Id: Iabb1056f789b1e30f95d469ea18ccfb04e978b46
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 13:51:09 +00:00
Marcus Tillmanns
afa121778b Lua: Hide REPL by default
Change-Id: Ieeac4bd49cd39dc16cf9637b1a487faf024bf44a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-19 13:44:09 +00:00