Commit Graph

77129 Commits

Author SHA1 Message Date
Christian Kandeler
48755cf7fd Revert "ClangCodeModel: Rename via LSP facilities"
We cannot use clangd's rename facilities yet, as there is a
hardcoded limit of affected files.
This mostly reverts commit 7dc2c6b3b3.

Change-Id: Ie441796569b533948cc028c867175d6f9d4b9d54
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-12 08:57:47 +00:00
Marcus Tillmanns
e18bd4b0f8 FSEngine: Invalidate cache after creating a file
Since QFile::open can change the "exists" info of a file,
we have to invalidate the cache entry for the file.
Otherwise code like:
  QFile f(...)
  f.open(QIODevice::WriteOnly);
  f.exists();
might fail the exists check even though the file was created

Change-Id: If80eaf4a5b131cfe7ea4e506292870741c46fff7
Reviewed-by: hjk <hjk@qt.io>
2022-10-12 08:55:54 +00:00
The Qt Project
634ac23af7 Merge "Merge remote-tracking branch 'origin/9.0'" 2022-10-12 08:21:58 +00:00
Jarek Kobus
caa013b8e8 MesonProcess: Reuse ProcessProgress
Change-Id: I59c9c7a238731d50e1a6a4a60ee2aef6f2728d74
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-12 08:13:56 +00:00
Jarek Kobus
8e4cdf2a69 VcsCommand: Some cleanup
Remove unused include. Remove outdated comments.

Change-Id: Idcdb5f3ad06b0d40c03c3cd601d8a4b926474c3c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-12 08:11:01 +00:00
Jarek Kobus
eb8b8eea41 VcsCommand: Remove signals for communication with VcsOutputWindow
Call relevant methods directly, as we always run in main thread.

Change-Id: I226c537ff986d6038d36ca4abcfee7584f5b57f4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-12 08:10:54 +00:00
Jarek Kobus
f0628c9b7d ProcessResultData: Add a flag for forceful close
Whenever user calls terminate(), kill() or stop() this
sets the m_canceledByUser flag to true inside result().

Change-Id: Ic99642762868fd0a28193caa8ea05e165cb2a277
Reviewed-by: hjk <hjk@qt.io>
2022-10-12 08:10:27 +00:00
Jarek Kobus
9cb9bb0635 VcsCommand: Reuse ProcessProgress
Change-Id: I02116d1c7ff05471f7be61ecc33a7b54c57a78cf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-12 07:49:23 +00:00
Eike Ziller
0c1ca4242f Merge remote-tracking branch 'origin/9.0'
Change-Id: I11b06a0b2a4174352a6d343ed0373683ce497591
2022-10-12 09:46:33 +02:00
Jarek Kobus
07ca7f7b99 Introduce ProcessProgress
This is extracted separate object out of VcsCommand.
It's responsible for showing progress of the running
process. It's able to cancel the running process
automatically after pressing a small 'x' indicator on
progress panel. In this case the QtcProcess::stop()
method is being called.

Change-Id: I9fa94fd047638f76909356ae4023852349be3a06
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-12 07:44:41 +00:00
Sivert Krøvel
907c36217d McuSupport: Make plugin UI translatable
After refactoring, the package labels are sourced at run-time from json
kit files. Added a QMap containing all the known labels used to map
labels to their translation, McuPackage::packageLabelTranslations.

Task-number: QTCREATORBUG-27177
Change-Id: Ibd530a0f9c5dbbdf8c7d5eafa53785fb713c9d0a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Dawid Śliwa <dawid.sliwa@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-10-12 07:23:53 +00:00
Leena Miettinen
51e31713ff Doc: Describe the Hide/Show Right Sidebar button in build output
Task-number: QTCREATORBUG-27876
Change-Id: Ie0804bccb034d138afd1cca5facbc1bd3cae8cb3
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-12 07:15:12 +00:00
Leena Miettinen
5741d8ec05 Doc: Describe Follow Symbol Under Cursor to Type in code editor
Task-number: QTCREATORBUG-27876
Change-Id: I17250cdde3ad4c722dbccbb486f27abda58a9ed1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-12 07:14:49 +00:00
Jarek Kobus
894f1b81c8 UpdateInfoPlugin: Remove unneeded scopes
Change-Id: Iccb376a4b0230c3b988415c126aa0bca73b89b09
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-12 07:06:20 +00:00
Jarek Kobus
c97cb8b50c MesonProcess: Fix process restart
It looks like MesonProjectParser::m_process may be restarted
directly from process' finished() handler - inside
MesonProjectParser::processFinished(). In this case
the process is directly deleted from its signal handler.
Fix it by releasing the old process and deleting it later.

Don't pass process reference to the other thread when
calling runAsync(). Pass the copy of standard output instead.

Change-Id: I163a3cc86fbdbe8a3d9a19c479f96017f5803f76
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-12 06:56:57 +00:00
Jarek Kobus
80938eae9a UpdateInfoPlugin: Use FilePath for maintenance tool
Change-Id: I49d2ff74e59faf289cd89d3473ef577e40e2d724
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-12 06:54:24 +00:00
Christian Stenger
6c362a259c Squish: Fix condition
Amends 5c4441a760.

