unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Milan Zamazal <pdm@zamazal.org>
To: Alessandro Bertulli <alessandro.bertulli96@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Editing Java (with LSP)
Date: Tue, 14 Jun 2022 21:13:34 +0200	[thread overview]
Message-ID: <87wndjys69.fsf@zamazal.org> (raw)
In-Reply-To: <87r13scjve.fsf@gmail.com> (Alessandro Bertulli's message of "Mon, 13 Jun 2022 23:35:41 +0200")

>>>>> "AB" == Alessandro Bertulli <alessandro.bertulli96@gmail.com> writes:

    AB> By the way, which system are you on? I'm currently using Arch
    AB> (non meme intended) and I suspect my system can be buggy by
    AB> misconfiguration.

I’m on NixOS but I don’t think it’s much important.  The distribution
provides Emacs and the rest (add-ons + jdtls) is fetched by Emacs itself.

    >> From time to time, I experience similar symptoms like those you
    >> describe.  In such a case, I delete ~/.emacs.d/.cache and
    >> ~/.emacs.d/eclipse.jdt.ls.  Then it fetches jdtls, reindexes the
    >> project and starts working fine again.

    AB> I figured out that, apparently, a simple M-x
    AB> lsp-workspace-restart is sufficient. Meaning that it seems that
    AB> it is the server that crashes, so restarting it solves the
    AB> problem. Of course, it is not normal it crashes so often, but
    AB> anyway.

If it crashes often, I’d try deleting the caches as suggested above.
It may or may not help but if it starts crashing for me then there is no
other help.

    AB> In case, I'll use IntelliJ, it'll simply means that Emacs is not
    AB> ready yet to be used for Java editing. Which I think it's a
    AB> shame, because I think it has the potentiality to do so.

Sure.  But while lsp-mode is a must, dap-mode is optional.  It’s OK to
run a standalone debugger, there is not that much need for integration
with Emacs there.  Of course, having everything in Emacs would be nice,
but I do Java programming only for living so I prefer getting it done
using what’s available at the moment.  I tried to look into dap-mode
briefly once or twice but it didn’t look like easy fixes.



  reply	other threads:[~2022-06-14 19:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-13 21:35 Editing Java (with LSP) Alessandro Bertulli
2022-06-14 19:13 ` Milan Zamazal [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-13 13:43 Alessandro Bertulli
2022-06-13 15:48 ` Filipp Gunbin
2022-06-13 21:53   ` Alessandro Bertulli
2022-06-14 19:12     ` Filipp Gunbin
2022-06-13 20:32 ` Milan Zamazal
2022-06-16  3:29 ` Pankaj Jangid
2022-06-16 13:34   ` Alessandro Bertulli
2022-06-17  3:27     ` Pankaj Jangid

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wndjys69.fsf@zamazal.org \
    --to=pdm@zamazal.org \
    --cc=alessandro.bertulli96@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).