Closed YumiSuki closed 4 years ago
Hi @YumiSuki , the error should be fixed in https://github.com/sebastiencs/company-box/commit/2b76c496e8485367eb2d758a105f5aa54becb8db.
You can customize faces by running:
M-x customize-group company-box
and M-x customize-group company-box-doc
Hi @sebastiencs,
I have just found out why when i enable company-box mode, company mode dialog just dim out like in the second picture above. I think this package is conflicted with dimmer mode i am using. After disable dimmer mode, company mode dialog shows list of candidates like in the first picture but candidate detail (on the right) still dim out. I am not sure what is going on. I have disabled all the package and configuration and it still doesn't work. Would you check this out?
By the way, I could customize list of candidates background and foreground but not sure how to customize the detail one. I have check company-box-doc but there is no customization for its background and foreground.
same problem here:
- "GNU Emacs 26.3 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)\n of 2020-05-19"
- latest version of company box
I'm also having this issue where company-box-doc menus are unreadable with a bright yellow (#FEFA52) background and a white foreground. I'm not sure which variable can be used to customize this, but I'm certain that this issue is originating from company-box and not company-mode or Emacs defaults.
The background is configured with the face company-box-background
Is this face modified/set in your configuration ?
M-x customize-face company-box-background
Thanks! I was able to configure it in my init.el
with (set-face-background 'company-box-background "#555555")
do you use dimmer-mode?
If anyone have blurred text problem like this (blurred text):
Check if you have dimmer-mode
installed. If so, then you can add " *company-box-"
to your dimmer-exclusion-regexp-list
or you can add (dimmer-configure-company-box)
function to your config. Read more in dimmer.el README.
Thanks @azzamsa, this is now done by company-box with https://github.com/sebastiencs/company-box/commit/3494864546a390dba161e5834ccb210cea83db81. So the user doesn't need to do any configuration.
Let me know if you think this should stay an explicit user config instead.
Closing. @YumiSuki Feel free to reopen if you still have issues
Thank you for your hard work everyone! I have just update everything today and retried the solution and got some error with the scroll bar. It become so large than usual when company-box is enabled. Please check the image below, one is when company-box is not yet enabled, and another is enabled.
company-box version: 20200823.1712
@YumiSuki Can you please try https://github.com/sebastiencs/company-box/commit/396129e5ea26460c8d9970f0537d4181c6ed7c29 and add to your config:
(setq company-box-debug-scrollbar t)
And post the logs in you *messages*
buffer here
Here is the output I got, please check:
Loading /home/yourpc/.emacs.d/init/init-use-package.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-gc.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-benchmark.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-general-config.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-backup-config.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-recentf.el (source)...
Loading /home/yourpc/.emacs.d/.appdata/.recentf...done
Loading /home/yourpc/.emacs.d/init/init-recentf.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-savehist.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-saveplace.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-evil.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-magit.el (source)...
magit-todos: Not overriding bind of "jT" in ‘magit-status-mode-map’.
Loading /home/yourpc/.emacs.d/init/init-magit.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-git-gutter-plus.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-diff-hl.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-git-timemachine.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-elfeed.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-ws-butler.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-restart-emacs.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-browse-kill-ring.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-ag.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-aggressive-indent.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-avy.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-ace-window.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-ivy.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-projectile.el (source)...
ad-handle-definition: ‘ibuffer-do-replace-regexp’ got redefined
Loading /home/yourpc/.emacs.d/init/init-projectile.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-move-dup.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-which-key.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-symbol-overlay.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-multiple-cursor.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-expand-region.el (source)...
ad-handle-definition: ‘er/expand-region’ got redefined
Loading /home/yourpc/.emacs.d/init/init-expand-region.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-dired.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-default-encode.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-smart-parent.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-parent-mode.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-pretty-symbol.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-beacon.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-hl-todo.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-gold-ratio.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-telephone-line.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-tramp.el (source)...
Waiting for git... [2 times]
Loading /home/yourpc/.emacs.d/init/init-tramp.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-emmet-mode.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-npm-mode.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-dumb-jump.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-flycheck.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-ielm.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-org-mode.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-org-bullet.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-java-mode.el (source)...
[yas] Prepared just-in-time loading of snippets (but no snippets found).
ad-handle-definition: ‘lsp’ got redefined
Loading /home/yourpc/.emacs.d/init/init-java-mode.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-company-mode.el (source)...
ad-handle-definition: ‘find-tag-regexp’ got redefined
Loading /home/yourpc/.emacs.d/init/init-company-mode.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-math-symbol.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-auto-package-update.el (source)...done
Loading /home/yourpc/.emacs.d/init/init-focus-emacs-frame.el (source)...done
Turning on magit-auto-revert-mode...done
Company backend ’company-lsp’ could not be initialized:
Symbol’s function definition is void: company-lsp
Loading /home/yourpc/.emacs.d/.appdata/.company-statistics-cache.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
[SCROLL] SELECTION=0 BUFFER= *company-box-58720430-scrollbar* H-FRAME=340 N-ELEMENTS=100 PERCENT=0.0 PERCENT-DISPLAY=0.2 SCROLLBAR-PIXEL=68.0 HEIGHT=SCROLLBAR=4.0 BLANK-PIXELS=0.0 HEIGHT-BLANK=0.0 FRAME-CHAR-HEIGHT=17 FRAME-CHAR-HEIGHT-NO-FRAME=20 FRAME=#<frame 0x561678075c10> MUL=1700
[CHANGES] CURRENT-BUFFER= *company-box-58720430-scrollbar* MIN-WIDTH=2 SAFE-MIN-WIDTH=2 MIN-SIZE=2 MIN-SIZE-IGNORE=2
[CHANGES] MIN CURRENT-SIZE=2 WIN-MIN-SIZE=2 WIN-PARAMS=((quit-restore window window #<window 6 on *company-box-58720430*> *company-box-58720430-scrollbar*) (window-slot . 0) (window-side . right)) FRAME-PARAMS=((parent-id . 58720430) (explicit-name . t) (display . :0) (icon-name) (outer-window-id . 58720724) (window-id . 58720728) (top . 17) (left . 34) (buried-buffer-list) (buffer-list *scratch*) (unsplittable) (modeline . t) (width . 60) (company-box-scrollbar . *company-box-58720430-scrollbar*) (company-box-buffer-origin . *scratch*) (company-box-window-origin . #<window 3 on *scratch*>) (name . ) (desktop-dont-save . t) (company-box-buffer . *company-box-58720430*) (cursor-color . yellow1) (background-mode . dark) (display-type . color) (default-minibuffer-frame . #<frame *scratch* - 0x561670ba7f00>) (drag-internal-border . t) (no-other-frame . t) (mouse-wheel-frame) (z-group) (skip-taskbar) (visibility . t) (fullscreen . fullboth) (no-accept-focus . t) (no-focus-on-map . t) (alpha) (scroll-bar-height . 16) (scroll-bar-width . 16) (cursor-type) (auto-lower) (auto-raise) (icon-type . t) (inhibit-double-buffering) (tool-bar-position . top) (wait-for-wm . t) (title) (buffer-predicate) (tool-bar-lines . 0) (height . 20) (tab-bar-lines . 0) (menu-bar-lines . 0) (min-height . 0) (min-width . 0) (scroll-bar-background . #eff0f1) (scroll-bar-foreground . #eff0f1) (no-special-glyphs . t) (right-fringe . 0) (left-fringe . 0) (line-spacing . 0) (screen-gamma) (border-color . black) (mouse-color . #eff0f1) (background-color . #555555) (foreground-color . #eff0f1) (horizontal-scroll-bars) (vertical-scroll-bars) (bottom-divider-width . 0) (right-divider-width . 0) (internal-border-width . 1) (border-width . 0) (font-parameter . Source Code Pro 10) (font . -ADBO-Source Code Pro-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1) (font-backend ftcrhb x) (override-redirect) (undecorated . t) (parent-frame . #<frame *scratch* - 0x561670ba7f00>) (minibuffer . #<window 4 on *Minibuf-0*>)) HOOKS=(evil--jumps-window-configuration-hook t company-box--scrollbar-prevent-changes)
Type C-x 1 to delete the help window.
[SCROLL] SELECTION=99 BUFFER= *company-box-58720430-scrollbar* H-FRAME=340 N-ELEMENTS=100 PERCENT=1.0 PERCENT-DISPLAY=0.2 SCROLLBAR-PIXEL=68.0 HEIGHT=SCROLLBAR=4.0 BLANK-PIXELS=272.0 HEIGHT-BLANK=16.0 FRAME-CHAR-HEIGHT=17 FRAME-CHAR-HEIGHT-NO-FRAME=20 FRAME=#<frame 0x561678075c10> MUL=1700
[SCROLL] SELECTION=0 BUFFER= *company-box-58720430-scrollbar* H-FRAME=340 N-ELEMENTS=100 PERCENT=0.0 PERCENT-DISPLAY=0.2 SCROLLBAR-PIXEL=68.0 HEIGHT=SCROLLBAR=4.0 BLANK-PIXELS=0.0 HEIGHT-BLANK=0.0 FRAME-CHAR-HEIGHT=17 FRAME-CHAR-HEIGHT-NO-FRAME=20 FRAME=#<frame 0x561678075c10> MUL=1700
[SCROLL] SELECTION=1 BUFFER= *company-box-58720430-scrollbar* H-FRAME=340 N-ELEMENTS=100 PERCENT=0.010101010101010102 PERCENT-DISPLAY=0.2 SCROLLBAR-PIXEL=68.0 HEIGHT=SCROLLBAR=4.0 BLANK-PIXELS=2.747474747474748 HEIGHT-BLANK=0.16161616161616163 FRAME-CHAR-HEIGHT=17 FRAME-CHAR-HEIGHT-NO-FRAME=20 FRAME=#<frame 0x561678075c10> MUL=1700
[SCROLL] SELECTION=2 BUFFER= *company-box-58720430-scrollbar* H-FRAME=340 N-ELEMENTS=100 PERCENT=0.020202020202020204 PERCENT-DISPLAY=0.2 SCROLLBAR-PIXEL=68.0 HEIGHT=SCROLLBAR=4.0 BLANK-PIXELS=5.494949494949496 HEIGHT-BLANK=0.32323232323232326 FRAME-CHAR-HEIGHT=17 FRAME-CHAR-HEIGHT-NO-FRAME=20 FRAME=#<frame 0x561678075c10> MUL=1700
[SCROLL] SELECTION=3 BUFFER= *company-box-58720430-scrollbar* H-FRAME=340 N-ELEMENTS=100 PERCENT=0.030303030303030304 PERCENT-DISPLAY=0.2 SCROLLBAR-PIXEL=68.0 HEIGHT=SCROLLBAR=4.0 BLANK-PIXELS=8.242424242424242 HEIGHT-BLANK=0.48484848484848486 FRAME-CHAR-HEIGHT=17 FRAME-CHAR-HEIGHT-NO-FRAME=20 FRAME=#<frame 0x561678075c10> MUL=1700
[SCROLL] SELECTION=4 BUFFER= *company-box-58720430-scrollbar* H-FRAME=340 N-ELEMENTS=100 PERCENT=0.04040404040404041 PERCENT-DISPLAY=0.2 SCROLLBAR-PIXEL=68.0 HEIGHT=SCROLLBAR=4.0 BLANK-PIXELS=10.989898989898991 HEIGHT-BLANK=0.6464646464646465 FRAME-CHAR-HEIGHT=17 FRAME-CHAR-HEIGHT-NO-FRAME=20 FRAME=#<frame 0x561678075c10> MUL=1700
[SCROLL] SELECTION=5 BUFFER= *company-box-58720430-scrollbar* H-FRAME=340 N-ELEMENTS=100 PERCENT=0.050505050505050504 PERCENT-DISPLAY=0.2 SCROLLBAR-PIXEL=68.0 HEIGHT=SCROLLBAR=4.0 BLANK-PIXELS=13.737373737373737 HEIGHT-BLANK=0.8080808080808081 FRAME-CHAR-HEIGHT=17 FRAME-CHAR-HEIGHT-NO-FRAME=20 FRAME=#<frame 0x561678075c10> MUL=1700
[SCROLL] SELECTION=6 BUFFER= *company-box-58720430-scrollbar* H-FRAME=340 N-ELEMENTS=100 PERCENT=0.06060606060606061 PERCENT-DISPLAY=0.2 SCROLLBAR-PIXEL=68.0 HEIGHT=SCROLLBAR=4.0 BLANK-PIXELS=16.484848484848484 HEIGHT-BLANK=0.9696969696969697 FRAME-CHAR-HEIGHT=17 FRAME-CHAR-HEIGHT-NO-FRAME=20 FRAME=#<frame 0x561678075c10> MUL=1700
M
I think there should be a few packages that cause the conflict which include company-box, lsp-mode and some others in my configuration but I could not find out which one because it's take time trying enable and disable each one to see the result.
@YumiSuki Thanks, I saw in your logs that you have golden-ratio. I think it caused that issue. Can you confirm that https://github.com/sebastiencs/company-box/commit/7c05cfd1cb32f161c7de1efb168b597880500473 fixes that ?
Thanks a lot for your hard work @sebastiencs. It's working properly now.
It's working so I'll close the issue now. Thx you again everyone.
@YumiSuki You are welcome
I am trying to add company-box into my Emacs configuration and it alters background and foreground color of company mode's dialog and make it is hard to read anything. Please check my picture.
I am using Emacs 27
and using Zenburn theme.With debug enable, there is also some error log. Please kindly check: