home.social

#eglot — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #eglot, aggregated by home.social.

fetched live
  1. Programming language support in is much enhanced now that brings robust support for (Language Server Protocol). Eglot is established and mature, and opens up the wealth of sophisticated language support in that ecosystem.

    @i_dabble For , you should start with emacs-lsp.github.io/lsp-mode/p

    and for how to get Eglot working, start with the Emacs documentation: gnu.org/software/emacs/manual/

  2. #Emacs #Eglot

    My current version is 1.23.xxx, list-package shows a 1.24. Nice.

    Yet: any idea how to get any information about what is new? The github repo now seems to be really outdated. Is it really like
    % git clone ...savannah...emacs...
    git log -- lisp/progmodes/eglot.el

    Or am I missing something?

  3. #Emacs #Eglot tells me

    [eglot] (warning) Reached ‘eglot-max-file-watches’ limit of 10000, not watching some directories

    Yet:
    - (message "%S" file-notify-descriptors) spits out 5 entries
    - The one project on which I use eglot has 3500 files and directories in total

    Ideas? Hints on where I could look what it thinks it is watching?

  4. @PvN
    > config for working with

    * for seamless project-specific configuration of basic text editing rules, that every modern text editor can obey.
    * The default 'python-mode' is fine.
    * for enhances that. Follow Eglot documentation to set up for Python.
    * for excellent Git porcelain.
    * 'pyvenv-mode' to detect and activate Python virtualenv in a project.

  5. Anyone using #Emacs, #Eglot and #Typescript?

    How do you like the code completion? Afaict they come 100% from the #LSP server, but somehow they can read my mind and put the one I need absolutely always last.😩

    Is that just me?

    In the example, the last is the good one. I have no freaking idea where the other shit comes from with the trigger characters sprinkled all around. WTF:

  6. #Jarchive teaches emacs how to open project dependencies that reside inside jar files. #Jarchive will open jar dependencies provided to #Eglot by lsp servers. This should work out of the box with #Emacs 29 and recent Eglot versions.

    git.sr.ht/~dannyfreeman/jarchi

  7. TIL about `eglot-extend-to-xref` which solves a long standing woe I had with eglot/LSPs. When jumping to a dependency by default the buffer is not under the same LSP server so the dependency doesn't have jump-to-definition enabled. By enabling `eglot-extend-to-xref` the dependencies are also covered by the same #eglot session so jump to definition works! #emacs

  8. I have just released version 1.0.0 of ESR: an R tree sitter mode for #emacs

    It is the first version independent of #ESS although tree sitter can be paired with ESS.

    ESR's interaction mode can use comint or #vterm The second one plays well with #radian Coding tools for now are supported by R's package #languageserver and can be connected with #eglot

    A big step for the #rstats users of Emacs

    codeberg.org/teoten/esr

  9. Spent the morning replacing lsp-mode with Eglot due to slop code in the former.

    Seems to have gone smoothly, I'm really enjoying the snappiness of it, using lsp-mode by comparison is like wading through molasses.

    Am using the following:

    * java-language-server as the LSP language server, which is blazingly fast
    * company-mode for completions
    * breadcrumb-mode for headerbar navigation

    Things I'm missing still (suggestions welcome!):

    * auto-import (this may be a limitation of the LSP impl?)
    * a context menu for jumping to declarations at point
    * flymake error/warning/info summary in dired mode

    #Emacs #Eglot #LspMode #Java

  10. #Emacs community. Anyone proficient in combining #company_mode, #Eglot and #yasnippet. I have a yasnippet defined and it expands even without a valid prefix, just after a space character.

    My company backends are, according to company-diag:

    company-backends: ((company-capf :with company-yasnippet))

    More details: emacs.stackexchange.com/q/8554

  11. @veit

    Anyone tried this with #emacs #eglot? Will try it soon.

  12. #Swiftlang LSP server renaming works much more reliably than #Xcode's.

    (Using #Emacs with #Eglot btw)

  13. I was fighting with #lsp-mode in #emacs to get it to use my system #clangd and failed. But I discovered #eglot-mode which picked it up fine and I much prefer the #ui choices they have made. How long has it been in core Emacs?

  14. A minimal, declarative setup for productive Rust 🦀 hacking on Emacs + Guix

    jointhefreeworld.org/blog/arti

    I noticed there was a blatant lack of resources and documentation on this particular setup.

    With a tiny manifest and a small Emacs configuration, you get a powerful, reproducible, elegant Rust development environment.

    #rust #guix #emacs #dev #manifest #shell #development #environment #ide #clippy #lsp #gnu #reproducible #direnv #eglot

  15. Never start Emacs Eglot for a Java project without a .git/ directory.

    This drove me nuts now a second time. Without the .git/ directory, eglot doesn't know where the project's root directory is. Eclipse-jdtls goes all stupid, ignores .classpath, .project and all the package names are marked as wrong.

    There are surely ways to tell Eglot where the project root is, but in the end there will be git anyway. Just don't to start your project without. 😜

    #eglot #emacs #jdtls #eclipse_jdtls #git

  16. For ease of adoption, #lsp. For appearance aesthetic, #eglot. I guess I'm in a prolonged bake-off in #Emacs to see which one works better for me. Now if only I would remember I also have #yasnippet at my disposal, I might save a few hundred keystrokes. Not that it matters on this 10-year-old #mechanicalkeyboard. What color switches you ask? 📢 BUCKLING SPRING COLOR SWITCHES. 🔇

  17. Eglot and eclipse-jdtls, a dream team.

    Jdtls sends a non-standard message "language/eventNotification ... Preview features enabled at an invalid source release level 21", non-standard insofar as it is not mentioned in the LSP-specification: microsoft.github.io/language-s

    At least Eglot lists the message in its message buffer.

    Even me reading the message did not reckon it means: WE'RE ALL SCREWED UP, but keep running and pretend to be OK.

    #eclipse_jdtls #jdtls #eclipse #emacs #eglot

  18. What's not to like about eclipse-jdtls. It works just great with Emacs Eglot, except when it does not:

    "Workspace restored, but some problems occurred.\nnull"

    Result: the server does not provide any errors.

    What can be more infuriating than no error message at all? An error message like this: "na na nana na, I know there is a problem but I won't tell you!"

    #emacs #eglot #eclipsejdtls #languageserver

  19. I've been using #Emacs for about 25 years now, and it keeps improving. Thanks to #Eglot, I'm able to make use of nice modern tools such as rust-analyzer and other #LSP servers.

    I recently changed jobs, and we now use a big monorepo where the Rust crates are nested 3-4 leves deep inside the working directory. As far as I can tell, this causes trouble with the rust-analyzer auto-discovery and I get a "Failed to discover workspace" error. See github.com/emacs-rustic/rustic for a work-around!

  20. Pulindo a configuración do meu Emacs como "Python IDE", ainda non queda fina de todo.
    Tamén probando BeanCount, para contabilidade en texto plano.
    #emacs #emacsElpaca #eglot #tree-sitter #BeanCount

    codeberg.org/salvari/emacs30_e