Emacs is not supported, but an unofficial method using the LSP server seems to work for Emacs users. Does this still work? The documentation says “only legacy v8.0.0
Reason/OCaml syntax support”, though I am completely new to this, coming from a ClojureScript background. Does this mean Emacs cannot be used at all with the instructions listed on the site?
I am using GitHub - jjlee/rescript-mode: A major mode for editing ReScript
rescript-mode
depends on LSP so I configurated it to the one installed in the VSCode ReScript extension:
(custom-set-variables
'(lsp-rescript-server-command
'("node" "/Users/xxx/.vscode/extensions/chenglou92.rescript-vscode-1.19.6/server/out/server.js" "--stdio")))
)
Seems to work fine.
2 Likes
I’m using ReScript with Emacs without any real issues. I just have to turn off inlayHints because they just generate LSP errors. Also, does anyone know how to get reanalyze to work with Emacs via LSP?
Reanalyze is integrated straight into the vscode extension and is not via the lsp at all today. But, there’s no reason it couldn’t be IIRC. Just a matter of moving it there, and all users can benefit instead of just vscode users.
I would love to see this! Kind of miss using reanalyze since it was put into rescript-vscode.