Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-30057

Emscripten SDK registration: Provide descriptive error messages on registration failure.

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 13.0.0-beta1
    • All Other Issues
    • None
    • 62f68a2f9 (master)

      In order to use Qt for WebAssembly in Qt Creator, a functioning Emscripten SDK has to be registered under Preferences -> Devices -> WebAssembly

      Setting up an Emscripten SDK required three steps:

      1. Check out/clone emsdk from https://github.com/emscripten-core/emsdk
      2. Installing a binary build emsdk install latest
      3. Activating a binary build emsdk activate latest

      There are a couple of reasons why the Emscripten SDK registration in Qt Creator could fail:

      1. Provided path exists but is not an emsdk checkout
      2. Provided path is an emsdk checkout but no binary build is installed
      3. A binary build is installed but it is not activated
      4. A binary build is activated but Qt Creator cannot execute emsdk tools
        e.g. because a Python interpreter is not found
      5. Qt Creator can execute emsdk tools but fails to parse the output
        e.g. because spaces in paths could change the tool's output

      With any of these failures, the UI in the settings dialog would currently only an empty text field without stating at which stage the registration has failed. It would be helpful for users if an info label could state which of the above points of failure were hit.

        For Gerrit Dashboard: QTCREATORBUG-30057
        # Subject Branch Project Status CR V

            portale Alessandro Portale
            portale Alessandro Portale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes