Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package efm-langserver for openSUSE:Factory 
checked in at 2024-10-30 17:39:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/efm-langserver (Old)
 and      /work/SRC/openSUSE:Factory/.efm-langserver.new.2020 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "efm-langserver"

Wed Oct 30 17:39:51 2024 rev:2 rq:1219485 version:0.0.53

Changes:
--------
--- /work/SRC/openSUSE:Factory/efm-langserver/efm-langserver.changes    
2023-12-25 19:06:37.084367652 +0100
+++ /work/SRC/openSUSE:Factory/.efm-langserver.new.2020/efm-langserver.changes  
2024-10-30 17:40:20.355095623 +0100
@@ -1,0 +2,10 @@
+Wed Sep 25 01:58:12 UTC 2024 - Soc Virnyl Estela <[email protected]>
+
+- Update to version 0.0.53:
+  * update deps
+  * add add lint-after-open
+  * fix-escape-brackets
+  * fix: unescaped brackets in path
+  * docs: add config for VSCode
+
+-------------------------------------------------------------------

Old:
----
  efm-langserver-0.0.49.tar.gz

New:
----
  efm-langserver-0.0.53.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ efm-langserver.spec ++++++
--- /var/tmp/diff_new_pack.gxXzhe/_old  2024-10-30 17:40:21.199131179 +0100
+++ /var/tmp/diff_new_pack.gxXzhe/_new  2024-10-30 17:40:21.203131348 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package efm-langserver
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           efm-langserver
-Version:        0.0.49
+Version:        0.0.53
 Release:        0
 Summary:        General purpose language server
 License:        MIT

