GNU bug report logs - #77453
[PATCH] gnu: Add sbcl-alive-lsp.

Previous Next

Package: guix-patches;

Reported by: Grigory Shepelev <shegeley <at> gmail.com>

Date: Wed, 2 Apr 2025 10:31:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 77453 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#77453; Package guix-patches. (Wed, 02 Apr 2025 10:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Grigory Shepelev <shegeley <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 02 Apr 2025 10:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Grigory Shepelev <shegeley <at> gmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add sbcl-alive-lsp.
Date: Tue, 11 Mar 2025 22:00:46 +0300
1. sbcl-package->ecl-package fails with: «Component #:SB-INTROSPECT not found, required by #<system "alive-lsp">»
2. Can be used with emacs-lsp. Requires override. Example:
#+begin_src elisp
(require 'lsp)

(defun lsp-lisp-alive-start-ls ()
 "Start the alive-lsp."
 (interactive)
 (when-let (((lsp--port-available "localhost" lsp-lisp-alive-port)))
  (lsp-async-start-process #'ignore #'ignore
   (executable-find "guix")
   guix-exe
   "shell"
   "sbcl"
   "sbcl-alive-lsp"
   ;; "-D" "-f" "guix.scm" ;; when working on some sbcl project packed in guix
   "--"
   "sbcl"
   "--eval"
   "(require :asdf)"
   "--eval"
   "(asdf:load-system :alive-lsp)"
   "--eval"
   (format "(alive/server::start :port %s)"
    lsp-lisp-alive-port))))

(lsp-lisp-alive-start-ls)
#+end_src
---
gnu/packages/lisp-xyz.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 58e7f948ad..4c9a53c3cb 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -31778,6 +31778,35 @@ (define-public cl-usocket
 (define-public ecl-usocket
   (sbcl-package->ecl-package sbcl-usocket))

+(define-public sbcl-alive-lsp
+ (package
+  (name "sbcl-alive-lsp")
+  (version "0.0.1")
+  (source
+   (origin
+    (method git-fetch)
+    (uri (git-reference
+          (url "https://github.com/nobody-famous/alive-lsp")
+          (commit "491251c2897d9251d04301061065e2c23171f6a0")))
+    (file-name (git-file-name "sbcl-alive-lsp" version))
+    (sha256
+     (base32 "112zk8hkg71h7bbdmqfgxqblccb2bs8wcl6f7nrjjm1hy3cf1919"))))
+  (build-system asdf-build-system/sbcl)
+  (inputs
+   (list
+    sbcl-usocket
+    sbcl-cl-json
+    sbcl-bordeaux-threads
+    sbcl-flexi-streams))
+  (home-page "https://github.com/nobody-famous/alive-lsp")
+  (synopsis "Common Lisp LSP: Alive")
+  (description "This is the language server for Alive:
+  The Average Lisp VSCode Environment.")
+  (license license:unlicense)))
+
+(define-public cl-alive-lsp
+ (sbcl-package->cl-source-package sbcl-alive-lsp))
+
 (define-public sbcl-utf8-input-stream
   (let ((commit "d33b57a4d439c2f0877e5513be45eb6940d92c68")
         (revision "0"))
--
2.48.1
Message-ID: <87ecya97th.fsf <at> gmail.com>




Information forwarded to guix-patches <at> gnu.org:
bug#77453; Package guix-patches. (Thu, 10 Apr 2025 21:18:02 GMT) Full text and rfc822 format available.

Message #8 received at 77453 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 77453 <at> debbugs.gnu.org
Cc: shegeley <at> gmail.com
Subject: [PATCH] gnu: Add sbcl-alive-lsp.
Date: Thu, 10 Apr 2025 22:17:41 +0100
[Message part 1 (text/plain, inline)]
Hi,

Thank you for the patch!

Please place in alphabetical order, starting from the top of the file.
--8<---------------cut here---------------start------------->8---
 (define-public ecl-usocket
   (sbcl-package->ecl-package sbcl-usocket))

+(define-public sbcl-alive-lsp
--8<---------------cut here---------------end--------------->8---


--8<---------------cut here---------------start------------->8---
+  (version "0.0.1")
--8<---------------cut here---------------end--------------->8---
Let's use the latest availalbe version tag
<https://github.com/nobody-famous/alive-lsp/tree/v0.2.11> 3 days ago.

--8<---------------cut here---------------start------------->8---
+  (inputs
+   (list
+    sbcl-usocket
+    sbcl-cl-json
--8<---------------cut here---------------end--------------->8---
Please adjust to someting like others:
--8<---------------cut here---------------start------------->8---
...
  (inputs
   (list sbcl-usocket
         sbcl-cl-json
...
--8<---------------cut here---------------end--------------->8---

Maybe reword it to something more descriptive:
--8<---------------cut here---------------start------------->8---
+  (synopsis "Common Lisp LSP: Alive")
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
About
Language Server Protocol implementation for use with the Alive extension
--8<---------------cut here---------------end--------------->8---

Maybe provide a @url{} to the extention
<https://github.com/nobody-famous/alive> as well.
--8<---------------cut here---------------start------------->8---
+  (description "This is the language server for Alive:
+  The Average Lisp VSCode Environment.")
--8<---------------cut here---------------end--------------->8---

Looking forward for v2!

--
Oleg
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#77453; Package guix-patches. (Sat, 19 Apr 2025 18:03:02 GMT) Full text and rfc822 format available.

Message #11 received at 77453 <at> debbugs.gnu.org (full text, mbox):

From: Grigory Shepelev <shegeley <at> gmail.com>
To: 77453 <at> patchwise.org
Cc: sharlatanus <at> gmail.com
Subject: [PATCH] gnu: sbcl-alive-lsp [fixes from @sharlatan comments]
Date: Sat, 19 Apr 2025 20:51:34 +0300
1. Fixed version
2. Fixed inputs ident
3. Fixed synopsis and description

Also had typo in lsp start defun. Here is the proper one:
(defun lsp-lisp-alive-start-ls ()
 "Start the alive-lsp."
 (interactive)
 (when-let (((lsp--port-available "localhost" lsp-lisp-alive-port)))
  (lsp-async-start-process #'ignore #'ignore
   (executable-find "guix")
   "shell"
   "sbcl"
   "sbcl-alive-lsp"
   ;; "-D" "-f" "guix.scm" ;; when working on some sbcl project packed in guix
   "--"
   "sbcl"
   "--eval"
   "(require :asdf)"
   "--eval"
   "(asdf:load-system :alive-lsp)"
   "--eval"
   (format "(alive/server::start :port %s)"
    lsp-lisp-alive-port))))
---
 gnu/packages/lisp-xyz.scm | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 4c9a53c3cb..3b0e561797 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -31781,27 +31781,26 @@ (define-public ecl-usocket
 (define-public sbcl-alive-lsp
  (package
   (name "sbcl-alive-lsp")
-  (version "0.0.1")
+  (version "0.2.11")
   (source
    (origin
     (method git-fetch)
     (uri (git-reference
           (url "https://github.com/nobody-famous/alive-lsp")
-          (commit "491251c2897d9251d04301061065e2c23171f6a0")))
+          (commit (string-append "v" version))))
     (file-name (git-file-name "sbcl-alive-lsp" version))
     (sha256
-     (base32 "112zk8hkg71h7bbdmqfgxqblccb2bs8wcl6f7nrjjm1hy3cf1919"))))
+     (base32 "1dmgglrg7294vx8qacc5d2hkhfrids1iacihj2l8czrvwc3i19yz"))))
   (build-system asdf-build-system/sbcl)
   (inputs
-   (list
-    sbcl-usocket
-    sbcl-cl-json
-    sbcl-bordeaux-threads
-    sbcl-flexi-streams))
+   (list sbcl-usocket
+         sbcl-cl-json
+         sbcl-bordeaux-threads
+         sbcl-flexi-streams))
   (home-page "https://github.com/nobody-famous/alive-lsp")
-  (synopsis "Common Lisp LSP: Alive")
-  (description "This is the language server for Alive:
-  The Average Lisp VSCode Environment.")
+  (synopsis "Common Lisp Alive LSP")
+  (description "Language Server Protocol implementation for use with the
+    @url{https://github.com/nobody-famous/alive, Alive} Visual Studio Code
 extension")
   (license license:unlicense)))

 (define-public cl-alive-lsp
--
2.49.0
Message-ID: <87cyd8114t.fsf <at> gmail.com>




This bug report was last modified 14 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.