From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e507e3d80b7abf1e X-Google-Attributes: gid103376,public From: Ken Garlington Subject: Re: Fun with WebAda/GNAT Date: 1996/08/16 Message-ID: <3214572A.1632@lmtas.lmco.com>#1/1 X-Deja-AN: 174835173 references: <32120233.484C@lmtas.lmco.com> <4uv6bs$ffd@dfw.dfw.net> content-type: text/plain; charset=us-ascii organization: Lockheed Martin Tactical Aircraft Systems mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.02 (Macintosh; I; 68K) Date: 1996-08-16T00:00:00+00:00 List-Id: David Weller wrote: > > In article <32120233.484C@lmtas.lmco.com>, > Ken Garlington wrote: > >I created a driver procedure for a package I wanted to test, and > >accidentally called the procedure's file "person_test.ads". I > >got a warning about the file name, so I copied the file to > >"person_test.adb" -- without deleting the .ads file. Here's the fun > >error I got: > > 1. with Person; > > 2. procedure Person_Test is > > | > > >>> file "person_test.ads" does not contain expected unit > > >>> expected unit "Person_Test" > > >>> found unit "Person_Test" > > > > But wait! There's more! > > We noticed a similar problem in the project we were doing. It was > clear there was a lurking .ads file around, but it wasn't in the > directory. We were a little confused until we realized that it was > finding it in one of the directories in the ADA_INCLUDE_PATH ! Of course, with WebAda this sort of problem is really annoying, since as far as I can tell there's no way to delete files! -- LMTAS - "Our Brand Means Quality"