Commit Graph

72811 Commits

Author SHA1 Message Date
Marcus Tillmanns
3e7f6237b0 LuaLSP: Use cached release url
Change-Id: If099374736912361f898c956e571fb52dbd1fa06
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-03 09:26:41 +00:00
Marcus Tillmanns
a273990819 Lua: Fix LSP Plugins
Change-Id: I8d79d6c56ef4f0e54866a84f0e4535c7f507e963
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-03 09:26:30 +00:00
Marcus Tillmanns
7ad1e20a48 Lua: Add support for gzip files
Change-Id: Id342364ffb71b8dd2e60a4332fd1d88a4951e08a
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-03 09:15:09 +00:00
Marcus Tillmanns
1058f12a93 Install: Use QMessageBox as fallback
Use a QMessageBox if the InfoBar would be hidden.

Change-Id: I29f10a3af6123dcf7811db68b967259f990c5a66
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-03 09:15:00 +00:00
Christian Stenger
7944ae0600 Mercurial: Fix history key
Change-Id: I3e0606639402808c5ef9fe6e4d6af83118b041bb
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-06-03 08:53:24 +00:00
Marcus Tillmanns
57826bcab6 Core: Add IDE:Executable variable
Change-Id: Ic191562bbfea0b3f0998c0e71c11d7316644937c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-03 07:41:45 +00:00
Marcus Tillmanns
cf1aa1d1bb Lua: Ask user before allowing to fetch
Change-Id: I58318598015a24689de19ae00bce65f004091e6b
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-03 06:33:03 +00:00
Marcus Tillmanns
e078d05f51 Utils: Fix connection error
When add / remove buttons are disabled, the connection fails.

Change-Id: I6c9a3233f156b88e516481a6fc8e072ea5e1c13b
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-03 06:32:54 +00:00
David Schulz
d8a582d813 Lua: Add function that returns the output of a process
Change-Id: I6863926a4da90adc89d96d47da1542c886b44040
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-03 05:06:41 +00:00
Cristian Adam
2ce6255a7d CMakePM: Do not check the existence of dlls for PATH handling
In order to fix QTCREATORBUG-29662 the check of existence of an dll was
a prerequisite to add the path to the PATH environment variable.

As it turns out this is not an easy thing to do, since the ".lib" file
name can be different than the ".dll" file name.

Also for MinGW you can have ".dll.a" or ".a" as library filename
extensions. You can also have a "lib" as prefix for the library
filename.

Amends 0d8a542b4f
Amends 8713919f31
Amends ac97ab1abf

Task-number: QTCREATORBUG-29662
Fixes: QTCREATORBUG-30827
Fixes: QTCREATORBUG-30932
Change-Id: I90afad825d43fd4f801c2aac20ed98f013861152
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-31 16:31:21 +00:00
Mahmoud Badri
1ff2c7ecb3 QmlDesigner: Handle dynamic properties when adding a material
... to Content Library. Also remove one unused method.

Fixes: QDS-12898
Change-Id: I8bc1d98bd5bc9d65e8c73d425025d7e15008b4a4
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-31 14:16:38 +00:00
Mahmoud Badri
109f58b742 QmlDesigner: Improve duplicate material naming
Instead of mat, mat copy, mat copy copy, mat copy copy copy, etc
It becomes: mat, mat copy, mat copy1, mat copy2, etc

Change-Id: If336bb21ed8384d17e58df6c31480b5484f4e423
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-31 13:43:47 +00:00
Christian Kandeler
36f2a21f2d ProjectExplorer: Support column numbers in file path linkification
... for task details.
As a result, clicking on a linkified file path inside a task in the issues
pane will now open the editor at the column specified in the compiler
output, if there is one. We used to consider only the line.

Change-Id: Idccba33b5b33029abfa8f29c7888af6c7f2e1622
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 13:04:27 +00:00
hjk
45702941f8 Fix some deprecation warnings from QCryptographicHash
QT_DEPRECATED_VERSION_X_6_4("Use the QByteArrayView overload instead")
    void addData(const char *data, qsizetype length);

