comp.lang.ada
 help / color / mirror / Atom feed
* Failure integrating .NET GPL version of GNAT into Visual Studio 2005
@ 2008-08-26  0:06 Fionn Mac Cumhaill
  2008-08-27 18:57 ` Rob Veenker
  0 siblings, 1 reply; 7+ messages in thread
From: Fionn Mac Cumhaill @ 2008-08-26  0:06 UTC (permalink / raw)



Has anybody done this successfully? I get a package load failure error
message when Visual Studio 2005 starts. If I ignore the message and
try to create an Ada project, I get the following message, which is
similar to the first one:

The AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=0c733cd32e50e760
({C9ECF690-C138-42CE-A401-47A5E063CD75}) did not load because of
previous errors. For assistance, contact the package vendor. To
attempt to load this package again, type 'devenv /resetskippkgs' at
the command prompt.




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

* Re: Failure integrating .NET GPL version of GNAT into Visual Studio 2005
  2008-08-26  0:06 Failure integrating .NET GPL version of GNAT into Visual Studio 2005 Fionn Mac Cumhaill
@ 2008-08-27 18:57 ` Rob Veenker
  2008-08-29  6:03   ` Paul
  0 siblings, 1 reply; 7+ messages in thread
From: Rob Veenker @ 2008-08-27 18:57 UTC (permalink / raw)


Fionn Mac Cumhaill wrote:

> 
> Has anybody done this successfully? I get a package load failure error
> message when Visual Studio 2005 starts. If I ignore the message and
> try to create an Ada project, I get the following message, which is
> similar to the first one:
> 
> The AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0,
> Culture=neutral, PublicKeyToken=0c733cd32e50e760
> ({C9ECF690-C138-42CE-A401-47A5E063CD75}) did not load because of
> previous errors. For assistance, contact the package vendor. To
> attempt to load this package again, type 'devenv /resetskippkgs' at
> the command prompt.


On my machine I found the same problem. There appears to be a registry problem in the GPL version. Normally I use the GNAT Pro version.
Although I'm no expert, I did find that adding the following registry information fixed this problem on my machine.

Put this text in a file called fix.reg and double click on it.

------------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}]
@="AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0c733cd32e50e760"
"Assembly"="AdaPackage, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0c733cd32e50e760"
"Class"="AdaCore.AdaPackage.AdaPackage"
"CodeBase"="C:\\Program Files\\Gnatpro\\vs_integration\\AdaPackage.dll"
"CompanyName"="AdaCore"
"ID"=dword:00000068
"InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
"MinEdition"="Standard"
"ProductName"="GNAT Pro for .NET"
"ProductVersion"="1.0.0.0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}\SatelliteDll]
"DllName"="vs_lexer.dll"
"Path"="C:\\Program Files\\Gnatpro\\vs_integration"
------------------------------------------------

BTW, when an Ada project can't be opened, i.e. there is a problem with adaproj, 
also check the registry for a value skiploading=1 (should be 0) on the following key: 
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}

Hope this helps
Rob




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

* Re: Failure integrating .NET GPL version of GNAT into Visual Studio 2005
  2008-08-27 18:57 ` Rob Veenker
@ 2008-08-29  6:03   ` Paul
  2008-08-31 16:02     ` Fionn Mac Cumhaill
  0 siblings, 1 reply; 7+ messages in thread
From: Paul @ 2008-08-29  6:03 UTC (permalink / raw)


Thanks Rob.  I didn't ask the original question but had the same problem. 
After adjusting the paths in the fix it worked for me.

Rgds
Paul

