Open Source
-
schrieveslaach commented on issue #38 at schrieveslaach / sonarlint.nvim
As for the path to the compilation database I use the default one wich is
./compile_commands.jsonso I don't need to specify it explicitly.Did you double check this statement? Looking at the sonarlint VSCode configuration spec, I see that they use an absolute path in the example:
Path to the active compilation database, e.g. `C:\\Repos\\MyProject\\compile_commands.json
-
schrieveslaach commented on issue #39 at schrieveslaach / sonarlint.nvim
Do you mind to provide a source definition of this conventions? I never heard of it and nvim-jdtls has no Lsp prefix in its commands.
-
schrieveslaach commented on issue #34 at schrieveslaach / sonarlint.nvim
@MKoseler, the config looks fine to me. Currently, the proxy might be an explanation why this is not working. Did you try if sonarlint for VScode works properly with setting up a connection? That would give us a good hint if it is related to a potential proxy issue or if it is due to some issue in sonarlint.nvim.
Also, you could try to debug sonarlint-language-server (if you are a Java dev) and see if you can find anything. Checkout this line in my dotfiles.
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
-
schrieveslaach created a branch
Updated Nov 21
-
schrieveslaach deleted
Updated Nov 21
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach commented on pull request aixigo/PREvant#268
-
schrieveslaach contributed to aixigo/PREvant
With #270 there was an increase in memory consumption and I investigated why. Heaptrack revealed that most memory is consumed by tokio: As there w…
- schrieveslaach pushed teamtype-jetbrains
- schrieveslaach commented on pull request aixigo/PREvant#268
- schrieveslaach pushed PREvant
-
schrieveslaach commented on issue #38 at schrieveslaach / sonarlint.nvim
I guess, sonarlint-language-server fails because there is no analyzer present (checkout the
-analyzersoption). Also, for getting diagnostics for C, you need to specify the path to the compilation database (see here).Java 17 should be fine.
-
schrieveslaach created a branch
Updated Nov 14
-
schrieveslaach deleted
Updated Nov 14
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
-
schrieveslaach contributed to aixigo/PREvant
With this commit operations can configure PREvant to define the replication behavior of applications (always, never, or when explicitly defined). A…
-
schrieveslaach created a branch
Updated Nov 12
-
schrieveslaach contributed to aixigo/PREvant
In order to reduce the HTTP traffic to the ticketing system, i.e. Jira, PREvant caches the responses. Before the change during a day of operating t…
-
schrieveslaach created a branch
Updated Nov 11
-
schrieveslaach opened a pull request in teamtype-jetbrains
With this PR the first and rudimentary test infrastructure is built to make sure that the plugin works as intended.
- schrieveslaach commented on pull request aixigo/PREvant#268
- schrieveslaach commented on pull request aixigo/PREvant#268
- schrieveslaach commented on pull request aixigo/PREvant#268
- schrieveslaach commented on pull request aixigo/PREvant#268
- schrieveslaach commented on pull request aixigo/PREvant#268
- schrieveslaach commented on pull request aixigo/PREvant#268
- schrieveslaach commented on pull request aixigo/PREvant#268
-
schrieveslaach deleted
Updated Nov 11
- schrieveslaach pushed PREvant
- schrieveslaach commented on pull request aixigo/PREvant#268
- schrieveslaach pushed PREvant
- schrieveslaach commented on pull request SonarSource/sonarlint-language-server#551
- schrieveslaach closed an issue in PREvant
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach commented on pull request aixigo/PREvant#262
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach pushed teamtype-jetbrains
-
schrieveslaach pushed to project branch main at schrieveslaach / dotfiles
schrieveslaach (ccf52586) at 06 Nov 12:17
nvim: Enable LSP severs
- schrieveslaach commented on pull request SonarSource/sonarlint-language-server#551
-
schrieveslaach opened merge request !28: Draft: Tell sonarlint-ls to fallback to LSP's window/showMessage at schrieveslaach / sonarlint.nvim
Based on https://github.com/SonarSource/sonarlint-language-server/pull/551 this commit enhances the handler sonarlint/canShowMissingRequirementsNotification to check if the sonarlint-language-server supports the error_only return value to make sure that missing setup requirements will shown as LSP standard window message.
Fixes #29
-
schrieveslaach pushed new project branch signal-error-only at schrieveslaach / sonarlint.nvim
schrieveslaach (0adb60a1) at 06 Nov 08:14
Tell sonarlint-ls to fallback to LSP's window/showMessage
- schrieveslaach commented on pull request SonarSource/sonarlint-language-server#551
-
schrieveslaach deleted
Updated Oct 31
- schrieveslaach pushed teamtype-jetbrains
- schrieveslaach pushed teamtype-jetbrains
- schrieveslaach pushed teamtype-jetbrains
- schrieveslaach pushed teamtype-jetbrains
- schrieveslaach pushed teamtype-jetbrains
- schrieveslaach commented on an issue in teamtype-jetbrains
- schrieveslaach closed an issue in teamtype-jetbrains
- schrieveslaach closed an issue in teamtype-jetbrains
-
schrieveslaach commented on issue #34 at schrieveslaach / sonarlint.nvim
@jeremieburtin, are you certain that
analyzers_path .."sonarjs.jar",points to correct path? -
schrieveslaach commented on issue #34 at schrieveslaach / sonarlint.nvim
@mrt181, I see in your config that you enbaled sonarlint.nvim for CS only:
filetypes = { "cs" },Please, try with the additional file types.
- schrieveslaach commented on pull request SonarSource/sonarlint-language-server#551
- schrieveslaach commented on pull request SonarSource/sonarlint-language-server#551
- schrieveslaach commented on an issue in testcontainers-rs
-
schrieveslaach commented on issue #34 at schrieveslaach / sonarlint.nvim
I see
rules = vim.empty_dict()in your LSP config. Can you remove it because look at the sonarlint.nvim README:Rules can be configured, e.g. by turning them on or off, with the following configuration. Please note that
rules = {}deactivates all rules. - schrieveslaach pushed PREvant
-
schrieveslaach commented on issue #34 at schrieveslaach / sonarlint.nvim
Can you check following questions?
- Do you get a pop up in Neovim after changing the line locally?
- Can you tell me which sonarlint-language-server version you are using?
- Is there any error or suspicious message in
:LspLog?
- schrieveslaach pushed PREvant
-
schrieveslaach pushed to project branch main at schrieveslaach / dotfiles
schrieveslaach (46a8007d) at 20 Oct 20:06
nvim: follow Mason install recommendation
- schrieveslaach pushed mason-registry
- schrieveslaach contributed to mason-org/mason-registry
-
schrieveslaach commented on issue #29 at schrieveslaach / sonarlint.nvim
FYI: new attempt to fix it upstream, see https://github.com/SonarSource/sonarlint-language-server/pull/548
-
schrieveslaach commented on issue #34 at schrieveslaach / sonarlint.nvim
Can you try to adjust following code locally in your local sonarlint.nvim?
config.handlers["sonarlint/canShowMissingRequirementsNotification"] = function() return true endI think sonarlint.nvim swallows the notification. Meanwhile, I tried to improve upstream so that you get a proper message in Neovim.
-
schrieveslaach commented on issue #35 at schrieveslaach / sonarlint.nvim
4.3.1 should now be working without the custom init options. @coderkun, do you mind to try it without custom init options?
-
schrieveslaach created a branch
Updated Oct 17
-
schrieveslaach opened a pull request in sonarlint-language-server
With this commit, notifications about missing requirements will fallback to the standard LSP message
window/showMessageif thesonarlint/canShowMis… -
schrieveslaach deleted
Updated Oct 17
-
schrieveslaach commented on merge request !27 at schrieveslaach / sonarlint.nvim
Cool, thanks for testing.
-
schrieveslaach deleted project branch new-jdtls-setup-handling at schrieveslaach / sonarlint.nvim
schrieveslaach (9ce2318b) at 04 Oct 10:09
-
schrieveslaach closed issue #36: Using new lspconfig setup method for jdtls at schrieveslaach / sonarlint.nvim
When I use the new setup method via lspconfig then I get the error below.
https://github.com/mfussenegger/nvim-jdtls/?tab=readme-ov-file#via-lspconfig
Error executing vim.schedule lua callback: ...al/share/nvim/lazy/sonarlint.nvim/lua/sonarlint/java.lua:171: attempt to index field 'handl ers' (a nil value) stack traceback: ...al/share/nvim/lazy/sonarlint.nvim/lua/sonarlint/java.lua:171: in function 'init_config' ...al/share/nvim/lazy/sonarlint.nvim/lua/sonarlint/java.lua:166: in function '' vim/_editor.lua: in function '' vim/_editor.lua: in function <vim/_editor.lua:0>I couldn't figure out how to delay or postpone sonarlint configuration after the nvim-jdtls has done it's init setup.
-
schrieveslaach pushed to project branch main at schrieveslaach / sonarlint.nvim
schrieveslaach (1d49a469) at 04 Oct 10:09
Use LspAttach Event to Install Classpath and Readiness Handling
-
schrieveslaach accepted merge request !27: Use LspAttach Event to Install Classpath and Readiness Handling at schrieveslaach / sonarlint.nvim
Fixes #36
-
schrieveslaach pushed to project branch main at schrieveslaach / dotfiles
schrieveslaach (e6b8ac4d) at 03 Oct 10:19
nvim: use new JDTLS init method
-
schrieveslaach commented on merge request !27 at schrieveslaach / sonarlint.nvim
After changing my dotfiles to use also the new jdtls initialization, I could reproduce your recent error. Now, it should be working fine. Can you give it another try?
-
schrieveslaach pushed to project branch new-jdtls-setup-handling at schrieveslaach / sonarlint.nvim
schrieveslaach (9ce2318b) at 03 Oct 10:07
Use LspAttach Event to Install Classpath and Readiness Handling
-
schrieveslaach commented on merge request !27 at schrieveslaach / sonarlint.nvim
I found another approach that's get rid of the dependency on
language/status. Do you mind to check if this is working with new jdtls setup. With the old setup it works. -
schrieveslaach pushed to project branch new-jdtls-setup-handling at schrieveslaach / sonarlint.nvim
schrieveslaach (0eda4467) at 02 Oct 10:06
Use LspAttach Event to Install Classpath and Readiness Handling
- schrieveslaach pushed PREvant
-
schrieveslaach deleted
Updated Oct 1
- schrieveslaach pushed PREvant
-
schrieveslaach deleted
Updated Oct 1
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
-
schrieveslaach created a branch
Updated Oct 1
-
schrieveslaach contributed to aixigo/PREvant
In preparation of a persistent worker-producer queue (see #262) this commit moves the application of the “ID Token Claims to Owner Mapping” hook ea…
-
schrieveslaach commented on issue #36 at schrieveslaach / sonarlint.nvim
@azdanov, can you try !27 (merged) to see it that fixes the issue?
-
schrieveslaach opened merge request !27: Use LspAttach Event to Install Classpath and Readiness Handling at schrieveslaach / sonarlint.nvim
Fixes #36
-
schrieveslaach pushed new project branch new-jdtls-setup-handling at schrieveslaach / sonarlint.nvim
schrieveslaach (12a749c8) at 30 Sep 11:17
Handle empty handlers for jdtls client
-
schrieveslaach pushed to project branch main at schrieveslaach / sonarlint.nvim
schrieveslaach (6a3f95e0) at 30 Sep 11:10
Fix code style
-
schrieveslaach pushed to project branch main at schrieveslaach / sonarlint.nvim
schrieveslaach (eb3d9c16) at 30 Sep 11:08
Close Popup when Leaving Buffer
-
schrieveslaach pushed to project branch main at schrieveslaach / dotfiles
schrieveslaach (7feaa7ad) at 28 Sep 11:01
nvim, nushell: make sure that CLI params can be passed to Neovim in...
-
schrieveslaach pushed to project branch main at schrieveslaach / sonarlint.nvim
schrieveslaach (1281dbb4) at 28 Sep 10:57
Show Rules and Description in Popup
-
schrieveslaach commented on issue #35 at schrieveslaach / sonarlint.nvim
Yes, that could be done to prevent the crashing. What bothers me though, that a client can crash the server and currently sonarlint-language-server relies on the client to not crash the server (see also my comment here).
Let's see how they respond.
Meanwhile, you should be able to prevent the crash in your local sonarlint.nvim conf:
require("sonarlint").setup({ server = { -- … init_options = { connections = vim.empty_dict(), rules = vim.empty_dict(), automaticAnalysis = true, }, }, }) - schrieveslaach pushed PREvant
- schrieveslaach commented on issue #35 at schrieveslaach / sonarlint.nvim
-
schrieveslaach created a branch
Updated Sep 18
-
schrieveslaach commented on issue #35 at schrieveslaach / sonarlint.nvim
diff --git a/src/main/java/org/sonarsource/sonarlint/ls/SonarLintLanguageServerInitializationOptions.java b/src/main/java/org/sonarsource/sonarlint/ls/SonarLintLanguageServerInitializationOptions.java index bf0bdd38..b8a76ef6 100644 --- a/src/main/java/org/sonarsource/sonarlint/ls/SonarLintLanguageServerInitializationOptions.java +++ b/src/main/java/org/sonarsource/sonarlint/ls/SonarLintLanguageServerInitializationOptions.java @@ -19,6 +19,7 @@ */ package org.sonarsource.sonarlint.ls; +import java.util.Collections; import java.util.Map; public record SonarLintLanguageServerInitializationOptions( @@ -31,7 +32,7 @@ public record SonarLintLanguageServerInitializationOptions( Map<String, Object> additionalAttributes, String clientNodePath, boolean focusOnNewCode, - boolean automaticAnalysis, + Boolean automaticAnalysis, String omnisharpDirectory, String csharpOssPath, String csharpEnterprisePath, @@ -41,4 +42,16 @@ public record SonarLintLanguageServerInitializationOptions( Map<String, Object> rules, Map<String, Object> connections) { + public SonarLintLanguageServerInitializationOptions { + if (rules == null) { + rules = Collections.emptyMap(); + } + if (connections == null) { + connections = Collections.emptyMap(); + } + if (automaticAnalysis == null) { + automaticAnalysis = Boolean.TRUE; + } + } + }This change did the trick. Digging into the diff of the release revealed to me that sonarlint-language-server relies on the client to initialize some maps. I'll create a PR and see if they'll merge it.
-
schrieveslaach commented on issue #35 at schrieveslaach / sonarlint.nvim
I can confirm that I'm running into the same issue. I created a fix for the NPE locally and tried to see if that is enough and if this local fix could be upstreamed. Here is the fix:
diff --git a/src/main/java/org/sonarsource/sonarlint/ls/SonarLintLanguageServerInitializationOptions.java b/src/main/java/org/sonarsource/sonarlint/ls/SonarLintLanguageServerInitializationOptions.java index bf0bdd38..3a797b72 100644 --- a/src/main/java/org/sonarsource/sonarlint/ls/SonarLintLanguageServerInitializationOptions.java +++ b/src/main/java/org/sonarsource/sonarlint/ls/SonarLintLanguageServerInitializationOptions.java @@ -19,6 +19,7 @@ */ package org.sonarsource.sonarlint.ls; +import java.util.Collections; import java.util.Map; public record SonarLintLanguageServerInitializationOptions( @@ -41,4 +42,13 @@ public record SonarLintLanguageServerInitializationOptions( Map<String, Object> rules, Map<String, Object> connections) { + public SonarLintLanguageServerInitializationOptions { + if (rules == null) { + rules = Collections.emptyMap(); + } + if (connections == null) { + connections = Collections.emptyMap(); + } + } + }That fixes the error message and the LSP starts. However, there must be more adjustment because I don't get any diagnostics from Sonarlint LS.
-
schrieveslaach pushed to project branch main at schrieveslaach / dotfiles
schrieveslaach (29ae9ff6) at 18 Sep 06:28
nvim: Set TERM variable for ZelliJ Issue #3412
-
schrieveslaach deleted project branch convert-rule-html-to-markdown at schrieveslaach / sonarlint.nvim
schrieveslaach (067f041f) at 18 Sep 06:14
-
schrieveslaach pushed to project branch main at schrieveslaach / sonarlint.nvim
schrieveslaach (dc570255) at 18 Sep 06:14
Convert Rule HTML Content to Markdown
-
schrieveslaach accepted merge request !26: Convert Rule HTML Content to Markdown at schrieveslaach / sonarlint.nvim
With this commit the rule description is converted from HTML to markdown so that the display in the UI looks nicer.
-
schrieveslaach pushed to project branch convert-rule-html-to-markdown at schrieveslaach / sonarlint.nvim
schrieveslaach (067f041f) at 18 Sep 06:12
Convert Rule HTML Content to Markdown
- schrieveslaach opened a pull request in sonarlint-language-server
- schrieveslaach commented on an issue in zellij
- schrieveslaach pushed PREvant
-
schrieveslaach pushed to project branch convert-rule-html-to-markdown at schrieveslaach / sonarlint.nvim
schrieveslaach (07813986) at 11 Sep 11:44
More emphasis conversion
-
schrieveslaach pushed to project branch convert-rule-html-to-markdown at schrieveslaach / sonarlint.nvim
schrieveslaach (4af5879f) at 11 Sep 07:50
More emphasis conversion
-
schrieveslaach created a branch
Updated Sep 10
- schrieveslaach pushed PREvant
-
schrieveslaach deleted
Updated Sep 10
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
-
schrieveslaach opened a pull request in PREvant
Fixes #40
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach commented on pull request aixigo/PREvant#259
-
schrieveslaach pushed to project branch convert-rule-html-to-markdown at schrieveslaach / sonarlint.nvim
-
schrieveslaach commented on issue #35 at schrieveslaach / sonarlint.nvim
Oh, … Yes, I messed up the version numbers. I'll check it out.
-
schrieveslaach opened issue #35: NPE in connection settings with SonarLint 4 at schrieveslaach / sonarlint.nvim
-
schrieveslaach commented on issue #35 at schrieveslaach / sonarlint.nvim
This issue has been fixed upstream in sonarlint-language-server 4.13. Closing as duplicate of #24 (closed).
-
schrieveslaach closed issue #35: NPE in connection settings with SonarLint 4 at schrieveslaach / sonarlint.nvim
-
schrieveslaach pushed to project branch main at schrieveslaach / dotfiles
schrieveslaach (ec25369c) at 05 Sep 07:46
nvim: fix missing highlights and make sure that tree-sitter-cli is ...
-
schrieveslaach pushed to project branch convert-rule-html-to-markdown at schrieveslaach / sonarlint.nvim
schrieveslaach (00ad9917) at 04 Sep 17:00
Convert java:S899
-
schrieveslaach pushed to project branch convert-rule-html-to-markdown at schrieveslaach / sonarlint.nvim
schrieveslaach (76624364) at 04 Sep 11:00
More tests
-
schrieveslaach pushed to project branch convert-rule-html-to-markdown at schrieveslaach / sonarlint.nvim
schrieveslaach (fbb02da0) at 04 Sep 10:49
Remove unused eval command
-
schrieveslaach pushed to project branch convert-rule-html-to-markdown at schrieveslaach / sonarlint.nvim
schrieveslaach (e4804832) at 04 Sep 10:48
Install gcc a required CI tool for having tree-sitter parsers
-
schrieveslaach pushed to project branch convert-rule-html-to-markdown at schrieveslaach / sonarlint.nvim
-
schrieveslaach pushed to project branch convert-rule-html-to-markdown at schrieveslaach / sonarlint.nvim
schrieveslaach (f22d199c) at 04 Sep 10:44
initial test infra
-
schrieveslaach pushed to project branch convert-rule-html-to-markdown at schrieveslaach / sonarlint.nvim
schrieveslaach (7e642899) at 04 Sep 08:47
initial test infra
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach commented on pull request aixigo/PREvant#259
- schrieveslaach commented on pull request aixigo/PREvant#259
- schrieveslaach commented on pull request aixigo/PREvant#259
- schrieveslaach commented on pull request aixigo/PREvant#259
- schrieveslaach commented on pull request aixigo/PREvant#259
- schrieveslaach commented on pull request aixigo/PREvant#259
- schrieveslaach commented on pull request aixigo/PREvant#259
- schrieveslaach commented on pull request aixigo/PREvant#259
- schrieveslaach commented on pull request aixigo/PREvant#259
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
-
schrieveslaach pushed to project branch convert-rule-html-to-markdown at schrieveslaach / sonarlint.nvim
schrieveslaach (e5c6181f) at 28 Aug 16:12
initial test infra
-
schrieveslaach created a branch
Updated Aug 28
- schrieveslaach opened an issue in ethersync
- schrieveslaach closed an issue in ethersync
- schrieveslaach commented on an issue in ethersync
- schrieveslaach commented on an issue in ethersync-jetbrains
-
schrieveslaach opened a pull request in ethersync-jetbrains
This PR provides support for the new CLI interface of Ethersync 0.7. Fixes #5 Work done so far:
-
schrieveslaach created a branch
Updated Aug 27
-
schrieveslaach deleted
Updated Aug 27
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
- schrieveslaach pushed PREvant
-
schrieveslaach opened a pull request in PREvant
This commit brings an in-memory producer-consumer queue that avoids the
409 conflict when interacting with the infrastructure. Addresses #40. In fo… - schrieveslaach pushed PREvant
- schrieveslaach labeled an issue help wanted in PREvant
- schrieveslaach labeled an issue help wanted in PREvant
- schrieveslaach opened an issue in PREvant
- schrieveslaach commented on pull request aixigo/PREvant#254
- schrieveslaach commented on pull request aixigo/PREvant#254
- schrieveslaach commented on pull request aixigo/PREvant#254
- schrieveslaach commented on pull request aixigo/PREvant#254
- schrieveslaach commented on pull request aixigo/PREvant#254
- schrieveslaach commented on pull request aixigo/PREvant#254
- schrieveslaach commented on pull request aixigo/PREvant#254
- schrieveslaach commented on pull request aixigo/PREvant#254