comp.lang.ada
 help / color / mirror / Atom feed
* GNAT Pretty Printer?
@ 2004-02-13 19:43 Brian Catlin
  2004-02-13 20:04 ` Jeff C,
  0 siblings, 1 reply; 7+ messages in thread
From: Brian Catlin @ 2004-02-13 19:43 UTC (permalink / raw)


I just downloaded GNAT 3.15P and GPS 1.4.  I started GPS, and used the wizard to
create a simple project.  When I tried to compile the project, I got the
following error:
-------------------------------------------------
gnatmake -d -Pd:\temp\adatest\test.gpr d:\temp\adatest\Test.adb
test.gpr:7:12: "pretty_printer" is not an allowed package name
test.gpr:8:11: warning: undefined attribute "default_switches"
gnatmake: "d:\temp\adatest\test.gpr" processing failed

process exited with status 4

-------------------------------------------------

Where do I get the GNAT Pretty Printer?

Here is the project file:
-------------------------------------------------
project Test is

   for Languages use ("Ada");
   for Source_Dirs use (".");
   for Object_Dir use ".";

   package Pretty_Printer is
      for Default_Switches ("ada") use ("");
   end Pretty_Printer;

   package Linker is
      for Default_Switches ("ada") use ("-g");
   end Linker;

   package Binder is
      for Default_Switches ("ada") use ("-static");
   end Binder;

   package Compiler is
      for Default_Switches ("ada") use ("-g");
      for Default_Switches ("c") use ("");
      for Default_Switches ("c++") use ("");
   end Compiler;

   package Builder is
      for Default_Switches ("ada") use ("-g", "-gnatQ");
   end Builder;

   for Main use ("Test.adb");

end Test;

-------------------------------------------------

 -Brian





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GNAT Pretty Printer?
  2004-02-13 19:43 GNAT Pretty Printer? Brian Catlin
@ 2004-02-13 20:04 ` Jeff C,
  2004-02-13 20:21   ` Brian Catlin
  2004-02-14  2:10   ` Stephen Leake
  0 siblings, 2 replies; 7+ messages in thread
From: Jeff C, @ 2004-02-13 20:04 UTC (permalink / raw)



"Brian Catlin" <BrianC@sannas.org.bad> wrote in message
news:EN9Xb.2799$WW3.1042@newsread2.news.pas.earthlink.net...
> I just downloaded GNAT 3.15P and GPS 1.4.  I started GPS, and used the
wizard to
> create a simple project.  When I tried to compile the project, I got the
> following error:
> -------------------------------------------------
> gnatmake -d -Pd:\temp\adatest\test.gpr d:\temp\adatest\Test.adb
> test.gpr:7:12: "pretty_printer" is not an allowed package name
> test.gpr:8:11: warning: undefined attribute "default_switches"
> gnatmake: "d:\temp\adatest\test.gpr" processing failed
>

GNAT 3.15p does not contain support for the gnat pretty printer capability
that GPS uses. I've posted a few times the fact that gnat 3.15 is not really
fully compatible with GPS and that it leaves people
thinking GPS is more broken than it already is.

When gcc 3.4 is finally released and then updated for mingw you should
be able to get this capability. Note that this is just more than a package
that
you need to download for this to work. It really needs to be fully
supported by the compiler.






^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GNAT Pretty Printer?
  2004-02-13 20:04 ` Jeff C,
@ 2004-02-13 20:21   ` Brian Catlin
  2004-02-14  0:27     ` Jeff C,
  2004-02-14  2:10   ` Stephen Leake
  1 sibling, 1 reply; 7+ messages in thread
From: Brian Catlin @ 2004-02-13 20:21 UTC (permalink / raw)


"Jeff C," <jcreem@yahoo.com> wrote in message
news:75aXb.29490$uV3.52442@attbi_s51...
>
> "Brian Catlin" <BrianC@sannas.org.bad> wrote in message
> news:EN9Xb.2799$WW3.1042@newsread2.news.pas.earthlink.net...
> > I just downloaded GNAT 3.15P and GPS 1.4.  I started GPS, and used the
> wizard to
> > create a simple project.  When I tried to compile the project, I got the
> > following error:
> > -------------------------------------------------
> > gnatmake -d -Pd:\temp\adatest\test.gpr d:\temp\adatest\Test.adb
> > test.gpr:7:12: "pretty_printer" is not an allowed package name
> > test.gpr:8:11: warning: undefined attribute "default_switches"
> > gnatmake: "d:\temp\adatest\test.gpr" processing failed
> >
>
> GNAT 3.15p does not contain support for the gnat pretty printer capability
> that GPS uses. I've posted a few times the fact that gnat 3.15 is not really
> fully compatible with GPS and that it leaves people
> thinking GPS is more broken than it already is.
>
> When gcc 3.4 is finally released and then updated for mingw you should
> be able to get this capability. Note that this is just more than a package
> that you need to download for this to work. It really needs to be fully
> supported by the compiler.