Change-Id: I144765e6993a9942b372943ccbf5c783fcf9da3d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-31 12:35:26 +00:00
hjk
58ac9aea68 LayoutBuilder: Add a few Label related functions
... and use them in the CoPilot settings

Change-Id: Id861cf34274d2afe798d4735072d02c2c8f724e3
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-31 12:22:32 +00:00
Marcus Tillmanns
04abc375f5 Lua: Improve memory management
Previously the PluginSpec would create a keep around a single lua vm
that was then shared with the actual plugin instance. This made it
unclear when the VM was freed.

Now we instead cleanup the lua vm used to fetch the plugin infos
immediately and instead create a fresh vm for the actual plugin
instance that can then follow the normal Plugin lifecylce.

Change-Id: I81bb9ecf57706c2ba1b0d8db83ab26b3b8e944f2
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-31 12:21:03 +00:00
Alessandro Portale
0ccfccd5c5 ExtensionManager: Some cleanups
Stuff you notice 10 Minutes after pushing the code you worked on for
days.

Change-Id: I24614b8129f80c8986ec11d5146c5631dae5d515
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-05-31 10:26:44 +00:00
Christian Kandeler
0fffe1058d CppEditor: Make more use of CppQuickFixInterface::currentFile()
As in 5cc44b8cab, this time with the non-
trivial cases.

Change-Id: I48c3f27c83903457473afa6175c8522d2ff23f96
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-31 10:17:43 +00:00
Knud Dollereder
bb17d6617f QmlProjectManager: Check the uri when generating cmake files
and use the Qt and QtQuick version specified in the qmlproject file.

Fixes: QDS-12799
Fixes: QDS-12798
Change-Id: I1b7cec3f3a1cc4c9e2c70a60a68e2acce0ce4b7e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-31 09:55:34 +00:00
Christian Kandeler
0e301004b8 ClangCodeModel: Allow more than one in-flight "follow symbol"
The original code was written with only the interactive case in mind, but
nowadays we also start "follow symbol" operations internally as part of
e.g. quickfixes.

Change-Id: I95928297fab16f9b0469bfd66ad687447b902fd9
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-31 09:48:41 +00:00
Marcus Tillmanns
b0354eaf16 Utils: Add gzip support to unarchiver
Change-Id: I223d97169cd9e1850d221370d8dd16b770918e20
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 08:44:53 +00:00
Marcus Tillmanns
4bbbf29e7d Lua: Remove wizard meta files
We removed the wizard stuff from lua, but I forgot to remove the documentation

Change-Id: I9d96d1d38ed4090c51361ee1e37fedb5a7358870
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 08:44:23 +00:00
Christian Stenger
b87e3a53db Fix json templates
Amends 6cd7aed8eb.

Change-Id: Ia8369c69530854488007ef28c191fdfbca4c082c
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 08:22:46 +00:00
The Qt Project
294af2ec29 Merge "Merge remote-tracking branch 'origin/13.0'" 2024-05-31 07:42:04 +00:00
Christian Kandeler
e1e4c58e10 Fix qbs build
Amends 17f497c719.

Change-Id: Ia7d6c22177f78fe13d5c0a57a2ac85b52ff1b132
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-31 07:10:23 +00:00
Leena Miettinen
6cd7aed8eb Add long descriptions to some plugins
Edited the short descriptions to answer the question
"What can I do with this extension" to help users decide
whether they need it.

In long descriptions, tell users what else they need to
be able to use the plugin.

Change-Id: Iefce7505b61fc77cf38cc915f1f7dbd25c9cb570
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-31 06:42:53 +00:00
Christian Stenger
2ebc4525f5 ExtensionManager: Fix qbs build
Amends 1a1d938170.

