Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-3125

Add better error message for unknown language

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None

      Description

      Using PHP without the PHP plugin installed give an exception :

      Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: java
      .lang.RuntimeException: Quality profile not found for symfony:symfony, language
      php
              at org.sonar.runner.Runner.delegateExecution(Runner.java:189)
              at org.sonar.runner.Runner.execute(Runner.java:78)
              at org.sonar.runner.Main.main(Main.java:61)
      Caused by: java.lang.RuntimeException: Quality profile not found for symfony:sym
      fony, language php
              at org.sonar.batch.DefaultProfileLoader.load(DefaultProfileLoader.java:4
      4)
              at org.sonar.batch.ProfileProvider.provide(ProfileProvider.java:36)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjecto
      r.java:142)
              at org.picocontainer.injectors.MethodInjector.access$000(MethodInjector.
      java:38)
              at org.picocontainer.injectors.MethodInjector$2.run(MethodInjector.java:
      126)
      

      We may add a better message as "You must install the PHP plugin on the Sonar Server".

        Attachments

          Activity

            People

            Assignee:
            fabemn OLD - Fabrice Bellingard
            Reporter:
            ehartmann OLD - Eric Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: