Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IMP » Problems with lpg.runtime and Eclipse 3.4?
Problems with lpg.runtime and Eclipse 3.4? [message #21718] Wed, 25 June 2008 23:17 Go to next message
Eclipse UserFriend
Originally posted by: hamoun.gh.gmail.com

Hello All

Thank you all for making this great framework. I am a new user of IMP,
trying to get it running on Eclipse 3.4.0, by following developer's
manual steps. However, I have a few problems, most of which associated
to lpg when running as a plug in:

1) First, when i get lpg.runtime.java project the lpgexe folder is empty
.. Then, I got the executable from lpgdistribution folder and place it
inside lpg.runtime.java project. Is this needed at all?

2) There are 3 run configurations available, and I used
"eclipse-3.2.2-1-L2", is that current? How can I have it on this
workspace without the need to deploy the plug-in every time? Since it
does not come up when I run the eclipse from the workspace normally.

3) Although LPG is available as an external tool in the development
eclipse workspace, it is not, in the workspace I installed the IMP
plugins. Moreover, in the IMP deployed one the lpg.runtime is shown in
the installed plug-ins but could not be found when it is referenced in a
sample project's Maifest file.


4) do I need to get ans deploy the project lpg.runtime.feature?

5) I used to get this error frequently. Although it might have been
cause by my miss-configuration I mention them, may be they help figuring
out the problem:
1)--------------------------------------------------
!ENTRY org.eclipse.ui 4 4 2008-06-24 23:46:44.515
!MESSAGE Could not create action delegate for id:
spec.imp.actions.enableNatureAction

!ENTRY org.eclipse.equinox.registry 4 1 2008-06-24 23:46:44.515
!MESSAGE Plug-in org.eclipse.imp.metatooling was unable to load class
org.eclipse.imp.presentation.actions.EnableNature.
!STACK 0
java.lang.ClassNotFoundException:
org.eclipse.imp.presentation.actions.EnableNature
2)-------------------------------------------------

Hamoun Ghanbari
Re: Problems with lpg.runtime and Eclipse 3.4? [message #21763 is a reply to message #21718] Wed, 25 June 2008 23:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hamoun.gh.gmail.com

hamoun ganbari wrote:
> Hello All
>
> Thank you all for making this great framework. I am a new user of IMP,
> trying to get it running on Eclipse 3.4.0, by following developer's
> manual steps. However, I have a few problems, most of which associated
> to lpg when running as a plug in:
>
> 1) First, when i get lpg.runtime.java project the lpgexe folder is empty
> . Then, I got the executable from lpgdistribution folder and place it
> inside lpg.runtime.java project. Is this needed at all?
>
> 2) There are 3 run configurations available, and I used
> "eclipse-3.2.2-1-L2", is that current? How can I have it on this
> workspace without the need to deploy the plug-in every time? Since it
> does not come up when I run the eclipse from the workspace normally.
>
> 3) Although LPG is available as an external tool in the development
> eclipse workspace, it is not, in the workspace I installed the IMP
> plugins. Moreover, in the IMP deployed one the lpg.runtime is shown in
> the installed plug-ins but could not be found when it is referenced in a
> sample project's Maifest file.
>
>
> 4) do I need to get ans deploy the project lpg.runtime.feature?
>
> 5) I used to get this error frequently. Although it might have been
> cause by my miss-configuration I mention them, may be they help figuring
> out the problem:
> 1)--------------------------------------------------
> !ENTRY org.eclipse.ui 4 4 2008-06-24 23:46:44.515
> !MESSAGE Could not create action delegate for id:
> spec.imp.actions.enableNatureAction
>
> !ENTRY org.eclipse.equinox.registry 4 1 2008-06-24 23:46:44.515
> !MESSAGE Plug-in org.eclipse.imp.metatooling was unable to load class
> org.eclipse.imp.presentation.actions.EnableNature.
> !STACK 0
> java.lang.ClassNotFoundException:
> org.eclipse.imp.presentation.actions.EnableNature
> 2)-------------------------------------------------
>
> Hamoun Ghanbari

Also I forgot two add this one:

1)In the project org.eclipse.imp.releng the class WorkbenchReleaseTool
I commented out this line:
als.launch(buildScript, ILaunchManager.RUN_MODE, "build.update.zip");
since a method with this signature does not exists in my version of
AntLaunchShortcut. there are only these two:
+public void launch(ISelection selection, String mode)
+public void launch(AntElementNode node, String mode)


2) I think the problem number 5) was just because duplicate jars and
classloader confusion, so that one is actually solved.

Thank you,
Hamoun
Re: Problems with lpg.runtime and Eclipse 3.4? [message #22160 is a reply to message #21718] Wed, 02 July 2008 15:44 Go to previous message
Robert M. Fuhrer is currently offline Robert M. FuhrerFriend
Messages: 294
Registered: July 2009
Senior Member
hamoun ganbari wrote:
> Hello All

Hi! Sorry for taking a while to get back to you on this. :-(

> Thank you all for making this great framework. I am a new user of IMP,
> trying to get it running on Eclipse 3.4.0, by following developer's
> manual steps. However, I have a few problems, most of which associated
> to lpg when running as a plug in:
>
> 1) First, when i get lpg.runtime.java project the lpgexe folder is empty
> . Then, I got the executable from lpgdistribution folder and place it
> inside lpg.runtime.java project. Is this needed at all?

The generator executable in lpgdistribution is very old, and (I believe)
incompatible with the latest runtime.

You should use the executable in lpg.generator.*/lpgexe, where "*" is
either macosx_x86, linux_x86, or win32_x86.

> 2) There are 3 run configurations available, and I used
> "eclipse-3.2.2-1-L2", is that current? How can I have it on this
> workspace without the need to deploy the plug-in every time? Since it
> does not come up when I run the eclipse from the workspace normally.

These launch configurations are intended for use by IMP developers,
as opposed to IDE developers using IMP. We've experienced numerous
problems with the set of enabled plugins in these launch configs
varying from person to person, despite the fact that the plugin set
is part of what gets checked into source control. For that reason,
I wouldn't expect them to work "out of the box".

You can do one of two things: (1) modify one of these launch configs
to include the IMP runtime and your IDE plugin(s), along with any
prerequisites, or (2) create your own runtime workbench launch config.
With either of these two approaches, you don't need to publish your
plugin to an update site (or export as a .zip file) just in order to
test it out.

> 3) Although LPG is available as an external tool in the development
> eclipse workspace, it is not, in the workspace I installed the IMP
> plugins.

Launch configurations are stored in the workspace (either in the
workspace meta-data folder, or in some project). Are you saying
that when you run your plugin in a runtime workbench (or "2nd-level
Eclipse" as we sometimes call it), you don't have the LPG external
tool launch? That's to be expected. If not, please clarify.

> Moreover, in the IMP deployed one the lpg.runtime is shown in
> the installed plug-ins but could not be found when it is referenced in a
> sample project's Maifest file.

To be clear: are you saying that when you have IMP installed into your
Eclipse (say, using the Update Manager), workspace plugins that depend
on lpg.runtime don't resolve the dependency?

> 4) do I need to get ans deploy the project lpg.runtime.feature?

There are two answers to this question: the short-term answer and
the long-term answer. The long-term answer is only yes if your IDE
uses an LPG-based scanner/parser. The short-term answer is that at
the moment, there are one or two minor dependencies on lpg.runtime
in the IMP runtime, which would force you to deploy lpg.runtime
along with IMP. We plan to factor out these dependencies into
one or more separate plugins that can be omitted if your plugin
doesn't use LPG.

