Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

company-mode, Search failed: "\<\w+"" with args (prefix) #33

Open
duianto opened this issue Mar 11, 2021 · 0 comments
Open

company-mode, Search failed: "\<\w+"" with args (prefix) #33

duianto opened this issue Mar 11, 2021 · 0 comments

Comments

@duianto
Copy link
Contributor

duianto commented Mar 11, 2021

When company-mode is enabled.
Typing a semicolon in an empty ahk-mode buffer shows:

Company: An error occurred in auto-begin
Company: backend company-capf error "Search failed: "<\w+"" with args (prefix)

Reproduction steps

With these two packages installed:
ahk-mode
company-mode (https://github.com/company-mode/company-mode)

  • Open a new buffer: C-x b test RET
  • Enable the two packages:
  • M-x ahk-mode RET
  • M-x company-mode RET
  • Type a semicolon: ;
    the following lines appear in the messages buffer (C-h e):

Company: An error occurred in auto-begin
Company: backend company-capf error "Search failed: "\<\w+"" with args (prefix)

  • Enable debug-on-error from the Eval prompt:
    S-M-; (setq debug-on-error t) RET

  • Erase the semicolon: <backspace>

  • Type a semicolon: ;
    A *Backtrace* buffer opens:

Debugger entered--Lisp error: (search-failed "\<\w+")
re-search-backward("\<\w+")
ahk-completion-at-point()
completion--capf-wrapper(ahk-completion-at-point optimist)
run-hook-wrapped(completion--capf-wrapper ahk-completion-at-point optimist)
company--capf-data-real()
company--capf-data()
company-capf(prefix)
apply(company-capf prefix)
company-call-backend-raw(prefix)
apply(company-call-backend-raw prefix)
company--force-sync(company-call-backend-raw (prefix) company-capf)
company-call-backend(prefix)
company--begin-new()
company--perform()
company-auto-begin()
company-idle-begin(# #<window 3 on test> 8 2)
apply(company-idle-begin (# #<window 3 on test> 8 2))
timer-event-handler([t 24650 31286 705585 nil company-idle-begin (# #<window 3 on test> 8 2) nil 0])

System info

ahk-mode version 1.5.6
Company version: 0.9.13
GNU Emacs 27.1 (build 1, x86_64-w64-mingw32) of 2020-08-21
Windows 10 Version 2004
duianto referenced this issue in syl20bnr/spacemacs Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant