Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sacIF-00A4e8-3b for pgsql-hackers@arkaria.postgresql.org; Sun, 04 Aug 2024 14:33:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sac0P-009L7w-OW for pgsql-hackers@arkaria.postgresql.org; Sun, 04 Aug 2024 14:14:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sac0P-009L7n-Aa for pgsql-hackers@lists.postgresql.org; Sun, 04 Aug 2024 14:14:41 +0000 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sac0M-0035yQ-A1 for pgsql-hackers@lists.postgresql.org; Sun, 04 Aug 2024 14:14:40 +0000 Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-7a3375015f8so258219685a.1 for ; Sun, 04 Aug 2024 07:14:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20230601.gappssmtp.com; s=20230601; t=1722780753; x=1723385553; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=8xPqckpTnkGHTPPqhAsMZpFFL0h6ZRTnIfyqW04xMJg=; b=StSbAdDN5LYvdBzpIcg4GpRpIcfQHv0pXcrH34Jsp9DWONHVbHijmLG3oAzkCbUORh a2sLVgz9hafuM0mrNjsbmRKsBHEoXO3F3WbnCBoAkuGgP8+HNrskYRyh6X+PPP+1kT3/ Z8s42l1ZeEVUoHMmTg0SBrUpSSt5VnPzaLOOllhwocxemK3jj8eiFbglzjbUFpuKnlLW ozgYbd7BCVmz6fVWbFab4stSbDwTkiY+9iUiVHocn+6N0oVl6T3JybtYlDKna05g1luv I46HVLPCxn8Pav0kjo+sbFZp5YpkY1hXR9Mc2CQzS9UShFKKLj5f+QtMlP1xJF9fYRvR tSfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722780753; x=1723385553; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8xPqckpTnkGHTPPqhAsMZpFFL0h6ZRTnIfyqW04xMJg=; b=bnukkwTD+avXd9vvzOMOgten0nTWIl+8Jc5/Ktb5J+5JLPcsGrOm29iT64lo3kYHoh ussK6EKWcw/yYassXcyz5PhZz3nEwLlnTOa1fYUNpujN1N8r6UX+bCGnRgpZxL2qvvXZ NNUTztbCzo6x5s86gJCB071QgpC8gKHLHwuOJvdUymdh1gqlhbotrqJAPomvT+pHvKc9 VV4GWJuDA79BEhn6CpZhAprCZ72OoH+bJuCdAqlOuDmuULXnNXxV6Ax4+ylXqrZ4fIAm RnVrVfI+6eBjklJUzTHeqPyHVpG47ZJ6lRFCziMP+9QcBEK4m5hHSohfWMy5gAtUQZxN cYgQ== X-Forwarded-Encrypted: i=1; AJvYcCW1tRdL/nhblNfqwSC2J7uXBkZOliYLKzxkMgA2oiCD2UBuqyBpBp6lYJ48WML31Utid1X6hauvQ41B9Pm9dJ3XZmcYAB08BdYKCeqe/MArA8cr X-Gm-Message-State: AOJu0YxwoAuVkrYV+22v5wPmRzbxqAJfMvz/H5AKyM5y31bKkjzu4rmm MyBmAtDzQA5Y6mK4s5cRtAF2jdhJYz006rIv65bfqVGas4uz/wKWFSsvtas5dAo= X-Google-Smtp-Source: AGHT+IG8C+avEc+WoKPmfnQVy4vbB2vxq4cx37X/YxHv6X0xO1MZDvmYnD1XHPALl8gkZlVo5lkTDA== X-Received: by 2002:a05:620a:394e:b0:79f:c54:70d6 with SMTP id af79cd13be357-7a34ef12d89mr1177805985a.27.1722780752476; Sun, 04 Aug 2024 07:12:32 -0700 (PDT) Received: from ?IPV6:2605:a601:9180:9800::2bb? ([2605:a601:9180:9800::2bb]) by smtp.googlemail.com with ESMTPSA id af79cd13be357-7a34f6f05basm258483585a.50.2024.08.04.07.12.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 04 Aug 2024 07:12:31 -0700 (PDT) Message-ID: Date: Sun, 4 Aug 2024 10:12:29 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Official devcontainer config To: Junwang Zhao Cc: Peter Eisentraut , PostgreSQL Hackers , Andrey Borodin , Jelte Fennema-Nio References: <57c12c52-123c-4a13-a258-02639473fa17@dunslane.net> From: Andrew Dunstan Content-Language: en-US Autocrypt: addr=andrew@dunslane.net; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAHNJEFuZHJldyBEdW5zdGFuIDxhbmRyZXdAZHVuc2xhbmUubmV0PsLAmwQTAQgARQIbAwIX gAIZAQULCQgHAgMiAgEGFQoJCAsCBBYCAwECHgcWIQTkPlhGHfx8v0RpFaW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Js0dzF0oKTmFFmUAqTdJO12LBuNA1rlqrR3EtpYk8B/wtS 5dIMD7Q8hwQpL+4C6GNpb6ZKnPkLi47pDOLhz2qBrqN+rqUEsT3YnExYpzj5yOBi+FlmV1Hw 49QYe1sn2ZPs In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-08-03 Sa 10:13 PM, Junwang Zhao wrote: > On Sat, Aug 3, 2024 at 7:30 PM Andrew Dunstan wrote: >> >> On 2024-08-02 Fr 2:45 PM, Peter Eisentraut wrote: >>> On 01.08.24 23:38, Andrew Dunstan wrote: >>>> Not totally opposed, and I will probably give it a try very soon, but >>>> I'm wondering if this really needs to go in the core repo. We've >>>> generally shied away from doing much in the way of editor / devenv >>>> support, trying to be fairly agnostic. It's true we carry >>>> .dir-locals.el and .editorconfig, so that's not entirely true, but >>>> those are really just about supporting our indentation etc. standards. >>> Yeah, the editor support in the tree ought to be minimal and factual, >>> based on coding standards and widely recognized best practices, not a >>> collection of one person's favorite aliases and scripts. If the >>> scripts are good, let's look at them and maybe put them under >>> src/tools/ for everyone to use. But a lot of this looks like it will >>> requite active maintenance if output formats or node formats or build >>> targets etc. change. And other things require specific local paths. >>> That's fine for a local script or something, but not for a mainline >>> tool that the community will need to maintain. >>> >>> I suggest to start with a very minimal configuration. What are the >>> settings that absolute everyone will need, maybe to set indentation >>> style or something. >>> >> I believe you can get VS Code to support editorconfig, so from that POV >> maybe we don't need to do anything. >> >> I did try yesterday with the code from the OP's patch symlinked into my >> repo, but got an error with the Docker build, which kinda reinforces >> your point. > The reason symlink does not work is that configure_vscode needs to copy > launch.json and tasks.json into .vscode, it has to be in the > WORKDIR/.devcontainer. That's kind of awful. Anyway, I think we don't need to do anything about ignoring those. The user should simply add entries for them to .git/info/exclude or their local global exclude file (I have core.excludesfile = /home/andrew/.gitignore set.) I was eventually able to get it to work without using a symlink. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com