Change-Id: Ie978802b41502285e75b48827cfc2dcf819b1fcd
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-31 06:41:24 +00:00
Marcus Tillmanns
17f497c719 LuaLS: Rename LuaLSP to LuaLS
Its a "(L)anguage(S)erver", not a (P)rotocol

Change-Id: I2e0637c21bfa8b55b587fede6d7597ae917ccdae
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 06:38:00 +00:00
Christian Kandeler
f3110327ba ProjectExplorer: Handle files with no line number in GCC output parser
This necessitated changes in the LdParser, as it turned out that a lot of
linker messages were not actually caught there, but by accident in the
GccParser (mostly by a now-superfluous regex).
Note that the LdParser is still pretty awful; we just did the minimum
that was necessary to keep the tests passing.

Fixes: QTCREATORBUG-30806
Change-Id: I97ef08ca2bb8990841a95621f07368e879734856
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 06:31:15 +00:00
Eike Ziller
d29eebf9de Merge remote-tracking branch 'origin/13.0'
Change-Id: I51f8df79cf2b0f853e2951ed35b2a80369078411
2024-05-31 08:25:10 +02:00
Marcus Tillmanns
1c6ea674d7 Lua: Add binding for FilePathAspect::setValue
Change-Id: Ia0c40f35c1504b72f56cb2d2b6dcdc721b1c9d7b
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 06:16:25 +00:00
hjk
42a66746e1 Lua: Rename some 'layout' bits to 'gui'
Change-Id: I1476cfe922c3d95c3c4309531bb4e063b18273e5
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-31 06:15:17 +00:00
Christian Stenger
acb5a0a362 Axivion: Add possibility to add and remove configurations
Change-Id: I6748eef02e68de7714e94292826eb710b625efd3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-31 05:57:23 +00:00
Christian Stenger
d8e07f52ee Axivion: Reflect multi server on project settings
Change-Id: I289204fb67ae629f9fddf3c8fb0c8e4d29154e1b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-31 05:57:15 +00:00
Christian Stenger
5a906c3f6c Axivion: Change displaying server inside settings
Use a combo box instead former label layout to be able
to choose a server from a list of servers later on.

Change-Id: Iaca33e18fd32dd514144a44f23552152927f5bd4
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-31 05:57:06 +00:00
Christian Stenger
de968e7ffe Cppcheck: Fix commandline usage
The parameter added as first additional parameter is not a
file path, but a string holding additional arguments.
Amends 26cfa86969.

Task-number: QTCREATORBUG-28586
Change-Id: I6808e491f59f7eda8a63c5c990a7cc9c084135b9
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-31 05:35:29 +00:00
Christian Stenger
f1277f6cf2 Lua: Add lua plugins to qbs build
Change-Id: I4c8428e64c5e322582742e686bf921ebea7df842
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-31 04:32:09 +00:00
Alessandro Portale
1a1d938170 ExtensionManager: Introduce extensions service response parser and model
This adds a parser for the JSON response of the extension rest API. The
data, combined with the PluginSpecs of local plugins, serve as data
model for the extension mode view.

A couple of "packs" are provided as test data.

Change-Id: I5ce961a9de9bf54ca745e5e5a5e584b1698e6ac6
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-05-30 16:32:48 +00:00
Christian Stenger
fb2a1ecd37 Android: Fix build before Qt6.5
Change-Id: Ie2b674edcbd12a9c10ca1875d96da50e02914fe8
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2024-05-30 13:23:41 +00:00
Christian Stenger
fcadc9a2b2 Wizards: Provide mechanism to skip pages
Our wizard infrastructure makes it hard to dynamically remove
or add wizard pages on the fly while using the wizard.
So, instead of removing pages and re-adding them on need
just provide a way to skip pages.
Skipping pages is provided with this patch limited to
wizards which are known to be sub projects.
For now this is just a preparation as no wizard actively
sets the property for being a sub project or makes use
of this mechanism.