++++++ efm-langserver-0.0.49.tar.gz -> efm-langserver-0.0.53.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/efm-langserver-0.0.49/README.md 
new/efm-langserver-0.0.53/README.md
--- old/efm-langserver-0.0.49/README.md 2023-11-11 17:49:43.000000000 +0100
+++ new/efm-langserver-0.0.53/README.md 2024-03-18 14:55:07.000000000 +0100
@@ -7,6 +7,33 @@
 
 
![efm](https://raw.githubusercontent.com/mattn/efm-langserver/master/screenshot.png)
 
+* [Installation](#installation)
+* [Usage](#usage)
+  + [Configuration](#configuration)
+    - [InitializeParams](#initializeparams)
+  + [Example for config.yaml](#example-for-configyaml)
+  + [Example for DidChangeConfiguration 
notification](#example-for-didchangeconfiguration-notification)
+* [Client Setup](#client-setup)
+  + [Configuration for vim-lsp](#configuration-for-vim-lsp)
+  + [Configuration for coc.nvim](#configuration-for-cocnvim)
+  + [Configuration for Eglot (Emacs)](#configuration-for-eglot)
+  + [Configuration for neovim builtin LSP with 
nvim-lspconfig](#configuration-for-neovim-builtin-lsp-with-nvim-lspconfig)
+  + [Configuration for Helix](#configuration-for-helix)
+  + [Configuration for VSCode](#configuration-for-vscode)
+* [License](#license)
+* [Author](#author)
+
+## Installation
+
+```console
+go install github.com/mattn/efm-langserver@latest
+```
+
+or via [Homebrew](https://brew.sh/):
+```console
+brew install efm-langserver
+```
+
 ## Usage
 
 ```text
@@ -377,6 +404,8 @@
 }
 ```
 
+## Client Setup
+
 ### Configuration for [vim-lsp](https://github.com/prabirshrestha/vim-lsp/)
 
 ```vim
@@ -409,7 +438,7 @@
   },
 ```
 
-### Configuration for [Eglot](https://github.com/joaotavora/eglot)
+### Configuration for [Eglot](https://github.com/joaotavora/eglot) (Emacs)
 
 Add to eglot-server-programs with major mode you want.
 
@@ -479,15 +508,16 @@
 ]
 ```
 
-## Installation
-
-```console
-go install github.com/mattn/efm-langserver@latest
-```
+### Configuration for [VSCode](https://github.com/microsoft/vscode)
+[Generic LSP Client for VSCode](https://github.com/llllvvuu/vscode-glspc)
 
-Homebrew
-```console
-brew install efm-langserver
+Example `settings.json` (change to fit your local installs):
+```json
+{
+  "glspc.languageId": "lua",
+  "glspc.serverCommand": 
"/Users/me/.local/share/nvim/mason/bin/efm-langserver",
+  "glspc.pathPrepend": 
"/Users/me/.local/share/rtx/installs/python/3.11.4/bin:/Users/me/.local/share/rtx/installs/node/20.3.1/bin",
+}
 ```
 
 ## License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/efm-langserver-0.0.49/go.mod 
new/efm-langserver-0.0.53/go.mod
--- old/efm-langserver-0.0.49/go.mod    2023-11-11 17:49:43.000000000 +0100
+++ new/efm-langserver-0.0.53/go.mod    2024-03-18 14:55:07.000000000 +0100
@@ -4,7 +4,7 @@
 
 require (
        github.com/mattn/go-unicodeclass v0.0.2
-       github.com/reviewdog/errorformat v0.0.0-20230917110423-33358de5bbea
+       github.com/reviewdog/errorformat v0.0.0-20240311054359-739e471a49b3
        github.com/sourcegraph/jsonrpc2 v0.2.0
        gopkg.in/yaml.v3 v3.0.1
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/efm-langserver-0.0.49/go.sum 
new/efm-langserver-0.0.53/go.sum
--- old/efm-langserver-0.0.49/go.sum    2023-11-11 17:49:43.000000000 +0100
+++ new/efm-langserver-0.0.53/go.sum    2024-03-18 14:55:07.000000000 +0100
@@ -15,6 +15,8 @@
 github.com/reviewdog/errorformat v0.0.0-20220309155058-b075c45b6d9a/go.mod 
h1:AqhrP0G7F9YRROF10JQwdd4cNO8bdm6bY6KzcOc3Cp8=
 github.com/reviewdog/errorformat v0.0.0-20230917110423-33358de5bbea 
h1:4nmQZsFy/s1J6faH8D7UQWcGz/BcC/uFMlsPkg/4hRg=
 github.com/reviewdog/errorformat v0.0.0-20230917110423-33358de5bbea/go.mod 
h1:AqhrP0G7F9YRROF10JQwdd4cNO8bdm6bY6KzcOc3Cp8=
+github.com/reviewdog/errorformat v0.0.0-20240311054359-739e471a49b3 
h1:lV04V4ovHohXYTxIk6pttGRTu/AcxuYqJ/DGetAonqU=
+github.com/reviewdog/errorformat v0.0.0-20240311054359-739e471a49b3/go.mod 
h1:AqhrP0G7F9YRROF10JQwdd4cNO8bdm6bY6KzcOc3Cp8=
 github.com/sourcegraph/jsonrpc2 v0.1.0 
h1:ohJHjZ+PcaLxDUjqk2NC3tIGsVa5bXThe1ZheSXOjuk=
 github.com/sourcegraph/jsonrpc2 v0.1.0/go.mod 
h1:ZafdZgk/axhT1cvZAPOhw+95nz2I/Ra5qMlU4gTRwIo=
 github.com/sourcegraph/jsonrpc2 v0.2.0 
h1:KjN/dC4fP6aN9030MZCJs9WQbTOjWHhrtKVpzzSrr/U=
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/efm-langserver-0.0.49/langserver/handle_text_document_formatting_test.go 
new/efm-langserver-0.0.53/langserver/handle_text_document_formatting_test.go
--- 
old/efm-langserver-0.0.49/langserver/handle_text_document_formatting_test.go    
    2023-11-11 17:49:43.000000000 +0100
+++ 
new/efm-langserver-0.0.53/langserver/handle_text_document_formatting_test.go    
    2024-03-18 14:55:07.000000000 +0100
@@ -20,6 +20,7 @@
                                {
                                        LintCommand:        `echo ` + file + 
`:2:No it is normal!`,
                                        LintIgnoreExitCode: true,
+                                       LintAfterOpen:      true,
                                        LintStdin:          true,
                                        RequireMarker:      true,
                                        RootMarkers:        
[]string{".vimlintrc"},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/efm-langserver-0.0.49/langserver/handler.go 
new/efm-langserver-0.0.53/langserver/handler.go
--- old/efm-langserver-0.0.49/langserver/handler.go     2023-11-11 
17:49:43.000000000 +0100
+++ new/efm-langserver-0.0.53/langserver/handler.go     2024-03-18 
14:55:07.000000000 +0100
@@ -76,6 +76,7 @@
        LintSource         string            `yaml:"lint-source" 
json:"lintSource"`
        LintSeverity       int               `yaml:"lint-severity" 
json:"lintSeverity"`
        LintWorkspace      bool              `yaml:"lint-workspace" 
json:"lintWorkspace"`
+       LintAfterOpen      bool              `yaml:"lint-after-open" 
json:"lintAfterOpen"`
        LintOnSave         bool              `yaml:"lint-on-save" 
json:"lintOnSave"`
        FormatCommand      string            `yaml:"format-command" 
json:"formatCommand"`
        FormatCanRange     bool              `yaml:"format-can-range" 
json:"formatCanRange"`
@@ -374,9 +375,18 @@
                        if dir := matchRootPath(fname, cfg.RootMarkers); dir == 
"" && cfg.RequireMarker == true {
                                continue
                        }
-                       // if LintOnSave is true, only lint when running on 
didSave
-                       if cfg.LintOnSave && eventType != eventTypeSave {
-                               continue
+                       switch eventType {
+                       case eventTypeOpen:
+                               // if LintAfterOpen is not true, ignore didOpen
+                               if !cfg.LintAfterOpen {
+                                       continue
+                               }
+                       case eventTypeChange:
+                               // if LintOnSave is true, ignore didChange
+                               if cfg.LintOnSave {
+                                       continue
+                               }
+                       default:
                        }
                        if cfg.LintCommand != "" {
                                configs = append(configs, cfg)
@@ -692,14 +702,21 @@
        ext := filepath.Ext(fname)
        ext = strings.TrimPrefix(ext, ".")
 
-       command = strings.Replace(command, "${INPUT}", fname, -1)
+       command = strings.Replace(command, "${INPUT}", escapeBrackets(fname), 
-1)
        command = strings.Replace(command, "${FILEEXT}", ext, -1)
-       command = strings.Replace(command, "${FILENAME}", 
filepath.FromSlash(fname), -1)
-       command = strings.Replace(command, "${ROOT}", rootPath, -1)
+       command = strings.Replace(command, "${FILENAME}", 
escapeBrackets(filepath.FromSlash(fname)), -1)
+       command = strings.Replace(command, "${ROOT}", escapeBrackets(rootPath), 
-1)
 
        return command
 }
 
+func escapeBrackets(path string) string {
+       path = strings.Replace(path, "(", `\(`, -1)
+       path = strings.Replace(path, ")", `\)`, -1)
+
+       return path
+}
+
 func succeeded(err error) bool {
        exitErr, ok := err.(*exec.ExitError)
        // When the context is canceled, the process is killed,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/efm-langserver-0.0.49/main.go 
new/efm-langserver-0.0.53/main.go
--- old/efm-langserver-0.0.49/main.go   2023-11-11 17:49:43.000000000 +0100
+++ new/efm-langserver-0.0.53/main.go   2024-03-18 14:55:07.000000000 +0100
@@ -18,7 +18,7 @@
 
 const (
        name    = "efm-langserver"
-       version = "0.0.49"
+       version = "0.0.53"
 )
 
 var revision = "HEAD"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/efm-langserver-0.0.49/schema.json 
new/efm-langserver-0.0.53/schema.json
--- old/efm-langserver-0.0.49/schema.json       2023-11-11 17:49:43.000000000 
+0100
+++ new/efm-langserver-0.0.53/schema.json       2024-03-18 14:55:07.000000000 
+0100
@@ -107,6 +107,11 @@
           "description": "offset value to skip lines",
           "type": "number"
         },
+        "lint-after-open": {
+          "default": true,
+          "description": "lint after open",
+          "type": "boolean"
+        },
         "lint-on-save": {
           "description": "only lint on save, i.e. don't lint on text changed",
           "type": "boolean"

++++++ vendor.tar.zst ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vendor/modules.txt new/vendor/modules.txt
--- old/vendor/modules.txt      2023-12-25 02:47:02.904953894 +0100
+++ new/vendor/modules.txt      2024-09-25 03:56:28.323633727 +0200
@@ -3,7 +3,7 @@
 # github.com/mattn/go-unicodeclass v0.0.2
 ## explicit
 github.com/mattn/go-unicodeclass
-# github.com/reviewdog/errorformat v0.0.0-20230917110423-33358de5bbea
+# github.com/reviewdog/errorformat v0.0.0-20240311054359-739e471a49b3
 ## explicit; go 1.13
 github.com/reviewdog/errorformat
 # github.com/sourcegraph/jsonrpc2 v0.2.0

Reply via email to