"Rob Veenker" <veenker@xs4all.nl> wrote in message 
news:48b5a3a1$0$196$e4fe514c@news.xs4all.nl...
> Fionn Mac Cumhaill wrote:
>
>>
>> Has anybody done this successfully? I get a package load failure error
>> message when Visual Studio 2005 starts. If I ignore the message and
>> try to create an Ada project, I get the following message, which is
>> similar to the first one:
>>
>> The AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0,
>> Culture=neutral, PublicKeyToken=0c733cd32e50e760
>> ({C9ECF690-C138-42CE-A401-47A5E063CD75}) did not load because of
>> previous errors. For assistance, contact the package vendor. To
>> attempt to load this package again, type 'devenv /resetskippkgs' at
>> the command prompt.
>
>
> On my machine I found the same problem. There appears to be a registry 
> problem in the GPL version. Normally I use the GNAT Pro version.
> Although I'm no expert, I did find that adding the following registry 
> information fixed this problem on my machine.
>
> Put this text in a file called fix.reg and double click on it.
>
> ------------------------------------------------
> Windows Registry Editor Version 5.00
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}]
> @="AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0, 
> Culture=neutral, PublicKeyToken=0c733cd32e50e760"
> "Assembly"="AdaPackage, Version=1.0.0.0, Culture=neutral, 
> PublicKeyToken=0c733cd32e50e760"
> "Class"="AdaCore.AdaPackage.AdaPackage"
> "CodeBase"="C:\\Program Files\\Gnatpro\\vs_integration\\AdaPackage.dll"
> "CompanyName"="AdaCore"
> "ID"=dword:00000068
> "InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
> "MinEdition"="Standard"
> "ProductName"="GNAT Pro for .NET"
> "ProductVersion"="1.0.0.0"
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}\SatelliteDll]
> "DllName"="vs_lexer.dll"
> "Path"="C:\\Program Files\\Gnatpro\\vs_integration"
> ------------------------------------------------
>
> BTW, when an Ada project can't be opened, i.e. there is a problem with 
> adaproj,
> also check the registry for a value skiploading=1 (should be 0) on the 
> following key:
> HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}
>
> Hope this helps
> Rob
> 





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

* Re: Failure integrating .NET GPL version of GNAT into Visual Studio 2005
  2008-08-29  6:03   ` Paul
@ 2008-08-31 16:02     ` Fionn Mac Cumhaill
  2008-09-02 17:59       ` Rob Veenker
  0 siblings, 1 reply; 7+ messages in thread
From: Fionn Mac Cumhaill @ 2008-08-31 16:02 UTC (permalink / raw)


On Fri, 29 Aug 2008 06:03:07 GMT, "Paul" <pcas1986@bigpond.net.au>
wrote:

>Thanks Rob.  I didn't ask the original question but had the same problem. 
>After adjusting the paths in the fix it worked for me.
>
>Rgds
>Paul
>
>"Rob Veenker" <veenker@xs4all.nl> wrote in message 
>news:48b5a3a1$0$196$e4fe514c@news.xs4all.nl...
>> Fionn Mac Cumhaill wrote:
>>
>>>
>>> Has anybody done this successfully? I get a package load failure error
>>> message when Visual Studio 2005 starts. If I ignore the message and
>>> try to create an Ada project, I get the following message, which is
>>> similar to the first one:
>>>
>>> The AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0,
>>> Culture=neutral, PublicKeyToken=0c733cd32e50e760
>>> ({C9ECF690-C138-42CE-A401-47A5E063CD75}) did not load because of
>>> previous errors. For assistance, contact the package vendor. To
>>> attempt to load this package again, type 'devenv /resetskippkgs' at
>>> the command prompt.
>>
>>
>> On my machine I found the same problem. There appears to be a registry 
>> problem in the GPL version. Normally I use the GNAT Pro version.
>> Although I'm no expert, I did find that adding the following registry 
>> information fixed this problem on my machine.
>>
>> Put this text in a file called fix.reg and double click on it.
>>
>> ------------------------------------------------
>> Windows Registry Editor Version 5.00
>>
>> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}]
>> @="AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0, 
>> Culture=neutral, PublicKeyToken=0c733cd32e50e760"
>> "Assembly"="AdaPackage, Version=1.0.0.0, Culture=neutral, 
>> PublicKeyToken=0c733cd32e50e760"
>> "Class"="AdaCore.AdaPackage.AdaPackage"
>> "CodeBase"="C:\\Program Files\\Gnatpro\\vs_integration\\AdaPackage.dll"
>> "CompanyName"="AdaCore"
>> "ID"=dword:00000068
>> "InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
>> "MinEdition"="Standard"
>> "ProductName"="GNAT Pro for .NET"
>> "ProductVersion"="1.0.0.0"
>>
>> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}\SatelliteDll]
>> "DllName"="vs_lexer.dll"
>> "Path"="C:\\Program Files\\Gnatpro\\vs_integration"
>> ------------------------------------------------
>>
>> BTW, when an Ada project can't be opened, i.e. there is a problem with 
>> adaproj,
>> also check the registry for a value skiploading=1 (should be 0) on the 
>> following key:
>> HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}
>>
>> Hope this helps
>> Rob
>> 
>

It took a bit of hacking on the .reg file, but I got VS to start.
Thanks, Rob - I would never have been able to to this without your
help. I did find that the second section of the .reg file, the
SatelliteDll part, did not load, and I had to break it out as a second
.reg file.

Unfortunately, I still have problems. I tried to build a bare-minimum
project, with this source code:

procedure Project2 is
begin
   null;
end Project2;

and got this failure message:

------ Build started: Project: Project2, Configuration: Debug Any CPU
------
C:\Documents and Settings\David Gressett\My Documents\Visual Studio
2005\Projects\Project2\Project2\Project2.adaproj(38,5): Error MSB4018:
The "CompileTask" task failed unexpectedly.
System.ComponentModel.Win32Exception: The system cannot find the file
specified
   at
System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo
startInfo)
   at System.Diagnostics.Process.Start()
   at CompileTask.CompileTask.Execute()
   at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode
howToExecuteTask, Hashtable projectItemsAvailableToTask,
BuildPropertyGroup projectPropertiesAvailableToTask, Boolean&
taskClassWasFound)
Done building project "Project2.adaproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped
==========



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

* Re: Failure integrating .NET GPL version of GNAT into Visual Studio 2005
  2008-08-31 16:02     ` Fionn Mac Cumhaill
