the first version (very alpha release) of Ada for Netbeans is present
to this link http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=13977.
A lot of functionalities are not available or only draft, see
http://wiki.netbeans.org/Ada for more details on the features.
Thanx for your help,
Andrea
Hi Andrea
Is there any preferred way to send you our feedbacks (direct mail ?,
comp.lang.ada ?, Netbeans forum ? ...) ?
Regards.
In this post for now it's OK...
Thanks
Andrea
raster a écrit :
Hi,
Thanks for this first release :)
With netbeans 6.5 all the installation process is smooth, great.
My gnat directories are not in an "standard" place and so when I try to
create a new project I have a "Wrong Ada Platform" message.
If I try to "auto detect" one I get nothing and I don't know which
directory to point to add a new platform.
Can you help me please ?
Thanks in advance, xavier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAklZ8KQACgkQVIZi0A5BZF4PKwCggyN1WPEYWlJqhHEVVVTbZbni
JZYAn3EYHn9WbrEYjnbnrWkSS/J97fuP
=lU3i
-----END PGP SIGNATURE-----
Go in Tools->Ada Platform, press New button and chose the root folder
of GNAT installation.
Ciao
Andrea
raster a écrit :
> On Dec 30, 10:57 am, xavier grave <xavier.gr...@ipno.in2p3.fr> wrote:
> raster a écrit :
>
>>>> Hi all,
>>>> the first version (very alpha release) of Ada for Netbeans is present
>>>> to this linkhttp://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?p....
>>>> A lot of functionalities are not available or only draft, see
>>>> http://wiki.netbeans.org/Adafor more details on the features.
>>>> Thanx for your help,
>>>> Andrea
> Hi,
>
> Thanks for this first release :)
>
> With netbeans 6.5 all the installation process is smooth, great.
>
> My gnat directories are not in an "standard" place and so when I try to
> create a new project I have a "Wrong Ada Platform" message.
> If I try to "auto detect" one I get nothing and I don't know which
> directory to point to add a new platform.
>
> Can you help me please ?
> Thanks in advance, xavier
>
> Go in Tools->Ada Platform, press New button and chose the root folder
> of GNAT installation.
Thanks for the tip.
I selected /tools/ada (which contains bin lib and so on) and then OK but
I don't get any new platform. I had also a try with /tools/ada/bin
without much success.
I'm running a Debain sid i386.
Hope it will help.
Sorry to be so dumb with netbeans, I'm used to emacs + ada-mode :)
xavier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAklaBoIACgkQVIZi0A5BZF4XyQCfaRsA60Qg/uvzjsEVeePvEH/9
hM4AoI2SssnKNR6AG2QDSgzgEXCa+Tiq
=jlVH
-----END PGP SIGNATURE-----
Thanx for your information, but unfortunately I tested Ada for
Netbeans only windows systems.
I'll try to understand where is the problem and as soon as possible
I'll install a version of linux on my laptap.
Ciao and thanx again.
Andrea
Thanx for your information, but unfortunately I tested Ada for
Netbeans only windows systems.
I'll try to understand where is the problem and as soon as possible
I'll install a version of linux on my laptap.
Ciao and thanx again.
Andrea
FYI: I have had really good luck running Linux in Sun's VirtualBox on
Windows. It's a free download.
Regards,
Steve
(Sorry about the improper quoting... my posting tool isn't working correctly
right now)
** Posted from http://www.teranews.com **
OK. Here are my first comments.
I had the same problem : Auto Detect was not working.
Sorry ... I post it too rapidly ...
I meant :
I had the same "Auto detect" Problem - It is suppose to look for
gnatmake.exe files, right ?
So I had the GNAT GPL root folder, and was able to create a first Ada
for Netbeans project.
If I understand correctly, it creates a gpr file based on the Netbean
project properties, right ?
No chance to use an already existing gpr file ?
The editor detects incorrect syntax error, particulary with Character
and Strings like the following ones :
package test_ada_for_netbeans is
A_character : constant character := '"';
Another_character : constant Character := '''';
A_String : constant String := """";
end test_ada_for_netbeans;
That s all for the moment.
Regards.
> If I understand correctly, it creates a gpr file based on the Netbean
> project properties, right ?
No, the project is an ant based project and the gpr file is created at
runtime when build/clean command are executed.
> No chance to use an already existing gpr file ?
In the future I'll create the import from gpr file.
> The editor detects incorrect syntax error, particulary with Character
> and Strings like the following ones :
> package test_ada_for_netbeans is
>
> A_character : constant character := '"';
> Another_character : constant Character := '''';
>
> A_String : constant String := """";
>
> end test_ada_for_netbeans;
>
For this problem I am already to the work.
I thank all for precious comments.
Ciao,
Anndrea
> xavier
> Thanx for your information, but unfortunately I tested Ada for
> Netbeans only windows systems.
> I'll try to understand where is the problem and as soon as possible
> I'll install a version of linux on my laptap.
Thanks to YOU for your great work. I'll wait, no problem.
> Ciao and thanx again.
> Andrea
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAklafWcACgkQVIZi0A5BZF62ywCgwqi9yOIX1ks8dtRGWwnS3q6d
RpEAoIYZQkhqgw2wl1d+CglENwP02sDo
=N3jm
-----END PGP SIGNATURE-----
> Go in Tools->Ada Platform, press New button and chose the root folder
> of GNAT installation.
What do you mean by 'root folder of gnat'? In Debian you have the
binaries (gnat, gnatmake, gnatprep,...) in /usr/bin, the runtime
library source is in /usr/lib/gcc/i486-linux-gnu/4.3, the dlls in
/usr/lib. If you need to call gnat, you can simply call 'gnat', because it
is in the path.
> What do you mean by 'root folder of gnat'?
You are right. This sentence is valid only for windows users. I have
executed some tests on only windows. Hardly possible I will install
linux on my pc.
> In Debian you have the
> binaries (gnat, gnatmake, gnatprep,...) in /usr/bin, the runtime
> library source is in /usr/lib/gcc/i486-linux-gnu/4.3, the dlls in
> /usr/lib. If you need to call gnat, you can simply call 'gnat', because it
> is in the path.
Yes I know, in fact with the function Auto Detect I look for gnat in
the /usr/bin folder, but it seems that It doesn't work.
I believe that I will install debian as soon as possible ;)
Ciao and thanx again
Andrea
I solved any problems with 0.1.6 version (http://plugins.netbeans.org/
PluginPortal/faces/PluginDetailPage.jsp?pluginid=13977):
1. Fix string and char literal recognition.
2. Fix new ada platform and autodetect in linux system.
3. Fix gpr template file for linux systems.
4. Fix project actions for linux systems.
This first version of ada for netbeans I have released for the
communities to have some necessary feedbacks to the pursuance of the
project available, to understand if the road that I have undertaken is
correct.
Thanks all for your collaboration.
Andrea
Hi,
I have tested your last version on a Debian GNU/Linux with custom
directory for GNAT (GPL 2007). It worked near perfection :)
The only problem (very little) I encountered was that I tried directly a
clean and build project. It works now because of a simple build that
create the needed ../build directory.
One more time : thank you for this great job.
It will ease my work at lab to bring people to Ada since they mostly
come from Java + Netbeans.
xavier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkliZJcACgkQVIZi0A5BZF5tdACffYB0OWNhVraJW3PWGVuX2nWl
b1gAniTh3qJP8eqxZ3gFLaim4vSIMDiU
=KHWO
-----END PGP SIGNATURE-----
Thanks for these fixes.
So, I have installed 0.1.6
Here my comments :
1/ Auto-Detect is still not giving me any results.
I am using Windows XP SP3 with Gnat GPL 2008 and Gnat GPL 2007
"manually copied" somewhere on C:
I start Netbeans 6.5 from a Command Prompt with PATH adjusted
(depending on which compiler I want to use).
FYI, (Emacs + ada-mode) and GPS are working fine
2/ Here under you will find an updated Ada Source file for which the
editor claims there are "Syntax error"
Regards and thanks again for that contribution.
--------------------------------------------------------------------------------
-- File: test_ada_for_netbeans.ads
--
-- Created on 30 déc. 2008
--------------------------------------------------------------------------------
--
-- Description of test_ada_for_netbeans
--
-- @author jerome
--
package Test_Ada_For_Netbeans is
-- Problem in 0.1.5
A_Character : constant Character := 's';
Another_Character : constant Character := 's';
A_String : constant String := """";
-- Problem in 0.1.6
generic
type A_Type is (<>);
package A_Generic_Package is
function Is_Alive (A_Variable : A_Type) return Boolean;
end A_Generic_Package;
end Test_Ada_For_Netbeans;
Can you tell me the complete path of GNAT GPL 2007 and 2008 that you
have on your computer?
I will try to understand because it doesn't work. Also I use GNAT GPL
2008.
> 2/ Here under you will find an updated Ada Source file for which the
> editor claims there are "Syntax error"
>
> -- Problem in 0.1.6
> generic
> type A_Type is (<>);
> package A_Generic_Package is
> function Is_Alive (A_Variable : A_Type) return Boolean;
> end A_Generic_Package;
>
For this problem I am already to the work.
Thanks for your precious comments.
Ciao,
Anndrea
Here is the requested information :
On my Windows XP-SP3 computer, I have gnat/gcc compilers installed
in :
- C:\Strategies\GNAT_GPL_2008
- C:\Strategies\GNAT_GPL_2007
- C:\Stratgies\MinGW-3.4.5
I start Netbeans from a command prompt, with current directory set as
C:\Work-SVN\HEAD
Ciao,
Jérôme
Hi Jérôme,
I have just implemented, but not released, the fixing of the problems
1 and 2.
1. For to solve the auto-detect, I check the environment path variable
to see if I find any other Ada platforms installations.
2. The syntax error was cause by a semicolon in more.
Thanks for your precious information.
When I will release a new version you will be informed.
Ciao,
Andrea
I have just published a new version of Ada for NB 0.1.7:
http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=13977
It's an incremental version of job.
I have also corrected a pair of bugs from your comments (Jérôme and
xavier) and and to improve the auto-detect, I also check the
environment path variable now.
ciao
Andrea
Hello Andrea.
I confirm : Everything I have reported is fixed with 0.1.7.
Thanks a lot !
By the way, is there any possibility to contribute to that project ?
A few comments about 0.1.7 :
1/ In Project Properties > Build > Main Module > Browse, it would be
good
a/ to have files sorted alphabetically
b/ to have an optionnal filter (ex : *.adb; *-test.adb)
2/
Here under you will find an updated Ada Source file for which the
editor claims there are "Syntax error".
PS : Uncomment pragma License, and you will get another one.
--
--------------------------------------------------------------------------------
-- File: Ada4nb_v017.ads
--
-- Created on 30 déc. 2008
--------------------------------------------------------------------------------
--
-- Description of Ada4nb_v017
--
-- @author jerome
--
-- pragma License (Unrestricted);
package Ada4nb_v017 is
type Ensemble is array (Character) of Boolean;
Operateur : constant Ensemble := Ensemble'('+' | '-' => True,
others => False);
procedure Query_Element
(Position : Integer;
Process : not null access procedure (Element : Integer));
end Ada4nb_v017;
> Here under you will find an updated Ada Source file for which the
> editor claims there are "Syntax error".
> PS : Uncomment pragma License, and you will get another one.
...
> type Ensemble is array (Character) of Boolean;
> Operateur : constant Ensemble := Ensemble'('+' | '-' => True,
> others => False);
AFAICT this handling of ' (I guess) would typical of
some automatically generated parsers. (The automatic
color highlighting of program text in Wikipedia
suffered from the same problem, last time I tried.)
Hi jerome,
> By the way, is there any possibility to contribute to that project ?
Yes! You are already doing it.
I will answer you with calm this evening I am very busy in another
project.
>
> A few comments about 0.1.7 :
> 1/ In Project Properties > Build > Main Module > Browse, it would be
> good
> a/ to have files sorted alphabetically
> b/ to have an optionnal filter (ex : *.adb; *-test.adb)
Good! A lot of functions are only draft. I accept very gladly this
type of comments.
> 2/
> Here under you will find an updated Ada Source file for which the
> editor claims there are "Syntax error".
> PS : Uncomment pragma License, and you will get another one.
>
> --
> --------------------------------------------------------------------------------
> -- File: Ada4nb_v017.ads
> --
> -- Created on 30 déc. 2008
> --------------------------------------------------------------------------------
> --
> -- Description of Ada4nb_v017
> --
> -- @author jerome
> --
> -- pragma License (Unrestricted);
> package Ada4nb_v017 is
>
> type Ensemble is array (Character) of Boolean;
> Operateur : constant Ensemble := Ensemble'('+' | '-' => True,
> others => False);
>
> procedure Query_Element
> (Position : Integer;
> Process : not null access procedure (Element : Integer));
>
> end Ada4nb_v017;
Access-to-subprogram is an Ada 2005 extension.
My parser for now is compatible only with the syntax of Ada 95.
For this syntax error problem, hardly possible I will resolve it.
Operateur : constant Ensemble := Ensemble'('+' | '-' => True, others
=> False);
As soon as possible I send you information on as to contribute to the
project.
Thanks for your precious information.
Ciao,
Andrea
When you hit a ', you have to check the previous token. According to
the Ada syntax, after the keyword all, an identifier, a right
parenthesis, it has to be treated as a single apostrophe, else it's
the start of a character literal.
Sun's VirtualBox - is this like VMWARE? which distro of Linux have you
run successfully? In particular with gnat? Hypothetically, could one
have the same dir structure and build on both platforms?
thanks for any info,
srini
Nice job!!!
I've been struggling to get XCode and Mac-Ada working but the Netbeans
integration worked much more smoothly...
I noticed that when I clicked on "Manage" to detect/select the GNAT
installation that when it came back after selection the warning about
not being a valid configuration was still there and the "Next>" button
not available. However, I just clicked on "<Back" and then returned to
the page with "Next>" and
warning had gone and the selection made and was able to create the
project. That was on both WinXP and Mac OS X.
Cheers
-- Martin
Yes, it is very much like VMWARE.
I have run both 32 bit and 64 bit versions of Ubuntu. I have run gnat on
both versions. The VirtualBox manual describes officially supported "Guest
Additions" for Fedora, Redhat, SUSE, and Ubuntu. I have also run Windows
2000 with no issues.
The 64 bit version of virtual box version 2.1.2 is about a 40 MB download.
I started using the 64 bit version when I started running Vista 64. I used
the 32 bit version when I was running XP.
The easiest way to install an OS is to download an ISO image and mount it as
a virtual disk on the VM. With Ubuntu it just worked.
I have used 3 virtual machines (in order of preference): VMWARE Workstation,
VirtutalBox and VirtualPC.
I think VMWARE is nicer than VirtualBox, but you can't beat the price of
VirtualBox.
Sorry I can't help with building gnat. I haven't tried it in a long time
and didn't know what I was doing the last time I did.
Regards,
Steve
I thank all for the compliments and for the competent and precious
comments.
I would like to give you a small information, also answering to
Jérôme, on the as to collaborate with this project.
Have I activated on Source Forge the possibility to communicate bugs,
futures and support requests => http://sourceforge.net/tracker/?group_id=248853.
To collaborate as developer is necessary to follow the information
that you find in this page http://www.netbeans.org/community/contribute/project-and-contrib.html,
if it is not clear what is necessary you can ask to me.
Ciao and thanks,
Andrea