Eclipse Fun:

1. Language server jdtls code formatting: needs XML file exported from eclipse.
2. Command line JavaCodeFormatter (https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-231.htm) wants a properties file for -config

I used

xq <eclipse-formatter.xml | jq -Mr '.profiles.profile.setting[] | ."@id" + "=" + ."@value"' >config.props

and all worked but the indent with spaces. It used tabs. Reason:

- XML export uses value="SPACE"
- the property file needs ...=space

🤦‍♀️

#java #eclipsejdtls #codeFormatter #languageServer

Help - Eclipse Platform

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

If you are using Emacs with Eglot and a language server, you may be interested in eglot-cthier.el (formally eglot-hierarchy.el) which alles to show and navigate the call hierarchy of an item.

After feedback here, on the mailing list and on codeberg, an improved version is ready for testing.

I tested it with eclipse-jdtls and tsc.

Feedback welcome.

#Emacs #Eglot #LSP #language_server #LanguageServerProtocol #eclipsejdtls #tsc #Typescript
#codeberg

https://codeberg.org/harald/eglot-supplements#call-hierarchy

eglot-supplements

Supplements for Emacs Eglot.

Codeberg.org

If you are using Emacs with Eglot and a language server, you may be interested in my new package eglot-hierarchy.el which alles to show and navigate the call hierarchy of an item.

I tested it with eclipse-jdtls and tsc.

Feedback welcome.

#Emacs #Eglot #LSP #language_server #LanguageServerProtocol #eclipsejdtls #tsc #Typescript

https://codeberg.org/harald/eglot-supplements#call-hierarchy

eglot-supplements

Supplements for Emacs Eglot.

Codeberg.org