Giter VIP home page Giter VIP logo

Comments (7)

syohex avatar syohex commented on September 14, 2024

Could you show me sample code for reproducing this issue ?

from company-jedi.

Yevgnen avatar Yevgnen commented on September 14, 2024

I simply write a config look like

(require 'package)

(setq package-archives '(("marmalade" . "http://marmalade-repo.org/packages/")
                         ("gnu" . "http://elpa.gnu.org/packages/")
                         ("melpa" . "https://melpa.org/packages/")
                         ("org" . "http://orgmode.org/elpa/")))

(package-initialize)

(unless (and (file-exists-p (expand-file-name "elpa/archives/marmalade" user-emacs-directory))
             (file-exists-p (expand-file-name "elpa/archives/gnu" user-emacs-directory))
             (file-exists-p (expand-file-name "elpa/archives/melpa" user-emacs-directory))
             (file-exists-p (expand-file-name "elpa/archives/org" user-emacs-directory)))
  (package-refresh-contents))

(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))

(require 'use-package)

(package-install 'company)
(package-install 'jedi-core)
(package-install 'company-jedi)

(require 'company)
(require 'jedi-core)
(require 'company-jedi)

(global-company-mode)
(add-hook 'python-mode-hook
          (lambda ()
            (setq company-backends '((company-jedi
                                      company-yasnippet ;; Comment out this line and the follow one should find some differences 
                                      company-files ;; 
                                      company-dabbrev-code
                                      company-gtags
                                      company-etags
                                      company-keywords)
                                     company-dabbrev))))

to test. Ugly, but should show the issue.

Normal:
Normal

Abnormal:
3

from company-jedi.

liebkne avatar liebkne commented on September 14, 2024

Any news of this ?

from company-jedi.

syohex avatar syohex commented on September 14, 2024

Sorry no news. I'll try to check in this week.

from company-jedi.

syohex avatar syohex commented on September 14, 2024

I confirmed this issue. I suppose that because company-jedi is asynchronous backend. I confirm this behavior company-clang which is asynchronous backend too. So asynchronous backend should not be grouped if you does not want this behavior.

BTW this behavior is not occurred with manual completion as below.

(custom-set-variables
 '(company-idle-delay nil))

from company-jedi.

Yevgnen avatar Yevgnen commented on September 14, 2024

What a pity!

from company-jedi.

gonewest818 avatar gonewest818 commented on September 14, 2024

Leaving a "documentation" on this, and I suppose we should test behavior on current Emacs builds.

from company-jedi.

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.