Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp6272517imm; Sat, 19 May 2018 22:51:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp7fKQhNynnEnDiQ5zFmzfinTFwgLmTaH1MGGbmBoI3DobWKwED8J59UCZAzKHvAXCg3ILA X-Received: by 2002:a62:e903:: with SMTP id j3-v6mr15571076pfh.196.1526795485031; Sat, 19 May 2018 22:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526795484; cv=none; d=google.com; s=arc-20160816; b=ZenudFEVikfUf40PgAXzO42hh9R8k0qNmH6lwRBrd/anvlLQls/VbWl9Y5sJ+SrkNs AaSkvzxjhQkD+nskUcmsI8vx4fZSQMdAGnFldbYlTbE91nEfnpkamx/7e/9+xnE1ojUA oTAJ/fABME7BLsCl2xau46DcO/9ql3bjqF4Al8yy/F8kO9lH9zA9+Gmxe5mtvybfbbqa lvOILX9D8ob0ArijssUQOQdh3H6cVOupYM02+y+6pz4XtyZf0ovvVoJbpRKzjtZeSRHU +/idFHOxXMgbaugEo4nLg4Al2CZFT1u54ChppvLKus3+YE123rQngHCSV+KlYgy2/CBj 7U8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=/K1isaVKhdguHVIj6xrf/XixoAwFYz2CZEHoTBwljM8=; b=Px6z0tc9rs3S9JH3Xn0wgsgQCdhOPBsAIaz+isydG6hd1sRu37p+DzJVsg4zlhovVT QDFe6Pu+f2mhHQ915SG936WBYf7P0IvgAu6A8/js+zT3fGy195Fmqgh4s00ZGbPNRdjE mpK1q5WYl/MoBWhMQJePFZb3nNXQ7dCL7DcRDgD2202eSyteFXn0hCTPqd5NDbPO7ZUC uGn2xN4LnbJYhppXHzvu35GT7etQbaJJuE02g76z7jt2O3fDktsIvbIeJUDqGWWmye7d GHkoIWcTI7DXeXIYZ2nBbDE5GWKwPOHJzxXvgu4BX4yMElztnhbzkEwrU8WG2SaMEJqt 0HhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=E1GYVCTz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3-v6si8861845pgp.132.2018.05.19.22.50.58; Sat, 19 May 2018 22:51:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=E1GYVCTz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751555AbeETFuj (ORCPT + 99 others); Sun, 20 May 2018 01:50:39 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:39427 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750918AbeETFuh (ORCPT ); Sun, 20 May 2018 01:50:37 -0400 Received: by mail-ot0-f193.google.com with SMTP id l12-v6so13535655oth.6; Sat, 19 May 2018 22:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/K1isaVKhdguHVIj6xrf/XixoAwFYz2CZEHoTBwljM8=; b=E1GYVCTzFAZKQqNqy24DNrkK/xvjWJF1Ls+xfEDEuqS8gFxmnrYzmotLE9DIB/2PnK psrO/JbGDp8EhMZqnzITcQdkaZsQz0iOty6QDeGkCnTKmQm89u2YzXgLvcp5T/162ikh nh88cPvLBYGLsjM2Xm/Erd1w1a8WQYA15eGg2+rmhjAbNFtm56NY30bo+KfSjStH5qKd xh10mb4hUcH8qprIfYPnhZSBvNu2D7NOpChOx1G/ARn2PJKpTnIkt8Sojp6PQWKGgSr6 T1bzPy63KGV5UQIQQ57WrlNvWFqsFBOuX7ZuE7Fz8Z4s1B885f5m7FhUW2d6AjcNkxgJ 61xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/K1isaVKhdguHVIj6xrf/XixoAwFYz2CZEHoTBwljM8=; b=p3CYxuTyfnplMJVaM+DeVxW4aDl0+fqem3th66mHcDPwaHvvj6Jvzmgh/mTVIm2G62 rdX9KbfYyLDZSHAUUs6ruKwRxA6y03wDvhdeIO4adeHMVRM9SZ4zPUyNOtyX5ZqWiiP3 FNJV1JuFixAIpFAYrctlsonNtEWjltgD7E5U7ODTRKiiIWL9xUVOWtwSWcfPm/gFpHmg 2xDeg8HFaXbIiDyyN1SQR7eUPea9MXkGF4Q+ay3nDaFPffiJ9QTZFG7EN+PPg46yuUnO 1yKplwRdleihZkSbm2xAlVknec5otMRHaT9HXUE7gLd3wiBGgzIRdjJ/NtFYixfM39Kn lEZg== X-Gm-Message-State: ALKqPweWnLz39VfYxe+JOXvcEf6Y+kwGLFF+iQ/Z9Tafw+1lQMpiVhjc UFIpcddL+7DV8NfCNlTZ8a2PbY8fOinjTXXSzlo= X-Received: by 2002:a9d:5e0b:: with SMTP id d11-v6mr9779235oti.148.1526795436704; Sat, 19 May 2018 22:50:36 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:185:0:0:0:0:0 with HTTP; Sat, 19 May 2018 22:50:36 -0700 (PDT) In-Reply-To: References: <3d9be2f2-3fbe-411b-8529-0e0847f01346@infradead.org> <3c56dfdf-d196-da34-35db-42b3675039dd@infradead.org> From: Ulf Magnusson Date: Sun, 20 May 2018 07:50:36 +0200 Message-ID: Subject: Re: [ANNOUNCE] Kconfiglib menuconfig implementation To: Randy Dunlap Cc: Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 20, 2018 at 6:24 AM, Ulf Magnusson wrote: > On Sun, May 20, 2018 at 5:51 AM, Randy Dunlap wrote: >> On 05/19/2018 08:45 PM, Randy Dunlap wrote: >>> On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >>>> Hello, >>>> >>>> I've added incremental search for jumping directly to a symbol now. >>>> Regular expressions are supported as well. >>>> >>>> Some screenshots below: >>>> >>>> https://raw.githubusercontent.com/ulfalizer/Kconfiglib/screenshots/screenshots/ss10.png >>>> https://raw.githubusercontent.com/ulfalizer/Kconfiglib/screenshots/screenshots/ss11.png >>>> https://raw.githubusercontent.com/ulfalizer/Kconfiglib/screenshots/screenshots/ss13.png >>>> >>>> The last screenshot shows how things might look after you jump to a >>>> symbol. The jumped-to symbol wasn't visible in this case, so show-all >>>> mode was turned on automatically. >>> >>> Hi Ulf, >>> >>> >>> Hm, OK, I used the trick that you supplied a few weeks ago and I have the UI now. >>> >>> ARCH=x86 SRCARCH=x86 KERNELVERSION=`make kernelversion` \ >>> Kconfiglib/menuconfig.py >>> >>> so yes, a real Makefile target would be nice. :) >> >> >> Enter: / (search) >> then: * (Bang) [this was just an unlucky typo on my part] >> >> Traceback (most recent call last): >> File "/home/rdunlap/scripts/menuconfig.py", line 1447, in _jump_to_dialog >> for regex in s.split()] >> File "/home/rdunlap/scripts/menuconfig.py", line 1447, in >> for regex in s.split()] >> File "/usr/lib64/python3.4/re.py", line 223, in compile >> return _compile(pattern, flags) >> File "/usr/lib64/python3.4/re.py", line 294, in _compile >> p = sre_compile.compile(pattern, flags) >> File "/usr/lib64/python3.4/sre_compile.py", line 568, in compile >> p = sre_parse.parse(p, flags) >> File "/usr/lib64/python3.4/sre_parse.py", line 780, in parse >> p = _parse_sub(source, pattern, 0) >> File "/usr/lib64/python3.4/sre_parse.py", line 377, in _parse_sub >> itemsappend(_parse(source, state)) >> File "/usr/lib64/python3.4/sre_parse.py", line 586, in _parse >> raise error("nothing to repeat") >> sre_constants.error: nothing to repeat >> >> During handling of the above exception, another exception occurred: >> >> Traceback (most recent call last): >> File "/home/rdunlap/scripts/menuconfig.py", line 2389, in >> menuconfig(Kconfig("Kconfig" if len(sys.argv) < 2 else sys.argv[1])) >> File "/home/rdunlap/scripts/menuconfig.py", line 340, in menuconfig >> print(curses.wrapper(_menuconfig)) >> File "/usr/lib64/python3.4/curses/__init__.py", line 94, in wrapper >> return func(stdscr, *args, **kwds) >> File "/home/rdunlap/scripts/menuconfig.py", line 483, in _menuconfig >> _jump_to_dialog() >> File "/home/rdunlap/scripts/menuconfig.py", line 1466, in _jump_to_dialog >> bad_re = e.msg >> AttributeError: 'error' object has no attribute 'msg' >> >> >> >> -- >> ~Randy > > Thanks for the report! > > Invalid regular expressions are detected, but it looks like the 'msg' > field of re.error was added in Python 3.5 (you have 3.4). > > I'll check if the 'msg' field exists and fall back to just printing > "Invalid regular expression" otherwise. The 'msg' field just gives a > more informative error > ("Bad regular expression: nothing to repeat" in this case). > > Cheers, > Ulf Fixed: https://github.com/ulfalizer/Kconfiglib/commit/3072e7338cfc63f2f81f34d02edc34dab3d9f365 Your environment seems to have a knack for finding stuff like that. Cheers, Ulf