Change-Id: I3efd079ccb5be2203d2b17b3765d9f178998d5f4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-30 13:23:10 +00:00
Eike Ziller
81aed65406 Meson: Fix crash after adding first meson/ninja tools
- start Qt Creator without any meson or ninja tools registered
  (also not auto-detected)
- add meson and ninja in the settings and apply
- open kit settings and select a kit

This would crash, because the constructor of the meson
ToolKitAspectWidget saw that there was no tool registered and triggered
setting the default tool. Doing that in the widget constructor results
in an endless loop because changing the tool triggers an update of the
kit which triggers an update of the ToolKitAspectWidget which doesn't
exist yet (because the constructor didn't finish yet), so it would be
created again which results in the same situation and endless recursion.

Do not change the selected value in the widget constructor. This is the
same logic as for the CMakeKitAspect(Impl).

Fixes: QTCREATORBUG-30698
Change-Id: I35d56018d8f02a2716dfac763fa86d4426393172
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-30 13:14:34 +00:00
Tim Jenssen
b322254e43 Qml2Puppet: use better standalone fix
without extra dependency

Change-Id: I0bbc91c94feb84d0a0bbef8009b411ec20093079
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-05-30 12:56:17 +00:00
Miikka Heikkinen
b3a5d38a68 QmlDesigner: Add support for previewing multiple 3D imports
Imported items are shown on a list in import dialog and a preview is
generated for each. Options are also specified per-import rather
than applying to all imports.

Fixes: QDS-10806
Change-Id: I6be09880afc0f8886585c4e768da1197b46bc71a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-30 12:21:30 +00:00
David Schulz
f00394b371 TextEditor: avoid setting a null cursor on select all
Change-Id: If7ccdf1e1d4846b279305e30d3a990754f942128
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-30 11:43:43 +00:00
Christian Kandeler
9bdf8329a0 CppEditor: Consider unexpanded token ranges when refactoring
When moving or deleting pieces of code, we are normally interested in
the actual content of the file in the respective locations, not in what
any macros present there will expand to.
This supersedes commit 76ae5780c4.

Fixes: QTCREATORBUG-10279
Change-Id: I0fb547b23244cd5875e80c019a3595f3f9c33d52
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-30 11:04:18 +00:00
Christian Kandeler
0947cc1999 CppEditor: Blacklist another gcc-only option for clang tools
As per https://lists.qt-project.org/pipermail/qt-creator/2024-May/
009262.html.

Change-Id: Id8993f874c7bfc8d1cbdf03045a0f0f953d86ca4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-30 10:41:10 +00:00
Christian Stenger
876f131b84 Wizards: Allow showing and hiding for VCS elements
Preparation for being able to hide the VCS UI elements for
sub projects as they derive anything related from the parent
project.

Change-Id: Id0cc951f313335d022b3370b24f10abfd6f7532a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-30 10:35:28 +00:00
Alessandro Portale
e9e37a7be7 EffectComposer: Fix copyright year in plugin metadata
Change-Id: I52742b05170a003a9dcc08eb1522a9e65825c96e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-30 10:12:26 +00:00
Assam Boudjelthia
b82da570cd Android: support namespace in build.gradle
The use of "package" in AndroidManifest.xml has been deprecated
since AGP 7.4, and has been moved to build.gradle file instead,
set as "namespace". Qt Creator has been relying on the package
name being present in the manifest and projects not having that
will fail to deploy. This change adds support of that to Creator.

Task-number: QTBUG-106907
Change-Id: I04850a11c5840d5167f7a3d09ae76cd51dbe72ca
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-30 09:01:54 +00:00
Marcus Tillmanns
fbb2f70747 Utils: Implement StringListAspect::addToLayout
Change-Id: I48806e397a8fa51c9b31860645a16c242e789a3d
Reviewed-by: hjk <hjk@qt.io>
2024-05-30 08:51:06 +00:00