Unable to detect language java when connected to server

I am trying to use now the SonarLint with Java in Eclipse.

I trigger it manually for one file (SonarLint -> Analyze.)

/appl-HostCare/src/com/siemens/fsp/f20/fc20/hca/HostCareConfig.java…

In Standalone Mode it works OK

However , in Connected Mode

In the SonarLint Console Log I can see that NO language Java is checked.

See below Available languages:

Do you have any idea what is missing?

Why does the SonarLint not check my Java files?

(I noticed that xml and html files are checked but NO *.java files)

Is there someting on the server missing? Java plugin?

Trigger: MANUAL
File 'src/com/siemens/fsp/f20/fc20/hca/HostCareConfig.java' qualified as main by 'JavaProjectConfiguratorExtension'
Clear markers on 0 excluded files
SonarLint processing file /appl-HostCare/src/com/siemens/fsp/f20/fc20/hca/HostCareConfig.java...
File 'src/com/siemens/fsp/f20/fc20/hca/HostCareConfig.java' qualified as main by 'JavaProjectConfiguratorExtension'
...
Connected to server mode 
Starting analysis with configuration:
[
projectKey: FS20i_Java
baseDir: D:\Projects\03_FC-20_branch\fs20-java\sc-appl\HostCare
workDir: D:\Projects\03_FC-20_branch\.metadata\.plugins\org.eclipse.core.resources\.projects\appl-HostCare\org.sonarlint.eclipse.core
extraProperties: {sonar.java.target=1.1, sonar.java.libraries= D:\Projects\03_FC-20_branch\fs20-java\thirdparty\jclFoundation11\jclFoundation11\classes.zip,
...
sonar.language=java, sonar.java.source=1.4, sonar.java.binaries=D:/Projects/03_FC-20_branch/fs20-java/sc-appl/HostCare/bin, sonar.sources=sc-appl,sc-applutil,sc-bacnet,sc-fc20dist,sc-gateways,sc-network,sc-periph,sc-plugins,sc-quickstep,sc-servers,sc-toolsup,sc-viewers,sc-widgets, sonar.java.test.binaries=, sonar.java.test.libraries=D:\Projects\03_FC-20_branch\fs20-java\thirdparty\jclFoundation11\jclFoundation11\classes.zip,...
}
inputFiles: [
file:/D:/Projects/03_FC-20_branch/fs20-java/sc-appl/HostCare/src/com/siemens/fsp/f20/fc20/hca/HostCareConfig.java (UTF-8)
]
]
Available languages: /// Reto: Why is Java missing???
* Kotlin => "kotlin"
* RPG => "rpg"
* PL/I => "pli"
* T-SQL => "tsql"
* Apex => "apex"
* PL/SQL => "plsql"
* Ruby => "ruby"
* Scala => "scala"
* COBOL => "cobol"
* HTML => "web"
* JSP => "jsp"
* XML => "xml"
* ABAP => "abap"
Start analysis
Declared extensions of language Kotlin were converted to kotlin: **/*.kt
Declared extensions of language RPG were converted to rpg: **/*.rpg,**/*.rpgle,**/*.rpg,**/*.rpgle
Declared extensions of language PL/I were converted to pli: **/*.pli
Declared extensions of language T-SQL were converted to tsql: **/*.tsql
Declared extensions of language Apex were converted to apex: **/*.cls,**/*.trigger
Declared extensions of language PL/SQL were converted to plsql: **/*.sql,**/*.pks,**/*.pkb
Declared extensions of language Ruby were converted to ruby: **/*.rb
Declared extensions of language Scala were converted to scala: **/*.scala
Declared extensions of language COBOL were converted to cobol:
Declared extensions of language HTML were converted to web: **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml
Declared extensions of language JSP were converted to jsp: **/*.jsp,**/*.jspf,**/*.jspx
Declared extensions of language XML were converted to xml: **/*.xml,**/*.xsl
Declared extensions of language ABAP were converted to abap: **/*.abap,**/*.ab4,**/*.flow,**/*.asprog
Index files
1 files indexed
Quality profiles:
* abap: 'Sonar way' (65 rules)
* apex: 'Sonar way' (38 rules)
* cobol: 'Sonar way' (75 rules)
* jsp: 'FindBugs Security JSP' (0 rules)
* kotlin: 'Sonar way' (30 rules)
* pli: 'Sonar way' (14 rules)
* plsql: 'Sonar way' (130 rules)
* rpg: 'Sonar way' (31 rules)
* ruby: 'Sonar way' (29 rules)
* scala: 'Sonar way' (28 rules)
* tsql: 'Sonar way' (54 rules)
* web: 'Sonar way' (28 rules)
* xml: 'Sonar way' (4 rules)
Setting filesystem encoding: UTF-8
'CobolSquidSensor' skipped because there is no related file in current project
'Kotlin Sensor' skipped because there is no related file in current project
'RPG sensor' skipped because there is no related file in current project
'PliSquidSensor' skipped because there is no related file in current project
'T-SQL Sensor' skipped because there is no related file in current project
'Apex Sensor' skipped because there is no related file in current project
'PL/SQL Sensor' skipped because there is no related file in current project
'Ruby Sensor' skipped because there is no related file in current project
'Scala Sensor' skipped because there is no related file in current project
Execute Sensor: HTML
'XML Sensor' skipped because there is no related file in current project
'AbapSquidSensor' skipped because there is no related file in current project
Found 0 issue(s)
Persisting issues for src/com/siemens/fsp/f20/fc20/hca/physical/panel/buzzer/StateNotInitialized.java
Done in 122 ms

Hi,

Could you please trigger an update of the binding, and look for logs in the SonarLint console. My guess is that the Java analyzer in your SonarQube server is too old for SonarLint, and so can’t be executed.

You can check the version of the Java analyzer by calling <yourSQserver>/api/plugins/installed in a web browser.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.