tigersoldier / company-lsp

Company completion backend for lsp-mode
GNU General Public License v3.0
251 stars 26 forks source link

Completion does not work on a digestif language server using Emacs with the lsp-mode package. #149

Open hongyi-zhao opened 3 years ago

hongyi-zhao commented 3 years ago

On Ubuntu 20.04, I try to test the Emacs with the lsp-mode package based setting according to the instruction here using the following steps:

  1. Install digestif according to the instruction here:
$ git clone https://github.com/astoff/digestif.git digestif.git
$ cd digestif.git/scripts
# Bootstrap digestif with the self-installing wrapper script.
$ ./digestif
# Place it in your $PATH
$ ln -sfr digestif ~/.local/bin
  1. Installation and setting of Emacs, auctex, lsp-mode, and relevant packages through straight:
    
    (straight-use-package
    `( auctex :type git :host nil :repo "https://git.savannah.gnu.org/git/auctex.git"
    :pre-build ,(pcase system-type
                (`berkeley-unix '("gmake"))
                (_ '(
                    ;("bash" "-c" "cd ~/.emacs.d/straight/repos/auctex")
                    ("./autogen.sh")
                    ("./configure")
                    ("make")
                    ("sudo" "make" "install"))))))

(load "auctex.el" nil t t) (load "preview-latex.el" nil t t) (setq TeX-auto-save t) (setq TeX-parse-self t) (setq-default TeX-master nil)

(use-package lsp-mode) (use-package company-lsp) (require 'company-lsp) (push 'company-lsp company-backends) (add-to-list 'company-lsp-filter-candidates '(digestif . nil))


Then I open some TeX document and still can't have the Digestif enabled. OTOH, I've successfully configured and tested `Emacs with the Eglot package` based approach as described [here](https://github.com/abo-abo/swiper/issues/2887#issuecomment-861534700).

Any hints for this problem will be highly appreciated.

Regards,
HY