@ 2008-09-02 17:59       ` Rob Veenker
  2008-09-10  1:13         ` kevink4
  0 siblings, 1 reply; 7+ messages in thread
From: Rob Veenker @ 2008-09-02 17:59 UTC (permalink / raw)


Fionn Mac Cumhaill wrote:

> On Fri, 29 Aug 2008 06:03:07 GMT, "Paul" <pcas1986@bigpond.net.au>
> wrote:
> 
>>Thanks Rob.  I didn't ask the original question but had the same problem.
>>After adjusting the paths in the fix it worked for me.
>>
>>Rgds
>>Paul
>>
>>"Rob Veenker" <veenker@xs4all.nl> wrote in message
>>news:48b5a3a1$0$196$e4fe514c@news.xs4all.nl...
>>> Fionn Mac Cumhaill wrote:
>>>
>>>>
>>>> Has anybody done this successfully? I get a package load failure error
>>>> message when Visual Studio 2005 starts. If I ignore the message and
>>>> try to create an Ada project, I get the following message, which is
>>>> similar to the first one:
>>>>
>>>> The AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0,
>>>> Culture=neutral, PublicKeyToken=0c733cd32e50e760
>>>> ({C9ECF690-C138-42CE-A401-47A5E063CD75}) did not load because of
>>>> previous errors. For assistance, contact the package vendor. To
>>>> attempt to load this package again, type 'devenv /resetskippkgs' at
>>>> the command prompt.
>>>
>>>
>>> On my machine I found the same problem. There appears to be a registry
>>> problem in the GPL version. Normally I use the GNAT Pro version.
>>> Although I'm no expert, I did find that adding the following registry
>>> information fixed this problem on my machine.
>>>
>>> Put this text in a file called fix.reg and double click on it.
>>>
>>> ------------------------------------------------
>>> Windows Registry Editor Version 5.00
>>>
>>>
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}]
>>> @="AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0,
>>> Culture=neutral, PublicKeyToken=0c733cd32e50e760"
>>> "Assembly"="AdaPackage, Version=1.0.0.0, Culture=neutral,
>>> PublicKeyToken=0c733cd32e50e760"
>>> "Class"="AdaCore.AdaPackage.AdaPackage"
>>> "CodeBase"="C:\\Program Files\\Gnatpro\\vs_integration\\AdaPackage.dll"
>>> "CompanyName"="AdaCore"
>>> "ID"=dword:00000068
>>> "InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
>>> "MinEdition"="Standard"
>>> "ProductName"="GNAT Pro for .NET"
>>> "ProductVersion"="1.0.0.0"
>>>
>>>
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}\SatelliteDll]
>>> "DllName"="vs_lexer.dll"
>>> "Path"="C:\\Program Files\\Gnatpro\\vs_integration"
>>> ------------------------------------------------
>>>
>>> BTW, when an Ada project can't be opened, i.e. there is a problem with
>>> adaproj,
>>> also check the registry for a value skiploading=1 (should be 0) on the
>>> following key:
>>>
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}
>>>
>>> Hope this helps
>>> Rob
>>> 
>>
> 
> It took a bit of hacking on the .reg file, but I got VS to start.
> Thanks, Rob - I would never have been able to to this without your
> help. I did find that the second section of the .reg file, the
> SatelliteDll part, did not load, and I had to break it out as a second
> .reg file.
> 
> Unfortunately, I still have problems. I tried to build a bare-minimum
> project, with this source code:
> 
> procedure Project2 is
> begin
>    null;
> end Project2;
> 
> and got this failure message:
> 
> ------ Build started: Project: Project2, Configuration: Debug Any CPU
> ------
> C:\Documents and Settings\David Gressett\My Documents\Visual Studio
> 2005\Projects\Project2\Project2\Project2.adaproj(38,5): Error MSB4018:
> The "CompileTask" task failed unexpectedly.
> System.ComponentModel.Win32Exception: The system cannot find the file
> specified
>    at
> System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo
> startInfo)
>    at System.Diagnostics.Process.Start()
>    at CompileTask.CompileTask.Execute()
>    at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode
> howToExecuteTask, Hashtable projectItemsAvailableToTask,
> BuildPropertyGroup projectPropertiesAvailableToTask, Boolean&
> taskClassWasFound)
> Done building project "Project2.adaproj" -- FAILED.
> 
> Build FAILED.
> ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped
> ==========

