Open kiryph opened 1 year ago
Apparently, you have to compile asymptote yourself. The full version info of asymptote gives me for asy
from MacTex 2023 and Homebrew:
❯ which -a asy
/usr/local/bin/asy
/Library/TeX/texbin/asy
❯ asy --version
Asymptote version 2.85 [(C) 2004 Andy Hammerlindl, John C. Bowman, Tom Prince]
ENABLED OPTIONS:
V3D 3D vector graphics output
WebGL 3D HTML rendering
OpenGL 3D OpenGL rendering
GSL GNU Scientific Library (special functions)
FFTW3 Fast Fourier transforms
XDR External Data Representation (portable binary file format for V3D)
CURL URL support
Readline Interactive history and editing
GC Boehm garbage collector
threads Render OpenGL in separate thread
DISABLED OPTIONS:
SSBO GLSL shader storage buffer objects
Eigen Eigenvalue library
LSP Language Server Protocol
Sigsegv Distinguish stack overflows from segmentation faults
See LSP entry under DISABLED OPTIONS.
I am surprised that I can invoke asy -lsp
without an error which clearly says that LSP is not enabled.
Unfortunately, there are no easy to follow compilation instructions for asymptote on macOS with LSP enabled, e.g.
https://github.com/vectorgraphics/asymptote/issues/304
https://formulae.brew.sh/formula/asymptote
MacPorts also do not offer a variant with LSP enabled: https://ports.macports.org/port/asymptote/
In commit 456ae99203a291f9c50128ec55965ad948e11971, I have now removed the lsp option when LSP support is disabled, so that --lsp returns an error (and -lsp is then parsed as -l -s -p when LSP support is disabled).
I don't think anyone has got LSP working yet under MacOS.
As a first step, to compile with --lsp under MacOS, you first need to fix the names of these boost libraries:
ln -s /opt/local/lib/libboost_thread-mt.dylib /opt/local/lib/libboost_thread.dylib ln -s /opt/local/lib/libboost_filesystem-mt.dylib /opt/local/lib/libboost_filesystem.dylib
and then run configure and make again.
I have followed
:h lspconfig-new
of https://github.com/neovim/nvim-lspconfig for Neovim.https://github.com/neovim/nvim-lspconfig/blob/8cbfc30c4b238cc2465ff256803f7747376f046a/doc/lspconfig.txt#L324-L350
to have in my
init.lua
using Neovim 0.9:But when I open an asy file, no LSP client gets attached to the buffer
and I see following errors in the
:LspLog
I am not sure who to ask.
My Environment