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

idris2-complete-at-point throws error #27

Open
xavierzwirtz opened this issue Jul 27, 2022 · 2 comments
Open

idris2-complete-at-point throws error #27

xavierzwirtz opened this issue Jul 27, 2022 · 2 comments

Comments

@xavierzwirtz
Copy link

idris2-complete-at-point bubbles up errors from the idris repl. This causes issues when you are using company-mode which is very happy go lucky about calling the completion function.

Error from company mode:

Company: backend company-capf error "I can't make sense of the completion task:
   (synchronous Idris2 evaluation failed)" with args (prefix)

You can get this without using company-mode by calling completion-at-point on an empty line.

@ska80
Copy link
Member

ska80 commented Aug 10, 2022

Try to disable company-mode specifically for idris2-mode in your ~/.emacs/init.el:

(setq company-global-modes '(not idris2-mode idris2-repl-mode))

@xavierzwirtz
Copy link
Author

I have already done that. It feels like idiris2-complete-at-point should be changed to return nil instead of throwing an idris2 evaluation error.

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

2 participants