From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#28580: python.el: native completion setup failed Date: Sun, 24 Sep 2017 17:00:28 -0400 Message-ID: <87tvzrlslv.fsf@users.sourceforge.net> References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> <871smvn9oo.fsf@users.sourceforge.net> <87y3p3ltzx.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1506286886 19124 195.159.176.226 (24 Sep 2017 21:01:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 24 Sep 2017 21:01:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) Cc: 28580@debbugs.gnu.org To: =?UTF-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 24 23:01:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwE1W-000447-6f for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Sep 2017 23:01:10 +0200 Original-Received: from localhost ([::1]:39410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwE1d-0007uY-Bp for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Sep 2017 17:01:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwE1T-0007sa-BH for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 17:01:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwE1O-0000m2-Ig for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 17:01:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47932) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dwE1O-0000lo-E4 for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 17:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dwE1O-0003eU-0I for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 17:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Sep 2017 21:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28580 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28580-submit@debbugs.gnu.org id=B28580.150628683814000 (code B ref 28580); Sun, 24 Sep 2017 21:01:01 +0000 Original-Received: (at 28580) by debbugs.gnu.org; 24 Sep 2017 21:00:38 +0000 Original-Received: from localhost ([127.0.0.1]:56613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwE10-0003dj-0h for submit@debbugs.gnu.org; Sun, 24 Sep 2017 17:00:38 -0400 Original-Received: from mail-io0-f182.google.com ([209.85.223.182]:45536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwE0y-0003dW-FT for 28580@debbugs.gnu.org; Sun, 24 Sep 2017 17:00:36 -0400 Original-Received: by mail-io0-f182.google.com with SMTP id g32so8193467ioj.2 for <28580@debbugs.gnu.org>; Sun, 24 Sep 2017 14:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=8YJWkeGVrmWfG1o+mElnjMvB7Sv2agd3XAU+clii+1Q=; b=ob7VGV3Hrj03a8rLbmXHfq2vOslNDd5mDHn9ltWR7YpeXgcMDOvmt7z458fE9OGRSI iL2ccIryeCkX7ipzbbX2o84duLeJ2dQUND9TFUi4vzcDh2erRwq9zVzdDqTARc/UshWy BhF8I5l9YXRzcs1QnSndUChpmOIHUlicav3QJtNQF5gos9jwpCRQ8RsLUqNkiOyNRq1Y jXgZKoGObi6hofqSft55O9aDzJO51yUUouDIRItddynN7ktv5QGa1imJu4LQWJhrsgAT bDtemzjuookn1AvVw76+dYZzqVu9+WZHOTp000tPpjuDX79YplXtRt08Z1c05w6vH2Zr EXmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=8YJWkeGVrmWfG1o+mElnjMvB7Sv2agd3XAU+clii+1Q=; b=sx8iRFGhjGAbIPMdbXTjBi6Yn8ypWVdnzOCtIiI13+KQfy1g9vLBa3ZjKa8eKaMH1d 2vcQZpQLHJpqa6q0MfqwnMS8QycTsVlY82bzYEcufCnu4M6C9/B1dFhwSTL+34Cl/E+Y go+vdGzfkyVloMdtXHpHLAWSlFrros+4+taNFjO9Z7Wm+IJVnptEBrystyit5feXrUXk VVLJmtIOdUeqHYBLlRt0DOKJHH0ONcvSHbIViHtV9MxFCtZTjXul5oSd2rX4fJxLoDCy x1HuxOCY0gRUQpm6hU4ExM2t5neIVEyiz2oXW3F20ycpRdfx1pOxDOiWBWb29WS5oinX tEdw== X-Gm-Message-State: AHPjjUg3fF5NYg6NkiuVRgCZOufeK1xGl5bhxQbNl6/qRdmIM+KenX/8 fZgRVKjJhAMNT88UB8bOvd11OA== X-Google-Smtp-Source: AOwi7QBbYgGuzWkRbRIJX/ZZHFcSh3YVxt613clWR7BV4sSCGniBzqPNy9c4OBzw/4RJB3gr4IiVbg== X-Received: by 10.107.176.70 with SMTP id z67mr7382425ioe.81.1506286830313; Sun, 24 Sep 2017 14:00:30 -0700 (PDT) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id t70sm2169477ioi.80.2017.09.24.14.00.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 14:00:29 -0700 (PDT) In-Reply-To: ("=?UTF-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2?="'s message of "Sun, 24 Sep 2017 23:34:07 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137367 Archived-At: =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE= =D0=BD=D0=BE=D0=B2 writes: > That should be suboptimal -- otherwise why the warning? > What could make the "native" completion fail? Does M-: (python-shell-completion-native-try) RET in the *Python* buffer return nil? Perhaps try putting some `message' calls into python-shell-completion-native-get-completions? (Using the debugger is a bit tricky due to the timing of process communication.) Especially check the contents of the current inside the `when' block at the end: ;; Grab output until our dummy completion used as ;; output end marker is found. (when (python-shell-accept-process-output process python-shell-completion-native-output-timeout comint-redirect-finished-regexp) (re-search-backward "0__dummy_completion__" nil t) (cl-remove-duplicates (split-string (buffer-substring-no-properties (line-beginning-position) (point-min)) "[ \f\t\n\r\v()]+" t) :test #'string=3D)) > How to check if it's really the case? Try the recipe in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28051#8 and see if you suffer from that bug.