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

Done: Danny Milosavljevic <dannym <at> friendly-machines.com>

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Danny Milosavljevic <dannym <at> friendly-machines.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#77453: closed ([PATCH] gnu: Add sbcl-alive-lsp.)
Date: Thu, 05 Jun 2025 23:58:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 06 Jun 2025 01:57:47 +0200
with message-id <87o6v13fno.fsf <at> friendly-machines.com>
and subject line Re: [bug#77453] [PATCH] gnu: sbcl-alive-lsp [fixes from @sharlatan comments]
has caused the debbugs.gnu.org bug report #77453,
regarding [PATCH] gnu: Add sbcl-alive-lsp.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
77453: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77453
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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>


[Message part 3 (message/rfc822, inline)]
From: Danny Milosavljevic <dannym <at> friendly-machines.com>
To: Grigory Shepelev <shegeley <at> gmail.com>
Cc: sharlatanus <at> gmail.com, 77453-done <at> debbugs.gnu.org
Subject: Re: [bug#77453] [PATCH] gnu: sbcl-alive-lsp [fixes from @sharlatan
 comments]
Date: Fri, 06 Jun 2025 01:57:47 +0200
Thanks!

Pushed to guix master as commit 776e00a5c696fb88c8485445b6b5d229927250c3 with slight changes to the description.


This bug report was last modified 12 days ago.

Previous Next


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