lsp-sonarlint icon indicating copy to clipboard operation
lsp-sonarlint copied to clipboard

Incomplete Installation Instructions/README

Open liar666 opened this issue 3 years ago • 6 comments

Hi,

I've tried to install lsp-sonarlint. I'm particularly interested in its Java & JavaScript components.

Following the README in this repo, I did:

  • Install lsp-sonarlint in Emacs packages from MELPA
  • Complete my Emacs config file with
(require 'lsp-sonarlint)
(require 'lsp-sonarlint-javascript)
(setq lsp-sonarlint-javascript-enabled t)
(require 'lsp-sonarlint-java)
(setq lsp-sonarlint-java-enabled t)

But I get an error when starting Emacs: File is missing: Cannot open load file, No such file or directory, lsp-sonarlint-javascript

You might have forgotten to give some steps in the install procedure in the README...

Could you please complete the README/docs so that a newbie like me can install a fully working Emacs + sonarlint setup?

Thanks

liar666 avatar Sep 14 '21 11:09 liar666

Sorry about the response delay.

I reinstall the extension with the default settings, and seems like it work as intended, maybe you decline when lsp-sonarlint ask to download the extension? The behaviour is that if it doesn't found the extension, it will download it for you.

Sasanidas avatar Jul 29 '22 20:07 Sasanidas

Hi all,

I also have troubles to keep up and running with this cool lsp integration.

I downloaded all the relevant package and set the relevant variables after requiring the module

   (use-package lsp-sonarlint
     :ensure t)

   (require 'lsp-sonarlint-java)
   (setq lsp-sonarlint-java-enabled t)

The sonarlint server seems to work and I do not get any errors. I can see a server at localhost:64474. I checked at the variables defined in the lsp-sonarlint-java module and they are correctly set.

Still when I try on purpose to introduce some non-compliant code as per here I do not get any sonarlint warnings.

Any suggestions? I suggest to write a 101 with a tutorial with example as per lsp-java or similar.

Best, Marco

MarcoHassan avatar Sep 26 '22 09:09 MarcoHassan

Same for me. When I ran M-x lsp, I saw messages like the below that showed no errors or warnings, so I assume lsp-sonarlint installed what it needed, but I'm not seeing any SonarLint warnings from known problem code:

Contacting host: binaries.sonarsource.com:443
Wrote c:/Users/ppena/AppData/Roaming/.emacs.d/elpa/lsp-sonarlint-20220510.1802/languages/sonar-python.jar
LSP :: Connected to [pylsp:51512 c:/git/my-test-proj].

Is there some way to check if lsp-sonarlint is properly configured? I see *lsp-mode* and *pylsp* buffers in Emacs; should there also be a messages buffer for lsp-sonarlint?

ppena-LiveData avatar Mar 10 '23 17:03 ppena-LiveData

Thanks for the feedback, It's true that the server seems lo work as intended but for some reason is not triggering any code-action or warning.

This maybe because of the new version of the lsp server of sonarlint that may require some adjustment or this repository integration with lsp-mode that need to be fixed/updated.

In any case, I'm kind of lost, so ping @yyoncho , maybe he can give you more details.

Sasanidas avatar Mar 19 '23 11:03 Sasanidas

I have upgraded SonarLint and its plugins to the latest versions used in the VSCode plugin in this PR. The CI tests suggest that it works pretty reliably. Please give it a go.

necto avatar Aug 13 '23 19:08 necto

https://github.com/emacs-lsp/lsp-sonarlint/pull/22 has improved the on-boarding experience. Is this issue still relevant?

necto avatar Jul 12 '24 19:07 necto