> 5) I used to get this error frequently. Although it might have been
> cause by my miss-configuration I mention them, may be they help figuring
> out the problem:
> 1)--------------------------------------------------
> !ENTRY org.eclipse.ui 4 4 2008-06-24 23:46:44.515
> !MESSAGE Could not create action delegate for id:
> spec.imp.actions.enableNatureAction
>
> !ENTRY org.eclipse.equinox.registry 4 1 2008-06-24 23:46:44.515
> !MESSAGE Plug-in org.eclipse.imp.metatooling was unable to load class
> org.eclipse.imp.presentation.actions.EnableNature.
> !STACK 0
> java.lang.ClassNotFoundException:
> org.eclipse.imp.presentation.actions.EnableNature
> 2)-------------------------------------------------

Thanks for reporting this! Annoying though this is, you can safely
ignore it for now; the presentation specification language (which
resides in o.e.i.presentation) is only half-baked, and nothing else
depends on it.

--
Cheers,
-- Bob

--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center

IMP Team Lead (http://www.eclipse.org/imp)
X10: Productivity for High-Performance Parallel Programming (http://x10.sf.net)
Re: Problems with lpg.runtime and Eclipse 3.4? [message #571628 is a reply to message #21718] Wed, 25 June 2008 23:38 Go to previous message
Eclipse UserFriend
Originally posted by: hamoun.gh.gmail.com

hamoun ganbari wrote:
> Hello All
>
> Thank you all for making this great framework. I am a new user of IMP,
> trying to get it running on Eclipse 3.4.0, by following developer's
> manual steps. However, I have a few problems, most of which associated
> to lpg when running as a plug in:
>
> 1) First, when i get lpg.runtime.java project the lpgexe folder is empty
> . Then, I got the executable from lpgdistribution folder and place it
> inside lpg.runtime.java project. Is this needed at all?
>
> 2) There are 3 run configurations available, and I used
> "eclipse-3.2.2-1-L2", is that current? How can I have it on this
> workspace without the need to deploy the plug-in every time? Since it
> does not come up when I run the eclipse from the workspace normally.
>
> 3) Although LPG is available as an external tool in the development
> eclipse workspace, it is not, in the workspace I installed the IMP
> plugins. Moreover, in the IMP deployed one the lpg.runtime is shown in
> the installed plug-ins but could not be found when it is referenced in a
> sample project's Maifest file.
>
>
> 4) do I need to get ans deploy the project lpg.runtime.feature?
>
> 5) I used to get this error frequently. Although it might have been
> cause by my miss-configuration I mention them, may be they help figuring
> out the problem:
> 1)--------------------------------------------------
> !ENTRY org.eclipse.ui 4 4 2008-06-24 23:46:44.515
> !MESSAGE Could not create action delegate for id:
> spec.imp.actions.enableNatureAction
>
> !ENTRY org.eclipse.equinox.registry 4 1 2008-06-24 23:46:44.515
> !MESSAGE Plug-in org.eclipse.imp.metatooling was unable to load class
> org.eclipse.imp.presentation.actions.EnableNature.
> !STACK 0
> java.lang.ClassNotFoundException:
> org.eclipse.imp.presentation.actions.EnableNature
> 2)-------------------------------------------------
>
> Hamoun Ghanbari

Also I forgot two add this one:

1)In the project org.eclipse.imp.releng the class WorkbenchReleaseTool
I commented out this line:
als.launch(buildScript, ILaunchManager.RUN_MODE, "build.update.zip");
since a method with this signature does not exists in my version of
AntLaunchShortcut. there are only these two:
+public void launch(ISelection selection, String mode)
+public void launch(AntElementNode node, String mode)


2) I think the problem number 5) was just because duplicate jars and
classloader confusion, so that one is actually solved.