This looks like an installation problem. Have you tried re-installing
the .Net GNAT compiler ?
You may want to check the registry after deinstallation and search for the
GUID {c9ecf690-c138-42ce-a401-47a5e063cd75} to remove remaining keys.
Also check the installation directory in the .reg file as Paul pointed out
before. Thanks Paul!

Regards,
Rob







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

* Re: Failure integrating .NET GPL version of GNAT into Visual Studio 2005
  2008-09-02 17:59       ` Rob Veenker
@ 2008-09-10  1:13         ` kevink4
  2008-09-10 20:31           ` Rob Veenker
  0 siblings, 1 reply; 7+ messages in thread
From: kevink4 @ 2008-09-10  1:13 UTC (permalink / raw)


On Sep 2, 12:59 pm, Rob Veenker <veen...@xs4all.nl> wrote:
> Fionn Mac Cumhaill wrote:
> > On Fri, 29 Aug 2008 06:03:07 GMT, "Paul" <pcas1...@bigpond.net.au>
> > wrote:
>
> >>Thanks Rob.  I didn't ask the original question but had the same problem.
> >>After adjusting the paths in the fix it worked for me.
>
> >>Rgds
> >>Paul
>
> >>"Rob Veenker" <veen...@xs4all.nl> wrote in message
> >>news:48b5a3a1$0$196$e4fe514c@news.xs4all.nl...
> >>> Fionn Mac Cumhaill wrote:
>
> >>>> Has anybody done this successfully? I get a package load failure error
> >>>> message when Visual Studio 2005 starts. If I ignore the message and
> >>>> try to create an Ada project, I get the following message, which is
> >>>> similar to the first one:
>
> >>>> The AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0,
> >>>> Culture=neutral, PublicKeyToken=0c733cd32e50e760
> >>>> ({C9ECF690-C138-42CE-A401-47A5E063CD75}) did not load because of
> >>>> previous errors. For assistance, contact the package vendor. To
> >>>> attempt to load this package again, type 'devenv /resetskippkgs' at
> >>>> the command prompt.
>
> >>> On my machine I found the same problem. There appears to be a registry
> >>> problem in the GPL version. Normally I use the GNAT Pro version.
> >>> Although I'm no expert, I did find that adding the following registry
> >>> information fixed this problem on my machine.
>
> >>> Put this text in a file called fix.reg and double click on it.
>
> >>> ------------------------------------------------
> >>> Windows Registry Editor Version 5.00
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}]>>> @="AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0,
> >>> Culture=neutral, PublicKeyToken=0c733cd32e50e760"
> >>> "Assembly"="AdaPackage, Version=1.0.0.0, Culture=neutral,
> >>> PublicKeyToken=0c733cd32e50e760"
> >>> "Class"="AdaCore.AdaPackage.AdaPackage"
> >>> "CodeBase"="C:\\Program Files\\Gnatpro\\vs_integration\\AdaPackage.dll"
> >>> "CompanyName"="AdaCore"
> >>> "ID"=dword:00000068
> >>> "InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
> >>> "MinEdition"="Standard"
> >>> "ProductName"="GNAT Pro for .NET"
> >>> "ProductVersion"="1.0.0.0"
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}\SatelliteDll]>>> "DllName"="vs_lexer.dll"
> >>> "Path"="C:\\Program Files\\Gnatpro\\vs_integration"
> >>> ------------------------------------------------
>
> >>> BTW, when an Ada project can't be opened, i.e. there is a problem with
> >>> adaproj,
> >>> also check the registry for a value skiploading=1 (should be 0) on the
> >>> following key:
>
> HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}
>
>
>
>
>
> >>> Hope this helps
> >>> Rob
>
> > It took a bit of hacking on the .reg file, but I got VS to start.
> > Thanks, Rob - I would never have been able to to this without your
> > help. I did find that the second section of the .reg file, the
> > SatelliteDll part, did not load, and I had to break it out as a second
> > .reg file.
>
> > Unfortunately, I still have problems. I tried to build a bare-minimum
> > project, with this source code:
>
> > procedure Project2 is
> > begin
> >    null;
> > end Project2;
>
> > and got this failure message:
>
> > ------ Build started: Project: Project2, Configuration: Debug Any CPU
> > ------
> > C:\Documents and Settings\David Gressett\My Documents\Visual Studio
> > 2005\Projects\Project2\Project2\Project2.adaproj(38,5): Error MSB4018:
> > The "CompileTask" task failed unexpectedly.
> > System.ComponentModel.Win32Exception: The system cannot find the file
> > specified
> >    at
> > System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo
> > startInfo)
> >    at System.Diagnostics.Process.Start()
> >    at CompileTask.CompileTask.Execute()
> >    at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode
> > howToExecuteTask, Hashtable projectItemsAvailableToTask,
> > BuildPropertyGroup projectPropertiesAvailableToTask, Boolean&
> > taskClassWasFound)
> > Done building project "Project2.adaproj" -- FAILED.
>
> > Build FAILED.
> > ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped
> > ==========
>
> This looks like an installation problem. Have you tried re-installing
> the .Net GNAT compiler ?
> You may want to check the registry after deinstallation and search for the
> GUID {c9ecf690-c138-42ce-a401-47a5e063cd75} to remove remaining keys.
> Also check the installation directory in the .reg file as Paul pointed out
> before. Thanks Paul!
>
> Regards,
> Rob

I'm having the same problem with the GPL 2008 version of Gnat GPL
for .NET and Visual Studio Standard 2005.  Fully patched, including an
update from Microsoft today from before I attempted the install.

Installed Gnat for Windows GPL 2008, .net 2008.  And I get the errors.

I tried importing a copy of the reg data above (after modifying it for
c:\gnat\2008..., and that didn't help.

I uninstalled.  Went through the registry deleting anything relating
to Adacore's gnat and reinstalled.  Looked, and the registries matched
the values in my .reg file.

When I try to create a new project, it errors off with te errors
above.

Windows XP for Tablet PC, fully patched with all updates from
Microsoft.  SP3, etc.

I guess I can try to figure out how to use GPS for .net programming,
if possible.

Since this is for personal use, it is probably not likely I can get
support from Adacore.  My company has support for the regular Windows
version and Linux, but not for .net.

Thanks,
Kevin



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

* Re: Failure integrating .NET GPL version of GNAT into Visual Studio 2005
  2008-09-10  1:13         ` kevink4
