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: dweller@dfw.net (David Weller) Subject: Re: Fun with WebAda/GNAT Date: 1996/08/15 Message-ID: <4uv6bs$ffd@dfw.dfw.net>#1/1 X-Deja-AN: 174355024 references: <32120233.484C@lmtas.lmco.com> organization: DFWNet -- Public Internet Access newsgroups: comp.lang.ada Date: 1996-08-15T00:00:00+00:00 List-Id: 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 ! This isn't a slam against GNAT -- it's just a wierd error message (which they always strive to make more understandable). I had intended to send this in as a "please fix?" request. I'm sure RObert will comment on this, but I"m going to cc report@gnat.com for this post. -- Visit the Ada 95 Booch Components Homepage: www.ocsystems.com/booch This is not your father's Ada -- lglwww.epfl.ch/Ada