doomemacs / doomemacs

An Emacs framework for the stubborn martian hacker
MIT License
19.6k stars 3.07k forks source link

Missing Snippets in Company-Autocompletion for go-mode with lsp #3638

Closed azerbe closed 3 years ago

azerbe commented 4 years ago

What did you expect to happen? When I am activating the packages in Emacs 27 and 28 (emacs-plus, clean install)

with the configuration

(setq company-idle-delay 0)
(setq company-minimum-prefix-length 1)

(setq-hook! 'go-mode-local-vars-hook
  company-backends '((company-capf :with company-yasnippet)))

I expect to see snippets in the autocomplete popup.

What actually happened? I see code-completion and I can expand snippets, but they wont show up in the autocomplete popup.

Steps to reproduce:

  1. Install emacs-plus through brew (Version 27 with --HEAD or Version 28)
  2. Activate Packages in init.el
  3. Run doom sync
  4. Open a go project and start typing, e.g. ife for iferr

System information:

``` emacs version 28.0.50 features JPEG TIFF GIF PNG RSVG IMAGEMAGICK GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS XWIDGETS JSON PDUMPER LCMS2 build Jul 25, 2020 buildopts (--disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus@28/28.0.50/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus@28/28.0.50 --with-xml2 --with-gnutls --without-dbus --with-imagemagick --with-json --with-modules --with-rsvg --with-xwidgets --with-ns --disable-ns-self-contained) windowsys ns daemonp server-running doom version 2.0.9 build grafted, HEAD -> develop, origin/develop, origin/HEAD aac73f4 2020-07-24 02:22:25 -0400 dir ~/dotfiles/doom/.doom.d/ system type darwin config x86_64-apple-darwin19.5.0 shell /bin/zsh uname Darwin 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64 path (~/.jenv/shims ~/.jenv/bin ~/.local/bin ~/.rbenv/shims ~/.emacs.d/bin /Library/TeX/texbin/ ~/Code/confluent-1.0.1/bin /usr/local/opt/curl-openssl/bin /usr/local/opt/gnu-getopt/bin /usr/local/opt/gnu-sed/libexec/gnubin /usr/local/opt/coreutils/libexec/gnubin /usr/local/sbin ~/bin /usr/local/bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /Library/TeX/texbin /usr/local/MacGPG2/bin /opt/X11/bin /Library/Apple/usr/bin /usr/local/opt/sqlite/bin /Applications/kitty.app/Contents/MacOS ~/go/bin /usr/local/opt/fzf/bin /usr/local/Cellar/emacs-plus@28/28.0.50/libexec/emacs/28.0.50/x86_64-apple-darwin19.5.0/) config envfile envvar-file elc-files 0 modules (:completion (company +childframe) ivy :ui doom doom-dashboard doom-quit hl-todo modeline ophints (popup +defaults) pretty-code treemacs vc-gutter vi-tilde-fringe (window-select +numbers) workspaces :editor (evil +everywhere) file-templates fold (format +onsave) snippets :emacs (dired +ranger +icons) electric undo vc :checkers syntax spell grammar :tools docker (eval +overlay) (lookup +docsets +xwidget) lsp macos magit make :lang data emacs-lisp (go +lsp) json (latex +pdf-tools) markdown (org +dragndrop +pandoc +present +brain +roam) sh web yaml :config literate (default +bindings +smartparens)) packages (n/a) unpin (n/a) elpa (n/a) ```
github-actions[bot] commented 3 years ago

This issue has been automatically marked stale because of a lack of recent activity. If this issue is still valid, reply to it or remove the label or it will be closed in 7 days.