Thank you,
Hamoun
Re: Problems with lpg.runtime and Eclipse 3.4? [message #571920 is a reply to message #21718] Wed, 02 July 2008 15:44 Go to previous message
Robert M. Fuhrer is currently offline Robert M. FuhrerFriend
Messages: 294
Registered: July 2009
Senior Member
hamoun ganbari wrote:
> Hello All

Hi! Sorry for taking a while to get back to you on this. :-(

> Thank you all for making this great framework. I am a new user of IMP,
> trying to get it running on Eclipse 3.4.0, by following developer's
> manual steps. However, I have a few problems, most of which associated
> to lpg when running as a plug in:
>
> 1) First, when i get lpg.runtime.java project the lpgexe folder is empty
> . Then, I got the executable from lpgdistribution folder and place it
> inside lpg.runtime.java project. Is this needed at all?

The generator executable in lpgdistribution is very old, and (I believe)
incompatible with the latest runtime.

You should use the executable in lpg.generator.*/lpgexe, where "*" is
either macosx_x86, linux_x86, or win32_x86.

> 2) There are 3 run configurations available, and I used
> "eclipse-3.2.2-1-L2", is that current? How can I have it on this
> workspace without the need to deploy the plug-in every time? Since it
> does not come up when I run the eclipse from the workspace normally.

These launch configurations are intended for use by IMP developers,
as opposed to IDE developers using IMP. We've experienced numerous
problems with the set of enabled plugins in these launch configs
varying from person to person, despite the fact that the plugin set
is part of what gets checked into source control. For that reason,
I wouldn't expect them to work "out of the box".

You can do one of two things: (1) modify one of these launch configs
to include the IMP runtime and your IDE plugin(s), along with any
prerequisites, or (2) create your own runtime workbench launch config.
With either of these two approaches, you don't need to publish your
plugin to an update site (or export as a .zip file) just in order to
test it out.

> 3) Although LPG is available as an external tool in the development
> eclipse workspace, it is not, in the workspace I installed the IMP
> plugins.

Launch configurations are stored in the workspace (either in the
workspace meta-data folder, or in some project). Are you saying
that when you run your plugin in a runtime workbench (or "2nd-level
Eclipse" as we sometimes call it), you don't have the LPG external
tool launch? That's to be expected. If not, please clarify.

> Moreover, in the IMP deployed one the lpg.runtime is shown in
> the installed plug-ins but could not be found when it is referenced in a
> sample project's Maifest file.

To be clear: are you saying that when you have IMP installed into your
Eclipse (say, using the Update Manager), workspace plugins that depend
on lpg.runtime don't resolve the dependency?

> 4) do I need to get ans deploy the project lpg.runtime.feature?

There are two answers to this question: the short-term answer and
the long-term answer. The long-term answer is only yes if your IDE
uses an LPG-based scanner/parser. The short-term answer is that at
the moment, there are one or two minor dependencies on lpg.runtime
in the IMP runtime, which would force you to deploy lpg.runtime
along with IMP. We plan to factor out these dependencies into
one or more separate plugins that can be omitted if your plugin
doesn't use LPG.

> 5) I used to get this error frequently. Although it might have been
> cause by my miss-configuration I mention them, may be they help figuring
> out the problem:
> 1)--------------------------------------------------
> !ENTRY org.eclipse.ui 4 4 2008-06-24 23:46:44.515
> !MESSAGE Could not create action delegate for id:
> spec.imp.actions.enableNatureAction
>
> !ENTRY org.eclipse.equinox.registry 4 1 2008-06-24 23:46:44.515
> !MESSAGE Plug-in org.eclipse.imp.metatooling was unable to load class
> org.eclipse.imp.presentation.actions.EnableNature.
> !STACK 0
> java.lang.ClassNotFoundException:
> org.eclipse.imp.presentation.actions.EnableNature
> 2)-------------------------------------------------

Thanks for reporting this! Annoying though this is, you can safely
ignore it for now; the presentation specification language (which
resides in o.e.i.presentation) is only half-baked, and nothing else
depends on it.

--
Cheers,
-- Bob

--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center

IMP Team Lead (http://www.eclipse.org/imp)
X10: Productivity for High-Performance Parallel Programming (http://x10.sf.net)
Previous Topic:Native Library Usage
Next Topic:IMP error recovery
Goto Forum:
  


Current Time: Tue Apr 23 16:45:20 GMT 2024

Powered by FUDForum. Page generated in 0.04007 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top