So, if I download a snapshot of GCC 3.4, how do I configure GPS to use it?

 -Brian





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GNAT Pretty Printer?
  2004-02-13 20:21   ` Brian Catlin
@ 2004-02-14  0:27     ` Jeff C,
  2004-02-14  2:11       ` Stephen Leake
  0 siblings, 1 reply; 7+ messages in thread
From: Jeff C, @ 2004-02-14  0:27 UTC (permalink / raw)



"Brian Catlin" <BrianC@sannas.org.bad> wrote in message news:mlaXb.2684> >
> > When gcc 3.4 is finally released and then updated for mingw you should
> > be able to get this capability. Note that this is just more than a
package
> > that you need to download for this to work. It really needs to be fully
> > supported by the compiler.
>
> So, if I download a snapshot of GCC 3.4, how do I configure GPS to use it?
>
>  -Brian
>
>

If it is the only one installed and in your path then it should just use it.
Not sure the best
way to get it to use one of multiple installed versions (the project
properties tab allows you to select
different compilers but I have only used it when the compiler driver/tools
have unique prefix values
(e.g. powerpc-vxworks-gcc))





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GNAT Pretty Printer?
  2004-02-13 20:04 ` Jeff C,
  2004-02-13 20:21   ` Brian Catlin
@ 2004-02-14  2:10   ` Stephen Leake
  2004-02-14 17:09     ` Gautier Write-only
  1 sibling, 1 reply; 7+ messages in thread
From: Stephen Leake @ 2004-02-14  2:10 UTC (permalink / raw)
  To: comp.lang.ada

"Jeff C," <jcreem@yahoo.com> writes:

> "Brian Catlin" <BrianC@sannas.org.bad> wrote in message
> news:EN9Xb.2799$WW3.1042@newsread2.news.pas.earthlink.net...
> > I just downloaded GNAT 3.15P and GPS 1.4.  I started GPS, and used the
> wizard to
> > create a simple project.  When I tried to compile the project, I got the
> > following error:
> > -------------------------------------------------
> > gnatmake -d -Pd:\temp\adatest\test.gpr d:\temp\adatest\Test.adb
> > test.gpr:7:12: "pretty_printer" is not an allowed package name
> > test.gpr:8:11: warning: undefined attribute "default_switches"
> > gnatmake: "d:\temp\adatest\test.gpr" processing failed
> >
> 
> GNAT 3.15p does not contain support for the gnat pretty printer capability
> that GPS uses. I've posted a few times the fact that gnat 3.15 is not really
> fully compatible with GPS and that it leaves people
> thinking GPS is more broken than it already is.
> 
> When gcc 3.4 is finally released and then updated for mingw you should
> be able to get this capability. Note that this is just more than a package
> that
> you need to download for this to work. It really needs to be fully
> supported by the compiler.

Right. In the mean time, you can try editing the .gpr project file;
just delete the "pretty printer" package. Next time you modify a
project setting, it will reappear, which will be annoying.

Better to use the One True Editor, Gnu Emacs. It doesn't insist
on writting the project file for you, so you can use them quite
successfully with GNAT 3.15p. It takes longer to learn than GPS, but
it is well worth it!

-- 
-- Stephe




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GNAT Pretty Printer?
  2004-02-14  0:27     ` Jeff C,
@ 2004-02-14  2:11       ` Stephen Leake
  0 siblings, 0 replies; 7+ messages in thread
From: Stephen Leake @ 2004-02-14  2:11 UTC (permalink / raw)
  To: comp.lang.ada

"Jeff C," <jcreem@yahoo.com> writes:

> "Brian Catlin" <BrianC@sannas.org.bad> wrote in message news:mlaXb.2684> >
> > > When gcc 3.4 is finally released and then updated for mingw you should
> > > be able to get this capability. Note that this is just more than a
> package
> > > that you need to download for this to work. It really needs to be fully
> > > supported by the compiler.
> >
> > So, if I download a snapshot of GCC 3.4, how do I configure GPS to use it?
> >
> >  -Brian
> >
> >
> 
> If it is the only one installed and in your path then it should just use it.
> Not sure the best
> way to get it to use one of multiple installed versions (the project
> properties tab allows you to select
> different compilers but I have only used it when the compiler driver/tools
> have unique prefix values
> (e.g. powerpc-vxworks-gcc))

Set your PATH from a shell script, then launch GPS from the path.
Command line shells still have their uses :).

-- 
-- Stephe




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GNAT Pretty Printer?
  2004-02-14  2:10   ` Stephen Leake
@ 2004-02-14 17:09     ` Gautier Write-only
  0 siblings, 0 replies; 7+ messages in thread
From: Gautier Write-only @ 2004-02-14 17:09 UTC (permalink / raw)


Stephen Leake:

> Right. In the mean time, you can try editing the .gpr project file;
> just delete the "pretty printer" package. Next time you modify a
> project setting, it will reappear, which will be annoying.
> 
> Better to use the One True Editor, Gnu Emacs. It doesn't insist
> on writting the project file for you, so you can use them quite
> successfully with GNAT 3.15p. It takes longer to learn than GPS, but
> it is well worth it!

While you are advertising for editors, I'd also recommend to take
a look at AdaGIDE:

  http://www.usafa.af.mil/dfcs/bios/mcc_html/adagide.html

It's difficult to have an easier IDE. It also offers a very
light alternative to the usual "project". Since Ada already
supports via its modularity most of a project's contents,
AdaGIDE's philosophy is to complete only what is missing
(pathes, options, ressources,...) via the local gnat.ago file.
________________________________________________________
Gautier  --  http://www.mysunrise.ch/users/gdm/gsoft.htm

NB: For a direct answer, e-mail address on the Web site!



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-02-14 17:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-13 19:43 GNAT Pretty Printer? Brian Catlin
2004-02-13 20:04 ` Jeff C,
2004-02-13 20:21   ` Brian Catlin
2004-02-14  0:27     ` Jeff C,
2004-02-14  2:11       ` Stephen Leake
2004-02-14  2:10   ` Stephen Leake
2004-02-14 17:09     ` Gautier Write-only

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox