Received: from eggs.gnu.org ([2001:4830:134:3::10]:53769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV1Bc-0004yQ-Pg for qemu-devel@nongnu.org; Tue, 01 Apr 2014 12:05:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WV1BS-00021p-Bl for qemu-devel@nongnu.org; Tue, 01 Apr 2014 12:05:16 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:55727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV1BS-0001xw-0e for qemu-devel@nongnu.org; Tue, 01 Apr 2014 12:05:06 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20140331191631.21034.25433.stgit@fimbulvetr.bsc.es> <20140331191648.21034.9744.stgit@fimbulvetr.bsc.es> <5339C950.8060308@redhat.com> <87ob0lrwl7.fsf@fimbulvetr.bsc.es> <533AD194.8030806@redhat.com> Date: Tue, 01 Apr 2014 18:05:03 +0200 In-Reply-To: <533AD194.8030806@redhat.com> (Eric Blake's message of "Tue, 01 Apr 2014 08:47:48 -0600") Message-ID: <87a9c5m3ww.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v6 3/4] qapi: Add a primitive to include other files from a QAPI schema file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: =?utf-8?Q?Beno=C3=AEt?= Canet , Markus Armbruster , qemu-devel@nongnu.org, Luiz Capitulino Eric Blake writes: > On 04/01/2014 07:46 AM, Llu=C3=ADs Vilanova wrote: >>> The formatting in Beno=C3=AEt's series was a little nicer aesthetically: >>=20 >>> +Inclusion loop detected with file: multi_file_loop_include.json >>> +Path to the broken include is: >>> + multi_file_loop_include.json >>> + multi_loop.json >>=20 >>> Furthermore, it had the benefit of using the spelling provided by the >>> user, rather than the absolute path to the files. You want to track >>> canonical paths for detecting the loop, but do NOT want to report >>> absolute paths back to the user - instead, it's nicer to report back the >>> names as they spelled it. >>=20 >> I think it's better reporting absolute paths, otherwise the user has to = mentally >> keep track of the relative paths to get to the file. > If you display the entire chain of paths that you opened as spelled by > the user, the user shouldn't have that hard a time finding the right > file. Furthermore, I seriously doubt we will be including files from > very many subdirectories in our use of this feature - the error is there > to aid a developer adding a new include, and won't ever trigger in > normal usage. If a developer triggers the error, they KNOW that the > error was caused by the very file that they were working on. Ok, then I can send a v8 with that change. Please check v7 to see if there = are more changes required. Thanks, Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth