Comment 8 for bug 1425268

Revision history for this message
Justin (justin-grana) wrote : Re: [Bug 1425268] Re: [Tab] complete in Ipython after update

Ok, I think I got it this time:

Test py-ert-socket-modul-completion-lp-1284141 backtrace:
   (py-indent-or-complete)
   (let ((py-debug-p t) (py-shell-name "python") oldbuf) (if py-debug-p
   (let (hs-minor-mode) (python-mode) (insert "import socket\nsocket.")
   (progn (let (hs-minor-mode) (python-mode) (insert "import socket\nso
   (unwind-protect (progn (let (hs-minor-mode) (python-mode) (insert "i
   (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
   (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-b
   (lambda nil (let ((temp-buffer (generate-new-buffer " *temp*"))) (sa
   byte-code("\306\307!q\210\310\216\311 \312\216\313\314\315\316\3
   ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
   byte-code("\306\307!\211\211r\310\311!q\210\312 d\313\223)L\210)\3
   ert-run-test([cl-struct-ert-test py-ert-socket-modul-completion-lp-1
   ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
   ert-run-tests(t #[(event-type &rest event-args) "\30\307\"\203G \
   ert-run-tests-batch(nil)
   ert-run-tests-batch-and-exit()
   command-line-1(("-l" "ert" "-l" "py-ert-tests-1.el" "-f" "ert-run-te
   command-line()
   normal-top-level()
Test py-ert-socket-modul-completion-lp-1284141 condition:
     (void-function py-indent-or-complete)
    FAILED 27/29 py-ert-socket-modul-completion-lp-1284141
Can't guess python-indent-offset, using defaults: 4

On 02/26/2015 10:21 AM, Andreas Roehler wrote:
> On 26.02.2015 18:28, Justin wrote:
>> The first issue is fixed (I probably should have filed two separate bug
>> reports (and can still do so if tha tis convenient)) but the second
>> issue remains. However, it is very strange. To elaborate, if I do
>>
>> [1] np.asa[TAB]
>>
>> np.asarray is a possible completion
>>
>> However, if I do
>>
>> [2] np.asar[TAB]
>>
>> it automaticaly compeletes to np.asarray_chkfinite
>>
>> Furthermore, this seems to be the only function where I see this strange
>> behavior.
>>
>> I **think** I ran the test but list is pretty foreign to me so if I didn't do it correctly, please
>> let me know. Otherwise, here are the results:
>>
>> Selector: py-ert-socket-modul-completion-lp-1284141
>> Passed: 0
>> Failed: 1 (1 unexpected)
>> Total: 1/1
>>
>> Started at: 2015-02-26 09:17:13-0800
>> Finished.
>> Finished at: 2015-02-26 09:17:13-0800
>>
>>
>> py-ert-socket-modul-completion-lp-1284141
>> (void-function py-test-with-temp-buffer)Selector: py-ert-socket-modul-completion-lp-1284141
>> Passed: 0
>> Failed: 1 (1 unexpected)
>> Total: 1/1
>>
>> Started at: 2015-02-26 09:17:13-0800
>> Finished.
>> Finished at: 2015-02-26 09:17:13-0800
>>
>>
>> py-ert-socket-modul-completion-lp-1284141
>> (void-function py-test-with-temp-buffer)
>>
> Defined at top of the file.
>