Lisp的语言服务LSP,VSCode的插件Alive所需要的lisp软件包,可以用quicklisp安装
立即下载
资源介绍:
https://github.com/nobody-famous/alive-lsp
采用git archive生成,时间2024-07-18 17:30
Alive Language Server
=====================
This is the language server for [Alive: The Average Lisp VSCode Environment](https://github.com/nobody-famous/alive).
## Running the server
For newcomers it could be difficult to start with Common LISP specially if the tech stack is not known yet. These instructions helps to have the server up and running as easy as possible. Steps are:
1. Install your LISP Implementation
2. Install a library/package manager
3. Clone this repository
4. Load the `alive-lsp` project and start the server
### Install your LISP Implementation
Here let's assume we install [sbcl](https://www.sbcl.org/)
```bash
# debian
apt-get install sbcl
# macos
brew install sbcl
```
### Install a library/package manager
Here let's assume we use [quicklisp](https://www.quicklisp.org/beta/)
```bash
curl -O https://beta.quicklisp.org/quicklisp.lisp
curl -O https://beta.quicklisp.org/quicklisp.lisp.asc
gpg --verify quicklisp.lisp.asc quicklisp.lisp
sbcl --load quicklisp.lisp
# ....
* (quicklisp-quickstart:install)
# it is also advisable to:
* (ql:add-to-init-file)
```
### Clone this repository
Previous step should have created a directory in your home directory: `~/quicklisp`, unless you decided to install it in another directory
```
(quicklisp-quickstart:install :path "~/.quicklisp")
```
just keep in mind the directory, let's called here `$QUICKLISP_HOME`. Let's clone this repository in `$QUICKLISP_HOME/local-projects`, so that it will be discovered automatically by Quicklisp when loading the project:
```bash
git clone git@github.com:nobody-famous/alive-lsp.git $QUICKLISP_HOME/local-projects/alive-lsp
```
### Load the `alive-lsp` project and start the server
```bash
sbcl
This is SBCL 2.2.11, an implementation of ANSI Common Lisp.
More information about SBCL is available at .
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* (ql:quickload "alive-lsp")
To load "alive-lsp":
Load 1 ASDF system:
alive-lsp
; Loading "alive-lsp"
.
("alive-lsp")
* (alive/server::start :port 8006)
#
```
Your language server works! You can stop it now (Ctrl + C) and proceed to properly configure you Alive Extension in vscode:
```json
{
"alive.lsp.startCommand": [
"sbcl",
"--eval",
"(require :asdf)",
"--eval",
"(asdf:load-system :alive-lsp)",
"--eval",
"(alive/server:start)"
]
}
```
note that `alive.lsp.startCommand` could also be the one used before in the REPL session, something like:
```json
{
"alive.lsp.remote.port": "8006",
"alive.lsp.startCommand": [
"sbcl",
"--noinform",
"--eval",
"ql:quickload \"alive-lsp\")",
"--eval",
"(alive/server::start :port 8006)"
]
}
```
just be sure to also configure the port if you specify one on the command for starting the server.
## Using the server outside of vscode
Take a look at thread [#31](https://github.com/nobody-famous/alive-lsp/issues/31)
## Developing Alive-lsp Code
If you are interesting in making changes to Alive-lsp you should take a look at the [Development Notes](README-dev.md).
资源文件列表:
alive-lsp-git-archive-202407181730.zip 大约有170个文件