From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.auctex.devel,gmane.emacs.help,gmane.emacs.auctex.general Subject: Re: Eglot Failed to completion for commands defined in specified loaded packages for auctex. Date: Mon, 21 Jun 2021 12:54:32 +0100 Message-ID: <87lf73e8lj.fsf@tcd.ie> References: <87lf7aflg7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8230"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: auctex-devel@gnu.org, help-gnu-emacs , auctex@gnu.org To: Tassilo Horn Original-X-From: auctex-devel-bounces+gead-auctex-devel=m.gmane-mx.org@gnu.org Mon Jun 21 13:54:57 2021 Return-path: Envelope-to: gead-auctex-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvIW1-0001uj-Ii for gead-auctex-devel@m.gmane-mx.org; Mon, 21 Jun 2021 13:54:57 +0200 Original-Received: from localhost ([::1]:42186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvIW0-0004Wj-Gk for gead-auctex-devel@m.gmane-mx.org; Mon, 21 Jun 2021 07:54:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvIVs-0004S2-Rs for auctex-devel@gnu.org; Mon, 21 Jun 2021 07:54:49 -0400 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:33324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvIVj-0006PO-6f for auctex-devel@gnu.org; Mon, 21 Jun 2021 07:54:48 -0400 Original-Received: by mail-wr1-x434.google.com with SMTP id d11so16945463wrm.0 for ; Mon, 21 Jun 2021 04:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=LHrnkpbaBqBsFYzIdvCbkZIJK8oBlVY0b+vh10Xs6m8=; b=Ga2Nn/Lgy2Ab1xL/VR2q9uKdaU09ARaUc8gvODwUfnCzFvWqM7/Ak/GvY90w4l+Mhl b5LeCUkyfOnm6myMYUgubp6SnSvb/9W19wJTlmlISpFeOg9eeypK/aJGwBtmpLyEheqG vq5NJPRBlyXUVJs93gISGdGQVEUrrA+tWH5bSNFy6i0c+ABAM3yTmroGT0w8bqUBPE7L PP8qMVBUfuU0/BAUTIn64sHLwck9aa+nA6t6SKrPK85VzDSHsyFcQo05fKaJDOjQPfhK GchBIhfvG3BkJNqXucWYPw82LaQtWR/Bhvs8DIPgT0oxRfTac40p/GouADbent1qPwXB 4pSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=LHrnkpbaBqBsFYzIdvCbkZIJK8oBlVY0b+vh10Xs6m8=; b=hgpDV8c6flyLyjf4goEywWWAKDt/gOFWEOGXD+9RCACXtW0/3Jt0WLBOAp7/JzEROu hFGBm5UPptDaQqdcx/40IlRrBXWjvcBjDzLMACxihULgcLD1IhlKsikJShuoFt8dVfQI M1i1t5NVJUDDK779LVbkiOp8tiD6AeG4WUc0KXrnrCZCRGg83NnZVfT/2cpkCb8FCsG8 TbMfBEXVFAsQlIeXvhsC61uNOwRyCUXg2u6pzWN/3z1WkoabcAoZ7zs4y6kN78FUAvO9 4Uhc9UFPru25/HNPqDDbPacWqASDbYfMMXB+KEmzosRv+nQsxOMt/l7ZXoI/hzhuaLNg W54w== X-Gm-Message-State: AOAM53193hd0wrfYZKWMjNsapBeHjW5zG2UkjYTmEXkj+f0odEKao6Eu PBdkaRlkZzHv+3wzAIakCr4Ufw== X-Google-Smtp-Source: ABdhPJzT2X5nfbBHdj4JE7/1dAMfsso/ZxZXf64w43QAQDuugfSY+9m1QRLJ9bCIrYWZQ/hzA3LQVA== X-Received: by 2002:a5d:48c6:: with SMTP id p6mr27911529wrs.45.1624276474680; Mon, 21 Jun 2021 04:54:34 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id y20sm4105744wmi.25.2021.06.21.04.54.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 04:54:34 -0700 (PDT) In-Reply-To: <87lf7aflg7.fsf@gnu.org> (Tassilo Horn's message of "Wed, 16 Jun 2021 06:59:35 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=contovob@tcd.ie; helo=mail-wr1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: auctex-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion list for AUCTeX developers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: auctex-devel-bounces+gead-auctex-devel=m.gmane-mx.org@gnu.org Original-Sender: "auctex-devel" Xref: news.gmane.io gmane.emacs.auctex.devel:6281 gmane.emacs.help:131138 gmane.emacs.auctex.general:7515 Archived-At: Tassilo Horn writes: > Hongyi Zhao writes: > >> Then I open the following tex document in Emacs >> >> ``` >> \documentclass{paper} >> \usepackage{braket} >> \begin{document} >> Some testing comes here. >> \end{document} >> ``` >> >> and enable Eglot (M-x eglot), but I find that Eglot Failed to do the >> completion for commands defined in specified loaded packages for >> auctex. But TeXstudio doesn't have this problem. I'm guessing that's because your LSP server isn't configured or able to do that. > Do you know what Eglot is? It's an LSP (Language Server Protocol) > client which requests completions, documentation, etc. from an LSP > server. I doubt there is a LaTeX LSP server. I successfully use Eglot with Digestif[1]. I would try TexLab[2] that Joost mentioned as well but it's not as easy for me to compile it given the version of Rust on Debian. [1]: https://github.com/astoff/digestif [2]: https://github.com/latex-lsp/texlab > You can use company-mode with capf (and dabbrev) backend with auctex to > get completion popups, see this screenshot: > > That should work out of the box with no additional packages except for > company and then enabling `company-mode' in your LaTeX buffer. Eglot also works OOTB, except for one minor detail: I have to remap AUCTeX's binding of TeX-complete-symbol back to the default completion-at-point, which Eglot hooks into. -- Basil