Change-Id: I1e4148196c6e904d62fd4ce160db517c9c75d1e9
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-12 06:27:14 +00:00
Christian Stenger
9ae0399722 Utils: Fix build before Qt6.2
FilePath is used from sdktool as well.
Amends ae58d373b0.

Change-Id: Ia4846b7f8a91fa503c5039c44e65ba21e84e9319
Reviewed-by: hjk <hjk@qt.io>
2022-10-12 06:26:15 +00:00
Orgad Shaneh
e141b9cea3 ExecuteFilter: Update window title when done
The command can change the active branch.

Change-Id: I6fd026e29f8e972e694c249b47e106bfdef783a7
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-12 06:15:04 +00:00
Orgad Shaneh
7388003d16 Wizard: Add CMakeLists.txt.user to generated .gitignore
Fixes: QTCREATORBUG-25969
Change-Id: I72c8da5400e41194db6b239c2845fe110c2e3cf7
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-10-11 17:27:03 +00:00
Orgad Shaneh
92d84738cf VcsCommand: Call GlobalFileChangeBlocker functions directly
Since we now always run on the main thread, there is no reason to use
invokeMethod.

Change-Id: Id5fbade283b5d196f0ae7e5102bffee618a20881
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-10-11 15:33:59 +00:00
Orgad Shaneh
8c1cd7539c Git: Fix removing nested files
* Add -- before file list on add/remove.
* Run in the correct directory.

Fixes: QTCREATORBUG-27405
Change-Id: Ie04cd19981dac465cf70dba8b089fd18a4ecdf8b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-10-11 15:32:13 +00:00
Orgad Shaneh
d2160e8b4f Git: Fix adding existing files in nested directories
Amends 48c56416f5.

Fixes: QTCREATORBUG-27644
Change-Id: I4ef58c017e4fcf8fa48905f7e0b649433b3cac0f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-10-11 15:31:54 +00:00
Orgad Shaneh
0793184956 Merge remote-tracking branch 'origin/9.0'
Change-Id: I2e11bfba622c14578f08ca988ad98dab97cb385b
2022-10-11 17:46:50 +03:00
Jarek Kobus
693db6eef6 UnifiedDiffEditor: Fix '+' on added lines
Amends 15fd4a0754

Change-Id: If74b5437be241303de1e157b7980ef10ef6c060c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-11 14:34:25 +00:00
Orgad Shaneh
aa4f5249a5 Utils: Remove unused include
Change-Id: Ifa40f55444d31d74707b247d6bb471114cc9bb0c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-10-11 14:33:51 +00:00
Jarek Kobus
c50891611a FilePath: Fix absoluteFilePath to behave like absolutePath
Change-Id: Ibb2cba32c40ec9febab5f20c78156481525c8904
Reviewed-by: hjk <hjk@qt.io>
2022-10-11 14:33:35 +00:00
Orgad Shaneh
82b2b2cae9 VCS: Fix misuses of parentDir().absolutePath()
absolutePath() *is* the parent directory.

Change-Id: I59f2c4ae65b265270d432f381258b95c65e53581
Reviewed-by: hjk <hjk@qt.io>
2022-10-11 13:49:50 +00:00
Christian Stenger
5f4612dd07 Squish: Fix handling of object map
Fix resolving the path to the object map and if no
object map exists yet create it.
As on it fix a typo inside the writing of the file.

Change-Id: I832a2f71bbf5c5d4947e3edba8f79a00a3b6a536
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-11 13:10:01 +00:00
Christian Stenger
5c4441a760 Squish: Move some helper functions
Allow to reuse them.

Change-Id: Ia13f7f6c7a40066fd7ae46389adc7c9228161a4a
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-10-11 13:09:56 +00:00
Marcus Tillmanns
d74c5301ff Linuxdevice: Add FilePathInfo functions
::filePathInfo and iterateDirectory(..., IterateDirWithInfoCallback, ...)
allow for faster info retrieval by the fsengine, making the listing
of large directories like /bin a lot faster.

Change-Id: I2a21e019e05f5bb08459483747ba2be4530929f4
Reviewed-by: hjk <hjk@qt.io>
2022-10-11 13:09:26 +00:00
Jarek Kobus
39258f5522 QtcProcess: Get rid of setResult()
This isn't meant to be called publicly.

Change-Id: I1a5e5325ac268e1bbfcc34c529cfc3c7e628243c
Reviewed-by: hjk <hjk@qt.io>
2022-10-11 12:34:48 +00:00
Marcus Tillmanns
bcadbe666b Docker: Fix mount arguments
Previously when trying to mount paths that contained spaces or colons
docker create would fail as the -v/--volume syntax does not support
these.

Switching to "--mount" and using the "type=bind" syntax allows to
escape the necessary characters.

