syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.65k stars 4.89k forks source link

semantic layer plus auto-completion layer: "Nothing to complete" errors after spaces in elisp #9438

Closed braham-snyder closed 4 years ago

braham-snyder commented 7 years ago

Description

Relatively benign but very frequent error with semantic and auto-completion.

Reproduction guide

Observed behaviour:

Expected behaviour:

No error thrown.

Biggest issue is probably just that, unhandled, it makes toggle-debug-on-error quite unwieldy for other uses.

Possibly but not necessarily related: https://github.com/company-mode/company-mode/issues/614 https://github.com/abo-abo/lispy/issues/313

System Info

Backtrace

Debugger entered--Lisp error: (error "Nothing to complete")
  signal(error ("Nothing to complete"))
  error("Nothing to complete")
  semantic-analyze-possible-completions(nil)
  semantic-analyze-completion-at-point-function()
  completion--capf-wrapper(semantic-analyze-completion-at-point-function optimist)
  run-hook-wrapped(completion--capf-wrapper semantic-analyze-completion-at-point-function optimist)
  company--capf-data-real()
  company--capf-data()
  company-capf(prefix)
  company--begin-new()
  company--perform()
  company-auto-begin()
  company-idle-begin(#<buffer .spacemacs> #<window 3 on .spacemacs> 294 2032)
  apply(company-idle-begin (#<buffer .spacemacs> #<window 3 on .spacemacs> 294 2032))
  timer-event-handler([t 22930 29496 132020 nil company-idle-begin (#<buffer .spacemacs> #<window 3 on .spacemacs> 294 2032) nil 0])
CeleritasCelery commented 7 years ago

Can you replicate this with stock Emacs, company, and sematic?

braham-snyder commented 7 years ago

Can you replicate this with stock Emacs, company, and sematic?

I cannot. No error with:

  1. spacemacs/restart-stock-emacs-with-packages company,semantic
  2. M-x company-mode
  3. M-x semantic-mode
  4. Insert

Are you unable to replicate it with Spacemacs?

CeleritasCelery commented 7 years ago

No, I can't reproduce your error following the steps you outlined above. Perhaps reinstall the packages?

braham-snyder commented 7 years ago

this is what I meant by "fresh installation" (fish script -- incidentally, I just tried reopening with zsh as $SHELL just to see, but same deal):

function reinstall_and_open_fresh_spcm
  trash ~/fresh-spcm
  mkdir ~/fresh-spcm
  git clone https://github.com/syl20bnr/spacemacs.git ~/fresh-spcm/.emacs.d
  cd ~/fresh-spcm/.emacs.d
  git checkout develop
  env HOME=$HOME/fresh-spcm/ emacs
end
github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!