From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16796 invoked from network); 1 Oct 2020 23:53:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Oct 2020 23:53:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1601596421; b=nhwBUjKvefDNrzElrHnpX1IeL1glbQ939rpG/FVE37EHCtBYubwpWd/1MTe0G2wUWaiY4VtLwX O8L/z+0xF4bg+6OtclYjS/v0HSgVf9Lq983jARBmTPaW47cwrWL/8XHMi84h1FRJQdDmZCUaQJ YyT850LVDAsv1xmUz47hQ29FMnU9cO/LPixJ6hpbnTzhCsUW4iqNF2zp7rFkV9o+ymjcgcJe90 3dppHFNT7cG2oAiwvY9niEAYsZH9r7BrL94y7aHmWYU6k41utwfXxsLEm0CLlhiRMLdpvctG9N MD6fmqE7HiV1yR1WMdB68tA3ejPb0ImV2ePUP4ZGOM9xjw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f53.google.com) smtp.remote-ip=209.85.166.53; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1601596421; bh=O/ArKmdQlA2FJoCy2r8my+NjgqR+FpzzndbxCB1G86I=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=iTvu+Lm/elkssZDo4QqqP2L8THhp1oOYQo4zbXe3fTmOHknOnthPNOSgiEHPMg0Dhwq92pZ5zr Q74Y4U1PcCUgDJrsdAdSC/EgrzO8+NzkcwL/8CnQf92hR9378DP6y9ViQL3VjCPbLLCPxRFnQe n7G2Vy9etUyWJg8RJ2n/GXsy/383qQNKJNr93mhzvM8an3OYo7k3gfPNebfo4mS1CiL+FAXlBe GnDeFyiL6VU4cL89QG03xVnfaso62O4PSDTz7AC96ioX8oxKDI/iWPufElR9whQgbTFMu14vOl /NqeYxX4UvxT0KIoHi4+O73dyIlGxqTbfmDlKb1xHRcoeA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=O/ArKmdQlA2FJoCy2r8my+NjgqR+FpzzndbxCB1G86I=; b=jeiTb0bw6Y96c3crH8jPqWUMgB Vo9xh+OTglOIFs2/SwXqY+XKluYL+wSdcTk8RYWGZ0dSmpBK4ULNxQNUAMDQPgVHW+3Q7MF4pQ4B2 2caYfmicV/73y7SyWRTeIIidZGPES2U20/9PrqKpqNePWG37Bgqm2hbztVW2BvgEy7RdH870eP3SB J253eSk6zempfgC7Vy/xzQv+pT7Zqtzt8QssiYJkKXJpU3OdU57C4f41o7PXP2Bnt9ISRkboVcd0n r1a9o6ySQY+RTlbhycbMq1MM59wj4I3yhhQ7J2ZKQpyXN/kcNt1HkO9Uf8tUvRYiQXTrNQx7BrhmT 376YTy1w==; Received: from authenticated user by zero.zsh.org with local id 1kO8OI-0001zh-WB; Thu, 01 Oct 2020 23:53:39 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f53.google.com) smtp.remote-ip=209.85.166.53; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f53.google.com ([209.85.166.53]:42273) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kO8O0-0001qB-Im; Thu, 01 Oct 2020 23:53:21 +0000 Received: by mail-io1-f53.google.com with SMTP id u6so379910iow.9 for ; Thu, 01 Oct 2020 16:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=O/ArKmdQlA2FJoCy2r8my+NjgqR+FpzzndbxCB1G86I=; b=GJByn5WHDx732voC5e19Zd4oktYZhbir2eu0K6YGDtZPJ3s9CV0WknlIDD4h+OW7pF snAJZYri1fG7rkyAvzZpNjPTyBKxW+ArzzPF3fXyCfJtWCQVM19WKRAo152AKHs3dZaR zR+UyEiRII3BXNihK4P9f/dgF5EhmuPx+f2r7PrAaILzfljWCwZNEzy3uvcpmZTgGsVr swiErCX3crxV7JF6k8LLDTRGJ6Ctb2dWdEqN0uqKlHXBx5e0upwwDVci+qHzzX99UMHP LYy084g2ubokpi/44eud2sfU7OmQtS2bhMT1Y4AYhLoueeFq/wkxZcloUWI5KS58J6lc pfpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=O/ArKmdQlA2FJoCy2r8my+NjgqR+FpzzndbxCB1G86I=; b=j9rWzVSFp0dB5C1KTnlhGIR+8ZuruIMrwVK5wNjBIto7U8WycnbIQMJ16ucTQfMOk0 Pcx1zePLsHPdkNpMnYKZ+XbOyMBi+8BPIke8VvAukZ3CsV6hsbAmQRja0cj0N9l4eAf4 vyhCDaj2kbTJckJw3b87ScNecx3Ku58JkEVvU8dF4sDJ1zXKMevOjrlhZR3Ma3ueKkpw NKJz5oDKw5OsAuhgvCVpe77AmjwZWmTzQ5N87emfWbT5BsQkiJSHOxqifdGAn5/oLaDb +jph8dxA3VwqPcR0fEmc02UET/cCikSWZRkcNtSfaQL6IGjhn6fXTPjTLPy+K+f2xmbL F/KQ== X-Gm-Message-State: AOAM5305TTza3yAcB/1lBDwclQ3cVriTYYunBPQYxF949mQYxIHU/n2Q 4pSRWFirFkff43vhVlidZC8IQvA8i2IUoQhFYu2u8sogvJGljg== X-Google-Smtp-Source: ABdhPJw+DhD0KVP9L+Bi1I2JVtiKdM6dZKYTXxqpUHgbgfl6Pz36YFeY5xkofHdoLEawQmqrR/++vOTaEfr4gplAJ8s= X-Received: by 2002:a5d:96ce:: with SMTP id r14mr7332884iol.146.1601596398589; Thu, 01 Oct 2020 16:53:18 -0700 (PDT) MIME-Version: 1.0 From: Justin Garrison Date: Thu, 1 Oct 2020 16:53:07 -0700 Message-ID: Subject: compadd not returning completion options To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="000000000000695b7705b0a4b8f5" X-Seq: 47417 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: --000000000000695b7705b0a4b8f5 Content-Type: text/plain; charset="UTF-8" I have a custom completion script I'm working on that has a few different functions used for completion (I'm modifying existing completion scripts so I can't change some of them) __start_k -> calls __k_handle_word -> calls __k_handle_kspace -> calls __k_kspace_parse_config The __k_kspace_parse_config is where I run compadd for my completions I can see it being run if I set -x in that function (I'm echoing the array at the end of the compadd command and also tried with -a array_name) +__k_kspace_parse_config:33> compadd -X CONTEXTS -P + -S '' bottlerocket dev.demo.jgarr.net rothgar@alb-v2-ec2.us-west-2.eksctl.io rothgar@fargate.us-west-2.eksctl.io rothgar@prod.us-west-2.eksctl.io rothgar@stage.us-west-2 $: k + -- no matches found -- but this returns no matches even though the k_out array has values. If I run compdef __k_handle_kspace k everything works as expected. I'm not sure why it matters which function I use when the function that sets the completion values is still the same. I have some more links to the code and information here in stackoverflow but haven't been able to figure out why this is happening. https://stackoverflow.com/questions/64150319/compadd-doesnt-work-when-called-from-nested-functions Any pointers or help on what I could be doing wrong are appreciated. -- Justin Garrison justingarrison.com --000000000000695b7705b0a4b8f5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have a custom completion script I'm working on that has a = few different functions used for completion (I'm modifying existing com= pletion scripts so I can't change some of them)

__start_k -> call= s __k_handle_word -> calls __k_handle_kspace -> calls __k_kspace_pars= e_config

The __k_kspace_parse_config is where I run compadd=C2=A0for my = completions

I can see it being run if I set -x in that function (I'm= echoing the array at the end of the compadd command and also tried with -a= array_name)

+__k_kspace_parse_config:33> compadd -X CONTEXTS -P + -S= '' bottlerocket dev.demo.jga= rr.net rothga= r@alb-v2-ec2.us-west-2.eksctl.io rothgar@fargate.us-west-2.eksctl.io rothgar@prod.us-west-2.eksctl.io roth= gar@stage.us-west-2

$: k +
=C2=A0-- no matches found --
=

bu= t this returns no matches even though the k_out array has values.

=
If I r= un=C2=A0

compdef __k_handle_kspace k

everything works as expected. I&= #39;m not sure why it matters which function I use when the function that s= ets the completion values is still the same.

I have some more links to t= he code and information here in stackoverflow but haven't been able to = figure out why this is happening.

Any pointers or help on what I could be doing wrong are appreciated.

--
Justin Garrison
justingarrison.com
--000000000000695b7705b0a4b8f5--