Uploaded image for project: 'Qt Tools for Android'
  1. Qt Tools for Android
  2. QTTA-356

Getting error "Cannot rename items defined in the "qmlModule" module from a usage in the '' module." when refactoring the code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • QtTAS 4.0
    • QtTAS: General
    • None
    • macOS

    Description

      I've noticed that when separate Android Studio instances open the same project, it causes issues when trying to rename a symbol in QML code. 

      1. I opened the example project in Android Studio A -> tried to rename a symbol, it works fine.
      2. I opened the same project in Android Studio B -> tried to rename a symbol and got the error "Cannot rename items defined in the "qmlModule" module from a usage in the '' module."

       

      Notes:

      • The order doesn't matter; the same happens when I open the project in AS B first. 
      • Closing Android Studio first, and then opening a second instance doesn't help
      • The workaround is to change the QML project, gradle sync, change back the project to the original one

       

      Android Studio A:

      Android Studio Ladybug Feature Drop | 2024.2.2 Patch 1 Build #AI-242.23726.103.2422.13016713, built on February 5, 2025 Runtime version: 21.0.5+-12932927-b750.29 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Toolkit: sun.lwawt.macosx.LWCToolkit macOS 15.4.1 GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation Memory: 4096M Cores: 14 Metal Rendering is ON Registry:   ide.experimental.ui=true   i18n.locale= Non-Bundled Plugins:   com.redhat.devtools.lsp4ij (0.12.0)   org.qtproject.qt.androidstudiotools (4.0)

       

      Android Studio B:

      Android Studio Meerkat | 2024.3.1 Patch 2 Build #AI-243.24978.46.2431.13363775, built on April 16, 2025 Runtime version: 21.0.6+-13355223-b631.42 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Toolkit: sun.lwawt.macosx.LWCToolkit macOS 15.4.1 GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation Memory: 4096M Cores: 14 Metal Rendering is ON Registry:   ide.experimental.ui=true Non-Bundled Plugins:   com.redhat.devtools.lsp4ij (0.12.0)   org.qtproject.qt.androidstudiotools (4.0) 
      
        

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              nikunj Nikunj Arora
              lkos Łukasz Kosiorowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes