SonarQube
  1. SonarQube
  2. SONAR-3125

Add better error message for unknown language

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: Log
    • Labels:
      None
    • Number of attachments :
      0

      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".

        Activity

        Hide
        Freddy Mallet added a comment -

        Manually tested

        Show
        Freddy Mallet added a comment - Manually tested
        Hide
        Fabrice Bellingard added a comment -

        IT added, but not active for the moment (see http://jira.sonarsource.com/browse/ORCH-76)

        Show
        Fabrice Bellingard added a comment - IT added, but not active for the moment (see http://jira.sonarsource.com/browse/ORCH-76 )

          People

          • Assignee:
            Fabrice Bellingard
            Reporter:
            Eric Hartmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: