Updating the environment cache calls into the virtual function
BuildConfiguration::addToEnvironment (via BC::baseEnvironment()), and
that is not working in the constructor yet.
Move the call to updateCacheAndEmitEnvironmentChanged to
BC::doInitialize.
This fixes the build environment for the first CMake run on a newly
created project. CMakeBuildConfiguration::addToEnvironment adds the PATH
to the Ninja installation from the online installer. If that is missing,
CMake will fail with a missing build tool, if Ninja isn't found anywhere
else.
Amends 65e043961e
Task-number: QTCREATORBUG-27495
Change-Id: I7c952db9029ab78e0aa9ea267444af163f5941ac
Reviewed-by: hjk <hjk@qt.io>
Aliased types like T.Button require a special code path.
Those lookups are only required for the rewriter and are not used
by application code, since we strip the alias qualification.
Change-Id: Ic74c352655e640b063bb01f03a699182af506de7
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
When omitting separator lines take the selection start
position instead of the position of the block where
selection starts.
Amends c98bd449523dc05f8875e96d06cf7c21e18eef0d
Fixes: QTCREATORBUG-27813
Change-Id: I6067a3ef6396d50162d8e253fe4a825d47d326b9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
It returns all properties of the type and the prototype chain in a
sorted order.
Task-nubmer: QDS-7276
Change-Id: I95c16abd16d9d0f1fdf68d3425780a888dc056b7
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Use ShellCommand class name in signal-slot connections.
Change-Id: Id50ee6887708558a2ba0972ece6c420b0be36f72
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Add virtual postRunCommand() method, called
by the end of runCommand().
In this way the rest of the API of VcsCommand remains
an implementation detail.
Change-Id: Ia4149334bd39a1448266d2406e0987bee07a9c58
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
It fixes the following warning:
QObject::connect: Cannot queue arguments of type 'FilePath'
(Make sure 'FilePath' is registered using qRegisterMetaType().)
It looks like with Qt 5 all arguments needs to be specified
with full namespace in order to be used in queued connections.
Note, that warning is misleading as adding qRegisterMetaType()
doesn't fix it in this case.
The full scope isn't needed when building against Qt 6,
so leaving a TODO for Creator 9.0
Change-Id: I43a52385b8d3bb0ef90ce274e11df9fd68e62109
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Remove VcsCommand::m_sshPrompt, as it is always taken
from settings.
Change-Id: I9f46bb5a9de03e907f2098ca72a647c969e55a27
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
When starting a debug session the systemEnvironment() was used
as the basis for the debugger process. If the docker device
did not have the same shell installed as the host, this would
break gdb as the SHELL= env variable might point to a
non-existing shell binary.
Change-Id: I7253ad3c4995eed857279146f1b258febe1ca710
Reviewed-by: hjk <hjk@qt.io>
The desktop run configuration used the wrong selector
when creating the ExecutableAspect. This meant that
the executable would always try to run on the host
instead of in the docker container.
Change-Id: I10861c2115edeeab95d4931ba118afd83cdf1337
Reviewed-by: hjk <hjk@qt.io>
This keeps project management simple. Having multiple projects
open often leads to confusion.
Change-Id: If6344732cf2813ea8ccf6a1a790229d1038ec240
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
The responsibility for creating "global" paths has shifted lately,
and the Qnx debug support forgotten to adapt.
Task-number: QTCREATORBUG-27798
Change-Id: I940502eb64303babbea3bfafe845a02542a0a6d5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tommi Mänttäri <tommi.manttari@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>