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

QtCreator build for plugin generates a wrong json and new plugin doesn't load

XMLWordPrintable

    • Linux/X11
    • ca1cee0956a4b987e764982c4b82f9f722915872 (qt-creator/qt-creator/4.10)

      When creating a QtCreator plugin project one file generated is <pluginname>.json.in which has the content

      {{{}}
      {{ "Name" : "MyPlugin",}}
      {{ "Version" : "0.0.1",}}
      {{ "CompatVersion" : "0.0.1",}}
      {{ "Vendor" : "MyCompany",}}
      {{ "Copyright" : "(C) MyCompany",}}
      {{ "License" : "Put your license information here",}}
      {{ "Description" : "Put a short description of your plugin here",}}
      {{ "Url" : "http://www.mycompany.com",}}
      {{ $$dependencyList}}
      }

      But after compiling a warning appears refering to the generated .json file:

      Warning: Plugin Metadata file "MyPlugin.json" does not contain a valid JSON object. Declaration will be ignored

      The only way to get ride off this warning is adding a \" (backslash and quote) after each quote (")  to compile correctly the plugin and even with that the plugin is not show in the Tools Menu of the QtCreator built from source.

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

            kandeler Christian Kandeler
            capday Abraham Santos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes