Skip to content

Conversation

OrkunTokdemir
Copy link
Collaborator

@OrkunTokdemir OrkunTokdemir commented Oct 2, 2025

If we install a new version of qmlls without stopping the currently running instance, the old version remains active and cannot be replaced. To fix this, qmlls should always be stopped before installing a new version.

The root cause of VSCODEEXT-244 is that commit 884feba removed waiting for qt-cpp activation and notifying other extensions. This caused qmlls to start immediately when VS Code starts while the popup for updating qmlls is still open.

Before that change, when a new qmlls version was published, a popup was shown to the user and qmlls was not started until the user made a choice.

After the change, qmlls starts immediately, which causes the old version to keep running and block the update.

This commit fixes the issue by always stopping qmlls before installing a new version and restarting it before the user makes a choice.

  • Improve log messages

Fixes: VSCODEEXT-242
Fixes: VSCODEEXT-244

If we install a new version of qmlls without stopping the currently
running instance, the old version remains active and cannot be replaced.
To fix this, qmlls should always be stopped before installing a new
version.

The root cause of [VSCODEEXT-244](https://bugreports.qt.io/browse/VSCODEEXT-244)
is that [commit 884feba](qt-labs@884feba)
removed waiting for `qt-cpp` activation and notifying other extensions.
This caused qmlls to start immediately when VS Code starts while the
popup for updating qmlls is still open.

Before that change, when a new qmlls version was published, a popup was
shown to the user and qmlls was not started until the user made a choice.

After the change, qmlls starts immediately, which causes the old version
to keep running and block the update.

This commit fixes the issue by always stopping qmlls before installing
a new version and restarting it before the user makes a choice.

* Improve log messages

Fixes: [VSCODEEXT-242](https://bugreports.qt.io/browse/VSCODEEXT-242)
Fixes: [VSCODEEXT-244](https://bugreports.qt.io/browse/VSCODEEXT-244)
@OrkunTokdemir OrkunTokdemir force-pushed the orkun_qmlls_01_10_2025 branch from 28ff560 to 2a3e342 Compare October 2, 2025 13:24
@OrkunTokdemir OrkunTokdemir merged commit 8084401 into qt-labs:dev Oct 6, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants