Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🖥️ Add example configurations for LSP servers #1

Open
TOTBWF opened this issue Jul 14, 2022 · 7 comments
Open

🖥️ Add example configurations for LSP servers #1

TOTBWF opened this issue Jul 14, 2022 · 7 comments
Labels
documentation Improvements or additions to documentation lsp
Milestone

Comments

@TOTBWF
Copy link
Collaborator

TOTBWF commented Jul 14, 2022

It would be a good idea to add some example configurations for various editors, so we could just copy+paste when using asai.lsp in other projects.

Unfortunately, the situation with lsp-mode is pretty grim; see emacs-lsp/lsp-mode#3625

@favonia favonia added this to the far away milestone Sep 27, 2023
@favonia favonia added the documentation Improvements or additions to documentation label Oct 7, 2023
@favonia
Copy link
Contributor

favonia commented Oct 7, 2023

Perhaps we (or I?) should spend a bit more time resolving this issue. 😅 @TOTBWF What's the current progress of fixing bugs in the cited issue?

@mikeshulman Is there a particular editor you want to try out first?

@TOTBWF
Copy link
Collaborator Author

TOTBWF commented Oct 7, 2023

I discussed the issue with the maintainers and it's a WONTFIX 😔 However, it looks like the emacs community has decided that https://github.com/joaotavora/eglot is the implementation of choice, and has upstreamed it into emacs proper.

It appears that they have an opt-in mode that does the right thing with UTF-16; not sure if UTF-8 is supported, or if they've implemented the position encoding handshake from LSP 3.17. I'll try and ask on IRC

@favonia
Copy link
Contributor

favonia commented Oct 7, 2023

@TOTBWF I see, but no, I don't think that's the main issue or difficulty here. There's no need to try to work around UTF-8/16 now---at least that's not the priority. The main issue here is the documentation. In @mikeshulman's case, I strongly suspect that the prototype only uses ASCII, so none of the encoding issues should matter.

@mikeshulman
Copy link
Collaborator

I don't use emojis, but I'm a big fan of unicode math symbols. In fact one of the reasons I picked fmlib_parse was that it seemed like the best lexer/parser combination for dealing with utf8. So no, I'm not using only ASCII.

I am also a dedicated Emacs user, but not particularly a fan of things that try to compile/typecheck my code while I'm writing it.

@favonia favonia changed the title [🖥️] Add example configurations for LSP servers 🖥️ Add example configurations for LSP servers Oct 8, 2023
@mikeshulman
Copy link
Collaborator

not particularly a fan of things that try to compile/typecheck my code while I'm writing it.

Maybe that's an exaggeration. I don't hugely mind the way tuareg highlights errors in my OCaml code in real-time, although I like that it doesn't do it until I save the file. In fact I would prefer to have a separate command to make it do that, so that if I'm making a big breaking change I can save while I'm partway through it even though what's currently in the file is not syntactically correct without causing huge amounts of the code to be highlighted. (Maybe there's a configuration option for that, I haven't found it but I haven't looked really hard.)

But I've had pretty unpleasant experiences with Lean. A lot of that is probably due to the typechecking not always being instantaneous (unlike with OCaml), so it's hard to tell whether the automatic highlighting is in sync with the text or not.

I'm not sure this is relevant at all to what we're talking about here though.

@favonia
Copy link
Contributor

favonia commented Oct 11, 2023

@mikeshulman The speed is indeed important, especially for auto-completion. So we were thinking about promoting the design of having a separate scope-checker to give quick feedback on whether there's a typo, etc. None of these ideas have been realized so I can't really make any useful comment. 😅

@favonia
Copy link
Contributor

favonia commented Oct 23, 2023

@TOTBWF I'm curious---is examples/stlc/asai-stlc-lsp.el still working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation lsp
Projects
None yet
Development

No branches or pull requests

3 participants