From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B56B04565E; Mon, 29 Jul 2024 15:14:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A4A79406A2; Mon, 29 Jul 2024 15:14:58 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by mails.dpdk.org (Postfix) with ESMTP id 04E744069F for ; Mon, 29 Jul 2024 15:14:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722258898; x=1753794898; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=J0NcI9P0AdeTQxyuB3xo1gOG8pTBs2qc2o3NdB1cWQ0=; b=Hvnpj8P0Jy1eOPkpMNhbj+XwcZu/tOFbTV2FR2yRblSlwvz/lBXbU8Z6 k0/doQMc++02otQiIOfKyW8EiZ1Ak/sql7aA38iz0CTPge0RLpjMoRHSH X8QSUyo1VGN/fmShMpn2Cp1/W3Joe44hQL3ShZm/KG1vQyri5aZY7EY9r Ra7cmGUW2qP/Yob5Ti4ZKJunvFaFBShnVDAjuGX9JCj+LsvV/U/ksF8r7 t3cV0tbLmlmGR0+/nPnnt2EL3e425z6uRNDIPAYLqyZhN9Xgmay4+4lUc uh0hLrBsnqleBtmuZpo49toAPbauZw0uMCsay/6oN8TXjjeOuCmKRQquW g==; X-CSE-ConnectionGUID: law4+vSOQreZGREheNGvYw== X-CSE-MsgGUID: oKIEkEjbTk+Pvuw6GbgzsQ== X-IronPort-AV: E=McAfee;i="6700,10204,11148"; a="19961326" X-IronPort-AV: E=Sophos;i="6.09,246,1716274800"; d="scan'208";a="19961326" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2024 06:14:56 -0700 X-CSE-ConnectionGUID: KV4I8aqbTDSi9Uyu08Oq8w== X-CSE-MsgGUID: HqonCACpQsSum0b2+fOigA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,246,1716274800"; d="scan'208";a="58104655" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmviesa003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 29 Jul 2024 06:14:55 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 29 Jul 2024 06:14:55 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Mon, 29 Jul 2024 06:14:54 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.41) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 29 Jul 2024 06:14:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=C4081wloMrE5l2bcsor0L3Pamd32m246RBrlJewFXih6r4DRmSma+8rfjnVsbc470EPKGqIca/lUn5uBbgEqxtSGyq0sj7Hn39mcpb2wzjG9fVhfgpzfZ6zHt6vpa8oMyEAT058/u7Bw/CEqA5PZMwdMatoplMb/fmlglO5ci+eFl7JQWuWAbHq6fVYF79eWPf/4hNxVSHLVf8gEtOwrLH62nnTwF0uT88ekuYkuuKug2zrGo5nGZBZnws0yGYAWqZ3075m0k9us9FpJjTJh6hNnWfzLoKaSfI7V/dSW2BftHJCuM4aqZK6AdMCn9p8dwyQsxPPhIrcyQfevlBvulg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0k7NkvQNej9Q1JowGj0cx8blp7MC7OysI4yBUQIl9cU=; b=xfc8xAp7gWCGMKRg1rsX1J+Xy98ULCG1KZdknNbPjJzSzi+zIsoFwuZEsBbxAudqahfr8Vqzb0rp7ODU6M9BwKsjiFzl0uQJH0cOGkTizyR3Zyr5KL5UT/MUcRxpK64JboslXEKjaz6J/VZxo0EcVymDqla4CkTKmQkTCCSttmGFVq+1waP3YFijdXON3tKTsHzI1ZamYJWUBOJHGhgskLDUJ8/i8l9rU1R6nEucqFPjQsSNbjyUnLjKB5XMIQzKwmkI0JrVyAIVHxaDRkXo7CWh2hxam+i+txzCQFm5YaNBsOpcl8E19ytgmBThAK1gBPiKJNKigGFyRRez6IrG/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by IA0PR11MB8398.namprd11.prod.outlook.com (2603:10b6:208:487::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.23; Mon, 29 Jul 2024 13:14:47 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b%2]) with mapi id 15.20.7807.026; Mon, 29 Jul 2024 13:14:47 +0000 Date: Mon, 29 Jul 2024 14:14:42 +0100 From: Bruce Richardson To: Anatoly Burakov CC: , Subject: Re: [RFC PATCH v2 1/1] devtools: add vscode configuration generator Message-ID: References: <99003582461c7ec772e49dae9b43840496342646.1722258213.git.anatoly.burakov@intel.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <99003582461c7ec772e49dae9b43840496342646.1722258213.git.anatoly.burakov@intel.com> X-ClientProxiedBy: DB7PR02CA0008.eurprd02.prod.outlook.com (2603:10a6:10:52::21) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|IA0PR11MB8398:EE_ X-MS-Office365-Filtering-Correlation-Id: 564ef752-d123-4c09-1191-08dcafd06b57 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?wItN3ee6XvQDYEGR/6f9u5edu9ZfpHNS5sNhbgxn04SIl5TV3W2GOviQk9Ts?= =?us-ascii?Q?lp3oWjedciTaw9mxDotNIIN1ninqRFIBllywSg0bXWYUBYR1lJNfgKh+Zulf?= =?us-ascii?Q?gJxhmEeZsEY0fCQswR0VJ75RZTRg9B/a247ZzFd3jIao8PMlXQ+IZ+T71g6C?= =?us-ascii?Q?GwXPYbEbzuv4uL/+giT15gn77o7NnxpNZ37q4pmLijFGeKkFVDNFD2yzzVQO?= =?us-ascii?Q?HVN/EXrrL4DyONhav9sNFLvet4SA5YaTJV98meaS3WWH4fIWK6jgudqNSKoa?= =?us-ascii?Q?EwmkAdyN0Oi3z0uh9dwv5TU27Nfny1yrxbyRiX55dq21hYnE2+SflG3pk8pa?= =?us-ascii?Q?5ndE+IGe2fjMUCu9Ipd+B+/YLPxyU2yWKH5JQKH0q3BqSAnW6IDANfTTN0em?=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SqQ1/CUFI7KJox/7x3I4jGttqA269HNjhN?= =?us-ascii?Q?anFslAEKcvG+1BL/c3NLi71yqN41ASCxHWHd4apJ5AgVPA=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?RK81L33OEyQSLG3jYWbEbdw94TehOWIUyvGrG2Ru1tQmek7GTJl1JNLrbe0A?= =?us-ascii?Q?QfPL0yVDzWt7oX60KG6B0/LF8zfM9rV5E7fwXhr3DSq31GBcpq0YIJs6tAKB?= =?us-ascii?Q?JPFoTxXIrcHfnbZe520KbAqVqd1RaQGQrFDHP5M/KXlo2+1RwQDfVf6craNk?= =?us-ascii?Q?Psxhn8c+EXzJ+IzN+NHyj4ojxKss+KXqXSScgKnpmQth/exiKD12UZ6NRhBv?= =?us-ascii?Q?IdXrNOg+cXdXBilhMAsrj3baW2PD0DdWjiZFg/6SXJYDyAAh2wkE+OA9UqX6?= =?us-ascii?Q?p4BkSTEOFruThvRe+Z6uZLTgAL83afJxD4My7JpMVfGF4+BhFvLKcWtkB1dL?= =?us-ascii?Q?kalaEJEO6cmu9q31bvYKDUnBEbQbUBIQ0mR9PMhqYJQiKL1JlCKVHGPm/UhW?= =?us-ascii?Q?iQ99F4ZOj886Fnk81waSzm8kJ/1/6L1mVgYNZcWDLQ4kkJl7avzuEaAKNbDY?= =?us-ascii?Q?8Y2tqmZW5swYVcCwuWX19BAmGmzw17nostmjCCKe58mu6RCagGEROheeC04c?= =?us-ascii?Q?OaZS7zQp0Ley6HprpaHhlwdiWENaFzl1mcMBbVaVJbqlk4aUvCGBKgMEJ/+p?= =?us-ascii?Q?TnhEyjcYdE/BY+x6LfY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?Q?EhRXT0oKCRkqYxdRqowTHeYCZBVZQXmSV5Cv9MQ7e9CN4EmG6kfYMG7iofx+?= =?us-ascii?Q?bQcO1DEr3mCnDjUe+n97Vdg50AYDvv/xsy5QQZNzILYqRmqbmJP8nSJc1t1P?= =?us-ascii?Q?1w=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 564ef752-d123-4c09-1191-08dcafd06b57 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 13:14:47.0746 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MsJM2jM2vFWZI0GmnIvvoTJ1LxTVJSKmwcjlyM8UGBpbBonytT6bq+rS06A0E6qyYi6gEkGRt12Gu/qFiZTM60HUYpKob5M880AGLPkEnj4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB8398 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, Jul 29, 2024 at 02:05:52PM +0100, Anatoly Burakov wrote: > A lot of developers use Visual Studio Code as their primary IDE. This > script generates a configuration file for VSCode that sets up basic build > tasks, launch tasks, as well as C/C++ code analysis settings that will > take into account compile_commands.json that is automatically generated > by meson. > > Files generated by script: > - .vscode/settings.json: stores variables needed by other files > - .vscode/tasks.json: defines build tasks > - .vscode/launch.json: defines launch tasks > - .vscode/c_cpp_properties.json: defines code analysis settings > > The script uses a combination of globbing and meson file parsing to > discover available apps, examples, and drivers, and generates a > project-wide settings file, so that the user can later switch between > debug/release/etc. configurations while keeping their desired apps, > examples, and drivers, built by meson, and ensuring launch configurations > still work correctly whatever the configuration selected. > > This script uses whiptail as TUI, which is expected to be universally > available as it is shipped by default on most major distributions. > However, the script is also designed to be scriptable and can be run > without user interaction, and have its configuration supplied from > command-line arguments. > > Signed-off-by: Anatoly Burakov > --- > Not sure where it would go - contributors guide probably - but I think this script could do with some docs, especially a quick-setup example on how to use. Having it in the docs will also make it more likely someone will use this. /Bruce