@ 2008-09-10 20:31           ` Rob Veenker
  0 siblings, 0 replies; 7+ messages in thread
From: Rob Veenker @ 2008-09-10 20:31 UTC (permalink / raw)


kevink4@gmail.com wrote:

> On Sep 2, 12:59 pm, Rob Veenker <veen...@xs4all.nl> wrote:
>> Fionn Mac Cumhaill wrote:
>> > On Fri, 29 Aug 2008 06:03:07 GMT, "Paul" <pcas1...@bigpond.net.au>
>> > wrote:
>>
>> >>Thanks Rob.  I didn't ask the original question but had the same
>> >>problem. After adjusting the paths in the fix it worked for me.
>>
>> >>Rgds
>> >>Paul
>>
>> >>"Rob Veenker" <veen...@xs4all.nl> wrote in message
>> >>news:48b5a3a1$0$196$e4fe514c@news.xs4all.nl...
>> >>> Fionn Mac Cumhaill wrote:
>>
>> >>>> Has anybody done this successfully? I get a package load failure
>> >>>> error message when Visual Studio 2005 starts. If I ignore the
>> >>>> message and try to create an Ada project, I get the following
>> >>>> message, which is similar to the first one:
>>
>> >>>> The AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0,
>> >>>> Culture=neutral, PublicKeyToken=0c733cd32e50e760
>> >>>> ({C9ECF690-C138-42CE-A401-47A5E063CD75}) did not load because of
>> >>>> previous errors. For assistance, contact the package vendor. To
>> >>>> attempt to load this package again, type 'devenv /resetskippkgs' at
>> >>>> the command prompt.
>>
>> >>> On my machine I found the same problem. There appears to be a
>> >>> registry problem in the GPL version. Normally I use the GNAT Pro
>> >>> version. Although I'm no expert, I did find that adding the following
>> >>> registry information fixed this problem on my machine.
>>
>> >>> Put this text in a file called fix.reg and double click on it.
>>
>> >>> ------------------------------------------------
>> >>> Windows Registry Editor Version 5.00
>>
>>
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}]>>>
>> [@="AdaCore.AdaPackage.AdaPackage, AdaPackage, Version=1.0.0.0,
>> >>> Culture=neutral, PublicKeyToken=0c733cd32e50e760"
>> >>> "Assembly"="AdaPackage, Version=1.0.0.0, Culture=neutral,
>> >>> PublicKeyToken=0c733cd32e50e760"
>> >>> "Class"="AdaCore.AdaPackage.AdaPackage"
>> >>> "CodeBase"="C:\\Program
>> >>> Files\\Gnatpro\\vs_integration\\AdaPackage.dll"
>> >>> "CompanyName"="AdaCore" "ID"=dword:00000068
>> >>> "InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
>> >>> "MinEdition"="Standard"
>> >>> "ProductName"="GNAT Pro for .NET"
>> >>> "ProductVersion"="1.0.0.0"
>>
>>
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}\SatelliteDll]>>>
>> ["DllName"="vs_lexer.dll"
>> >>> "Path"="C:\\Program Files\\Gnatpro\\vs_integration"
>> >>> ------------------------------------------------
>>
>> >>> BTW, when an Ada project can't be opened, i.e. there is a problem
>> >>> with adaproj,
>> >>> also check the registry for a value skiploading=1 (should be 0) on
>> >>> the following key:
>>
>>
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Packages\{c9ecf690-c138-42ce-a401-47a5e063cd75}
>>
>>
>>
>>
>>
>> >>> Hope this helps
>> >>> Rob
>>
>> > It took a bit of hacking on the .reg file, but I got VS to start.
>> > Thanks, Rob - I would never have been able to to this without your
>> > help. I did find that the second section of the .reg file, the
>> > SatelliteDll part, did not load, and I had to break it out as a second
>> > .reg file.
>>
>> > Unfortunately, I still have problems. I tried to build a bare-minimum
>> > project, with this source code:
>>
>> > procedure Project2 is
>> > begin
>> > null;
>> > end Project2;
>>
>> > and got this failure message:
>>
>> > ------ Build started: Project: Project2, Configuration: Debug Any CPU
>> > ------
>> > C:\Documents and Settings\David Gressett\My Documents\Visual Studio
>> > 2005\Projects\Project2\Project2\Project2.adaproj(38,5): Error MSB4018:
>> > The "CompileTask" task failed unexpectedly.
>> > System.ComponentModel.Win32Exception: The system cannot find the file
>> > specified
>> > at
>> > System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo
>> > startInfo)
>> > at System.Diagnostics.Process.Start()
>> > at CompileTask.CompileTask.Execute()
>> > at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode
>> > howToExecuteTask, Hashtable projectItemsAvailableToTask,
>> > BuildPropertyGroup projectPropertiesAvailableToTask, Boolean&
>> > taskClassWasFound)
>> > Done building project "Project2.adaproj" -- FAILED.
>>
>> > Build FAILED.
>> > ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped
>> > ==========
>>
>> This looks like an installation problem. Have you tried re-installing
>> the .Net GNAT compiler ?
>> You may want to check the registry after deinstallation and search for
>> the GUID {c9ecf690-c138-42ce-a401-47a5e063cd75} to remove remaining keys.
>> Also check the installation directory in the .reg file as Paul pointed
>> out before. Thanks Paul!
>>
>> Regards,
>> Rob
> 
> I'm having the same problem with the GPL 2008 version of Gnat GPL
> for .NET and Visual Studio Standard 2005.  Fully patched, including an
> update from Microsoft today from before I attempted the install.
> 
> Installed Gnat for Windows GPL 2008, .net 2008.  And I get the errors.
> 
> I tried importing a copy of the reg data above (after modifying it for
> c:\gnat\2008..., and that didn't help.

Make sure the path contains double slashes, i.e. c:\\gnat\\2008
Or you could try to install in c:\Program Files\Gnatpro.

> 
> I uninstalled.  Went through the registry deleting anything relating
> to Adacore's gnat and reinstalled.  Looked, and the registries matched
> the values in my .reg file.

The registry update I gave is the only one I had trouble with. You may want
to check the other keys as well.

> 
> When I try to create a new project, it errors off with te errors
> above.
> 
> Windows XP for Tablet PC, fully patched with all updates from
> Microsoft.  SP3, etc.
> 
> I guess I can try to figure out how to use GPS for .net programming,
> if possible.

Certainly. I also use GPS for my Ada coding (just change the gnatmake
command in dotnet-gnatmake). We use mixed language so the VS2005 awareness
of Ada is of great value.

> 
> Since this is for personal use, it is probably not likely I can get
> support from Adacore.  My company has support for the regular Windows
> version and Linux, but not for .net.

You may want to contact AdaCore anyway and ask for the available options.
Maybe you are eligable for an evaluation subscription.

> 
> Thanks,
> Kevin

Regards,
Rob




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

end of thread, other threads:[~2008-09-10 20:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-26  0:06 Failure integrating .NET GPL version of GNAT into Visual Studio 2005 Fionn Mac Cumhaill
2008-08-27 18:57 ` Rob Veenker
2008-08-29  6:03   ` Paul
2008-08-31 16:02     ` Fionn Mac Cumhaill
2008-09-02 17:59       ` Rob Veenker
2008-09-10  1:13         ` kevink4
2008-09-10 20:31           ` Rob Veenker

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