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 1saCxs-007Co4-KI for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Aug 2024 11:30:24 +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 1saCxr-005Lvv-3D for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Aug 2024 11:30:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1saCxq-005Lvn-Ph for pgsql-hackers@lists.postgresql.org; Sat, 03 Aug 2024 11:30:22 +0000 Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1saCxn-002rMe-OW for pgsql-hackers@lists.postgresql.org; Sat, 03 Aug 2024 11:30:21 +0000 Received: by mail-qt1-x836.google.com with SMTP id d75a77b69052e-44fe9aa3bfaso53225981cf.0 for ; Sat, 03 Aug 2024 04:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20230601.gappssmtp.com; s=20230601; t=1722684618; x=1723289418; 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=yO6hUGlQ00QFvijYdLOqdmKNfwx91Tjne1rAkwGzxYg=; b=bwbt7Sq1SE/hZ7BU1mgrICem4OkFmr3jNIGzHOFtviic4cIpVGYsEclG7FA9oqwiT1 7+UG1hwS6nxjpSy5PKpdSM2RYe0WOBrJquBGvHg11r+KemqZx2ndSVKh8c4DhunacBsS 5r1TmeeyE0r9fzeRa+YbN77czUa62DGxJNiSR5ot8WlpRicnwXuRbo9tQaBy+FGbznDs oX/JwQuPIYOvOYH0KmsCgok2kcrbQzkt/MpqoPjgWzRl6RN87tPvnZ3oZ/vUdelWN9eL MJKqCcsH4vHizJtR3NXK6CqrDzf+fTT5xonYjSUSS/qZMoQuFnc6zris+p8e0E0AC8dn x3JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722684618; x=1723289418; 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=yO6hUGlQ00QFvijYdLOqdmKNfwx91Tjne1rAkwGzxYg=; b=Y8pzQLRUQP/OdcPrvJBA1nrirpSHFri8ZqQtTm1QxBiDSmYV2o5lWephTYMGJ4kAPp RtOu50lT37XNN3qJdkzXIuPR44/rNOQV9HIAGyrvmz2gJsH+XWgjdkK1SIidTT/QGSlQ O9DUt6O+ILtyozCfxvk4kMkL929MlUMl+iQ9PfkwKL3TOKnDaWEn7FDa2HkhCmChH2u5 rQXOptLINh0cz7kAcQmgJ5hzcRvrH3tgk/XYH2w0W5m1zbkffiuHw5yS677nS3Dqu2hW bOTAVnK8K9Xtp6x2q/QVBOmSB2TEMNIvktXUdLF07LNXliBInbao3q8N9r4QRiXfAkkR 5fbw== X-Forwarded-Encrypted: i=1; AJvYcCXyxOFNIL8e5pNqx7xClNzP3G1zlthuf6gv020Pr58uuGo3sFJMS8W0Klc3L9xBeG0NV8Mo6X7n4uhGRwXUIuJYeRgJ7UFJQKDary1I76iEIOmH X-Gm-Message-State: AOJu0YwZ2ysvlJvaZ5gYKFxIh0zFiAsDPuZ2oltT6fLjJqCtlX49vRR0 tJBXFQ2YCeDFqYfdQ4citlKaQpmYwSfthJQgT3N3Gny1sx0zAX4SsirRtze2v54= X-Google-Smtp-Source: AGHT+IFk8IkNMH3WkmkAJM5DOamt9CgEMd8nAPkKzqo+2B+fmYXp239Woum25felWwPyH3WWqA7VoQ== X-Received: by 2002:a05:620a:468e:b0:79f:84f:809f with SMTP id af79cd13be357-7a34ef1cb9fmr761823485a.33.1722684610583; Sat, 03 Aug 2024 04:30:10 -0700 (PDT) Received: from ?IPV6:2605:a601:9180:9800::2bb? ([2605:a601:9180:9800::2bb]) by smtp.googlemail.com with ESMTPSA id af79cd13be357-7a34f773253sm164544085a.89.2024.08.03.04.30.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 03 Aug 2024 04:30:10 -0700 (PDT) Message-ID: Date: Sat, 3 Aug 2024 07:30:08 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Official devcontainer config To: Peter Eisentraut , Junwang Zhao , PostgreSQL Hackers Cc: 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 gAIZAQULCQgHAgMiAgEGFQoJCAsCBBYCAwECHgcWIQTkPlhGHfx8v0RpFaWZ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s0dzF0oKTmFFmUAqTdJO12LBuNA1rlqrR3EtpYk8B/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-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. Your point about "one person's preferences" is well taken - some of the git aliases supplied  clash with mine. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com