Error building language server

Otherwise, please provide:

  • Operating system: ubuntu 22.04
  • IDE name and flavor/env: neovim

And a thorough description of the problem / question:

I’d like to build the language server from GitHub - SonarSource/sonarlint-language-server: Language Server for SonarLint VSCode so that I can try to use it with neovim (schrieveslaach / sonarlint.nvim · GitLab). I couldn’t find any binary releases of the LS, so I’m trying to build from source - I get an error:

[WARNING] The POM for org.sonarsource.sonarlint.core:sonarlint-core:jar:8.15.0.63555 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.706 s
[INFO] Finished at: 2023-03-10T14:02:21-08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project sonarlint-language-server: Could not resolve dependencies for project org.sonarsource.sonarlint.ls:sonarlint-language-server:jar:2.16.0-SNAPSHOT: org.sonarsource.sonarlint.core:sonarlint-core:jar:8.15.0.63555 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

Have I missed a setup step?

Hello :wave: thanks for reporting this!

We merged this contribution as part of our ongoing development sprint on SonarLint for VSCode 3.16 and there has been no public release yet.

This is still work in progress and until it is released publicly, there is a possibility (like here) that the build uses dependencies that are not available yet to the general public, only internal to SonarSource.

Our plan according to our monthly cadence is to release sonarlint-core 8.15, sonarlint-language-server 2.16 and sonarlint-vscode 3.16 next week (2023-03-21).

If you would like to check it out before the public release, you will also need to build sonarlint-core from source.

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