From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.4 required=3.0 tests=BAYES_00,SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: ... !! GPS Date: Fri, 29 Jan 2021 18:39:41 +0000 Organization: Aioe.org NNTP Server Message-ID: References: <3d337aff-76c2-4360-9223-1d55db2f889fn@googlegroups.com> NNTP-Posting-Host: yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:ZML5FxuUISxGA+fcMEjSTXfkqPE= Xref: reader02.eternal-september.org comp.lang.ada:61235 List-Id: Mehdi Saada <00120260a@gmail.com> writes: > I wish gps weird unintuitive behavior would not add a source of > irritation to my already existing difficulties. > This: > with Ada.Text_IO; use Ada.Text_IO; > procedure Main is begin > Put_Line("essai factoriels: de 1 à 5"); > end Main; > > results in: > /bin/sh -c /home/mehdi/obj/main > [2021-01-29 17:08:00] process terminated successfully, elapsed time: 00.25s Did you choose "run in an external terminal"? Try not checking that box > project Default is > for Source_Dirs use ("src"); > for Object_Dir use "obj"; > for Main use ("main.adb"); > end Default; > > it always uses "src" which includes the files from other > projects/exos. So they appear on the project... ! I suggest you use a different top level directory for each project: ~/project1/... ~/project2/... Also, I find for Exec_Dir use "."; helpful > Is there a simple compiler which still corrects for semantics ? DWIM considered dangerous! Wikipedia: "DWIM (do what I mean) computer systems attempt to anticipate what users intend to do, correcting trivial errors automatically rather than blindly executing users' explicit but potentially incorrect input."