Change-Id: If969173505dbf1b36a67dc8b398c58b78941519a
Reviewed-by: hjk <hjk@qt.io>
2022-10-11 12:24:29 +00:00
Leena Miettinen
4b42f05439 Doc: Update Help mode screenshots to show help in dark mode
Use \image alt text more consistently.

Task-number: QTCREATORBUG-27876
Change-Id: Icc655eb5d05cfdcb16f9eedc836de710ee1ad59d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 11:58:36 +00:00
Christian Stenger
f1fe30ee16 Help: Restore some more object names
Change-Id: I4742d855bc69be3622f823a3d3efe256ad027dc5
Reviewed-by: hjk <hjk@qt.io>
2022-10-11 11:55:49 +00:00
Orgad Shaneh
b81e295f58 Toolchain: Support also concatenated syntax for MSVC included file
For example: /FIC:/Projects/test/config.h

Change-Id: I18dcda6593effa58ece019ce40bca7860cebfc8c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-10-11 11:32:46 +00:00
Cristian Adam
c1667f9bea CMakePM: Allow default build configurations for presets
Restrict the build types only if CMAKE_BUILD_TYPE or
CMAKE_CONFIGURATION_TYPES cache variables are set.

Change-Id: Ib88dcd5d4a0fca86f86e95815edff1116f896324
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-11 11:21:46 +00:00
Cristian Adam
f84bdee045 CMakePM: Allow presets without buildDirectory
CMakePresets v3 relax the requirement of having the buildDirectory
specified.

This way Qt Creator should use its own mechanism of specifying the build
directory.

Change-Id: I6ba69e6a03cdc058e7b8fa540a6fc564356aba63
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-11 11:21:41 +00:00
Leena Miettinen
0e2409b0d6 Doc: Describe image viewer Set as Default option
Task-number: QTCREATORBUG-27876
Change-Id: Ibe2b7f39c23b60df13debab7de21d7e999f51448
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 11:00:30 +00:00
Tasuku Suzuki
52672b5f6c SessionDialog: rename Switch To to Open and reorder buttons
To be consistent with the SessionNameInputDialog that has the button
"... and Open" to switch to a session.
Buttons should be ordered by like a typical file menu
- new
- open(ex- switch to)
- save(rename/clone)
- close(delete)

Change-Id: I875446352100500eaae4b0ecef4faa6442aef539
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 10:53:29 +00:00
Christian Stenger
5bb928c95f Core: Restore some more object names
Change-Id: I318eda7cfabf840e2fde3d11e77b489a99c43f62
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 10:51:22 +00:00
Orgad Shaneh
7c623f99d8 Git: Fix pattern for commit hash matching
* Avoid matching mid-word.
* Avoid matching after "mode ".
* Change to raw string literals.

Fixes: QTCREATORBUG-24768
Fixes: QTCREATORBUG-28268
Change-Id: I68abbf3de7928c60e0fe2d944adedaa6db94b1a4
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2022-10-11 10:00:53 +00:00
Marcus Tillmanns
ae58d373b0 Add FSEngine FilePath Cache
To speed up file dialogs we introduce a 1 minute cache for
the FilePathInfo.

A new version of "IDevice::iterateDirectories" allows implementations to
provide the FilePathInfo directly.

DockerDevice implements fetching the filePathInfo during
iterateDirectories which greatly improves the speed again.

Change-Id: I24ac16adb2478cbf16a22012e72fcb8910dcdac5
Reviewed-by: hjk <hjk@qt.io>
2022-10-11 08:53:02 +00:00
Miikka Heikkinen
007a9a46a5 QmlDesigner: Reset item library drag on model detach
Fixes: QDS-7823
Change-Id: If0b758f79dd4a55356d2cd5aefe65fa3e6e321be
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-10-11 08:40:40 +00:00
Eike Ziller
e5e90ad931 More change log
Change-Id: I0fc654e83ededc5b82e4ca5a8b4805f9e80d946c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
v9.0.0-beta1
2022-10-11 08:21:02 +00:00
Jarek Kobus
ecd9053587 tst_qtcprocess: Remove 30 seconds timeout overload
The default is 60.

Change-Id: I22585a62648376c771f6f3e4165dc4a1bef25892
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 07:34:39 +00:00
Jarek Kobus
f5f3bbcc59 Use more Utils::isMainThread()
Change-Id: Ia3c6f6dca53c5d7487b0813de16f06c52af47aa5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 07:34:12 +00:00
hjk
862a3923f4 Add to changes-9.0.0.md
Change-Id: Iebf7add3fcae2524530abc6ab46b7a243943e168
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 07:31:01 +00:00
Jarek Kobus
df2038421e MesonProcess: Remove unused methods, signals and fields
Change-Id: Ic1a25e3800b6938fc3cea23a02f582f1e73c058f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-11 07:26:05 +00:00
Marcus Tillmanns
b7c1e70738 Fix: QtConcurrent build fix
Change-Id: I17df4132e6c0aaee35d9d92e5dc8651f553a58b7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-10-11 06:31:03 +00:00