Coder Social home page Coder Social logo

tooltip issue with company-mode about emacs HOT 10 CLOSED

masm11 avatar masm11 commented on August 12, 2024
tooltip issue with company-mode

from emacs.

Comments (10)

A6GibKm avatar A6GibKm commented on August 12, 2024 2

I managed to discover the actual cause of the issue. It was solaire-mode. It also turns out that this also happens with vanilla emacs (knowing the actual cause made me able to reproduce it). So closing this, sorry for the trouble :(.

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

Some things to note

+childframe Enables displaying completion candidates in a child frame, rather than an overlay or tooltip (among with other UI enhancements). This requires GUI Emacs 26.1+ and is incompatible with the =+tng= flag

  • Using actual childframes using the doom module flag +childframe (I think this uses company-box) fixes this issue.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

@A6GibKm could you explain what each of the first two screenshots is?

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

They are the tooltip invoked by company-mode on two different themes.

from emacs.

fejfighter avatar fejfighter commented on August 12, 2024

If I understand correctly, doom is configuring for company-posframe when it's not expected to be.

I'm not sure if we are setting something incorrectly, or if this is a doom issue.

does this occur on mainline? if so, we might be advertising a feature incorrectly

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

This is indeed something that happens due to doom's config, but it does not happen using vanilla emacs 27 + doom, so ultimately there is different (unexpected) behaviour in pgtk.

What I have not yet tested is if this is related to nativecomp as I haven't tested pgtk without it for a long while.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

@A6GibKm
I did:

git clone --depth 1 https://github.com/hlissner/doom-emacs ~/doom
~/doom/bin/doom install

and saved the above config as ~/.emacs, did ./doom/bin/doom run, and got an error:

screenshot-20200924-213612

Could you give me step-by-step guide to reproduce?

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

The idea is that you should install doom to either ~/.emacs.d or ~/.config/emacs so its init file gets loaded first. In this case your .emacs file is getting loaded.

Also personal config files for it should go on ~/.config/doom (~/.config/doom/config.el) or ~/.doom.d, but to reproduce this issue no config is needed as doom bundles an already configured company mode.

EDIT: Note that doom emacs use vi bindings from evil-mod good luck with that 👀 .

from emacs.

masm11 avatar masm11 commented on August 12, 2024

@A6GibKm thank you.
I installed doom emacs in ~/.emacs.d/,
saved the above config as ~/.config/doom/config.el,
ran ./.emacs.d/bin/doom run,
did M-x lisp-interaction-mode,
did M-x company-mode,
input (des,
and I got this screenshot:

screenshot-20200924-222638

It is running on wayland.

What to do next?

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

You do not need any configuration, the entire procedure should be (without any user config file)

$ git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
$ ~/.emacs.d/bin/doom install
$ emacs

then

C-x C-f ~/.emacs.d/init.el

And type (des or anything which promps company-mode.

NOTE: Incidentally I tried opening the scratch buffer and enable lisp-interaction-mode but I was not able to reproduce in this setting.

from emacs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.