Comments (15)
I can't reproduce this bug, @terlar. I installed company, turned on company-mode
, set company-show-numbers
to t
, and tried using company in the *scratch*
buffer. It worked fine, the completion did delete my initial input. Then I tried turning off my orderless config and using yours, and it still worked fine. Then I tried from emacs -q
, loading only company and orderless, and it still worked.
I'd love to help you out, but it's practically impossible without knowing how to trigger the error. I suggest you use the fantastic bug-hunter with the interactive option to figure out what part of your init file is relevant to this bug.
from orderless.
OK, now I insist you file a bug report with company.
I could reproduce the problem without orderless:
(setq company-backends '((company-capf company-dabbrev)))
(setq completion-styles '(partial-completion))
The built-in partial-completion
style matches, for example, u-p
to use-package
and this happens with company-dabbrev
on the list:
from orderless.
Thank you, did I steal this issue? The title applies, but I guess this was a different problem than @tpeacock19 had. So not sure if it should be closed.
from orderless.
No problem, This was a bit ago but I remember identifying that this only occurred in emacs-lisp-mode
and subsequently removing company-capf
from the backends when working in elisp. Further, I cant replicate it today even if I reintroduce company-capf
so I think its fine to close this out.
from orderless.
I didn't manage to get completions work with company
, all the candidates, includes whatever I wrote + the garbled matches.
Accepting candidate 9, results in (usepkguse-package)
Using the following config:
(setq orderless-matching-styles '(orderless-regexp orderless-flex))
from orderless.
I don't use company myself, but I'll try to install it when I get the chance and see if I can figure this out. I remember testing it a while ago when I wrote the section of the Readme on company, and I think it did work back then.
from orderless.
Well, the resolution of bug-hunter is an s-expression I believe. So if you use use-package
you'll probably have to bisect your company
config by hand.
from orderless.
Indeed! Running with emacs -Q
this didn't occur. Really curious what part is causing this, because I don't configure company
much. So must be some interference of some other package/settings...
So I did some further investigation and lo and behold and it turns out it was my company config. Here is a minimal reproduction via emacs -Q
:
(require 'orderless)
(require 'company)
(setq completion-styles '(orderless))
(setq orderless-matching-styles '(orderless-regexp orderless-flex))
(require 'use-package)
(setq company-backends
'((company-files
company-keywords
company-capf
company-dabbrev-code
company-dabbrev)))
(emacs-lisp-mode)
(company-mode 1)
Enter usepkg
Then it should look like this:
I guess the issue might be with grouped backends?
from orderless.
Oh, that's weird. And it's starting to sound like a company bug, not an orderless bug.
from orderless.
It seems to only when company-dabbrev
is on the list, if I remove that it works. Indeed, but without orderless
this behavior doesn't occur. I have also tried the company-fuzzy
(which also fuzzy matches) library and that also works without issues.
So unless I can find a way to reproduce this without orderless
, I am not entirely convinced, although it seems like it, but I also have no insight into the implementation of orderless if this could even be possible.
from orderless.
Even smaller repro:
(setq company-backends '((company-capf company-dabbrev)))
from orderless.
If you insist I will open an issue with company
instead.
from orderless.
I'm not insisting yet. Let me try (setq company-backends '((company-capf company-dabbrev)))
and see if I can figure it out.
from orderless.
That's right! Sorry, @tpeacock19.
from orderless.
I'm glad it seems to longer happen.
from orderless.
Related Issues (20)
- Release new version 0.8 on GNU ELPA HOT 7
- Completion variables recommended configuration HOT 3
- Orderless never returns a sole match for `switch-to-buffer` HOT 2
- Non-greedy match for orderless-flex? HOT 9
- Prescient defines a completion style
- How do I dispatch filtering on a suffix? HOT 3
- Ido or icomplete HOT 2
- Multiple matches, and/or over specifying candidates HOT 2
- I can't get the suggsted configuration for integration with Company to work. HOT 3
- Confusing highlighting when using `orderless-flex` style HOT 3
- Orderless with a single component HOT 3
- possible bug in completion style for repeated pattern HOT 12
- It doesn't seem to affect `C-x b` the same way as, e.g., `M-x` HOT 2
- Add simple affix dispatcher HOT 11
- I've been thinking about using it for Embark and maybe removing the `embark-define-keymap` macro in favor of `defvar-keymap`. HOT 1
- FEATURE REQUEST: Consider making your personal configuration the default (doc does not help get to that solution) HOT 8
- How to disable orderless for company or corfu HOT 8
- Get file basename? HOT 19
- Use company, orderless, company-fuzzy, auctex, and ispell all together. HOT 6
- Orderless doesn't work as desired. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orderless.