Commit Graph

88532 Commits

Author SHA1 Message Date
Eike Ziller
181d18e925 Fix another plugin json
Amends 6cd7aed8eb

Change-Id: I73667ca94aa746ef9e91984c2257efa842387adb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-03 13:25:45 +00:00
David Schulz
ff12f2f680 ProjectExplorer: avoid scanning file contents to detect the node type
Change-Id: I735464bed8d546475036e0d5ea61dc7cbbe78975
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-03 13:19:45 +00:00
Eike Ziller
5941c68dbd Find: Save settings in session
Usually the directories and search terms relate to the project(s) worked
on, so save them in the session.

Fixes: QTCREATORBUG-793
Change-Id: Ia00597a91fa3a902d6b8b4f2d8cb93634cdc333c
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-03 13:12:59 +00:00
Eike Ziller
f7c7cd0ae9 Find: Avoid saving default values for advanced search
Change-Id: I69454675c15a9eb92d0665ea6f88f0969a532eb8
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-03 12:03:54 +00:00
Eike Ziller
f870e7ffdf FindFilter: Move settings saving to Store
This makes it possible to save it for the session instead/in addition.

Task-number: QTCREATORBUG-793
Change-Id: I95bc20f4912a97863cb88849e32699a689ba6f3f
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-03 12:03:44 +00:00
Christian Stenger
c3a1b41fb3 Cppcheck: Fix handling of default executable
On Unix we set the default just to cppcheck and mark it even as
valid if it can be found in PATH.
But when running we silently fail as we expect a full path before
launching the executable.
Use the effective binary instead.

Change-Id: I03393b1d227c595da5142fce6b8bea5210a15747
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-06-03 12:03:40 +00:00
Christian Stenger
a6fabc48a3 Utils: Add effective binary getter to FilePathAspect
It is quite common to provide a single command as default value
for commands to be executed.
In several cases we fail to handle this correctly when trying
to validate or using the executable although it is validated
correctly inside the underlying path chooser.
This patch provides a method to explicitly get the effective
binary, means either the configured path or if it just had been
a single command it retrieves the full path information by
looking up the command in PATH.
This functionality is limited to non-device file paths which
are expected to be an (optionally existing) command.

Change-Id: I17db69f546f5fb9fec8809db91232f212d21e9a6
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-03 12:03:29 +00:00
Eike Ziller
3d828123be Merge remote-tracking branch 'origin/13.0' into 14.0
Conflicts:
	tests/auto/debugger/tst_dumpers.cpp

Change-Id: I71bfee426a3e25ab7c7cd276ffe1e7d8fe550ffe
2024-06-03 12:23:06 +02:00
Jarek Kobus
100e106e70 MessageManager: Transform MessageManager class into namespace
Rename internal static m_messageOutputWindow into s_messageOutputWindow.
Make is a std::unique_ptr.

Change-Id: I27e9abf3dfa514d21f85d811e3647f65c26ddf31
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-03 09:52:28 +00:00
Jarek Kobus
8b5b914846 LocatorMatcher: Ensure the task list isn't empty
Change-Id: I4a8dac16e7f68df409bc7838ba0101732864a578
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-03 09:52:17 +00:00
Jarek Kobus
649d1cd6dc LocatorMatcher: Get rid of ResultCollectorTask
Simplify the implementation by creating and running the
ResultsDeduplicator directly on task tree start.

Change-Id: I08a0d2b924f92382c31771d4bbd878cc5506501e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-03 09:52:09 +00:00
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
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
David Schulz
a1727a9d6d Debugger: fix compiling dumper tests
Change-Id: Ic06483bfeee376e9cc3e7beb516b9bde9cb5b46d
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 12:16:15 +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
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
David Schulz
1c2fbaa846 Debugger: track variable fetch time in dumper tests for cdb
Change-Id: I85073edc2e3660e2bfaff32f53e4a2f98f03c514
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 09:22:59 +00:00
David Schulz
5c23ab8c2d Cdbbridge: report dumptime of fetchVariables
Change-Id: I866fd5dbf547a4d6ec1ab9806080419735131d19
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 09:22:54 +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 Kandeler
73824ad1f2 ClangFormat: Fix qbs build
Prevent LLVM from smuggling -fno-rtti into the command line.

Change-Id: Idc428c8f7e4808233cdc3bcb25e46613573f59b4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-31 05:28:40 +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