hare-ls

module
v0.0.0-...-ff9e4a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2024 License: MIT

README

[WIP] hare-ls is language server for Hare

hare-ls is a language server implementation in Go for Hare. It is a fork of https://git.sr.ht/~jfreymuth/hare-ls with bug fixes.

Debug

On panic the server should log traces to stderr. Also it has debug mode with logging of all GRPC requests and responses (very verbose!):

hare-ls -debug=true

IDE integrations

Follow instructions for your IDE. Examples

GNU/Emacs

It assumed you have installed lsp-mode. Hare support not included to lsp-mode you should add it manually:

	(add-to-list 'lsp-language-id-configuration '(hare-mode . "hare"))
	(lsp-register-client (make-lsp-client
			  :new-connection (lsp-stdio-connection "hare-ls")
			  ;; uncoment for debug mode and comment out line above ^^^
			  ;; :new-connection (lsp-stdio-connection '("hare-ls" "-debug=true"))
			  :activation-fn (lsp-activate-on "hare")
			  :server-id 'hare-ls))

Also setup hare-mode:

(use-package hare-mode
  :straight (:host sourcehut :type git :repo "nicferrier/hare-mode")

Status

This is a work in progress. Patches are welcome.

Features:

  • syntax error reporting
  • completions for declarations
  • hover
  • go to definition

Not sure about further plans yet. I need working language server with minimal set of features until Hare got fully working native implementation. Anyway report bugs I'll try to fix them.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL