Developer Studio 3.3 Problem creating Components


We cannot create a component with the new version of the developer studio.

New → Project → Legato Component Project : the component is not created and this error appears:

"An error occurred during project creation Reason: org.eclipse.core.runtime.CoreException: Failed to creato injector for com.swi.spm.legato.parser.Cdef ExtensionFactory: com.swi.spm.legato.parser.ui.CdefExecutableExtensionFactory"

Also, we can’t edit the project properties because when we do a right button click this possiblity does not appear.
Futhermore, when we try to edit dependencies in the references the window does not appear.

Are we missing a pluggin or something else?

Thank you

We can’t reproduce this behavior on a fresh install.
How did you install DS?
If you have upgraded from DS 3.2, and previously installed the patch proposed here: viewtopic.php?f=177&t=8346, did you uninstall the patch before upgrade?
And if not, please can you provide a text file with what’s in the Help > About Developer Studio > Installation Details > Configuration tab?

Hi daav,

Thank you for your response.

DS is installed (on Linux, Ubuntu 14.04.02) from the developer studio web source, following the alternative method:

The java version installed on my computer is:

java -version
java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

And this is my java configuration:

$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
  0            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      auto mode
* 1            /usr/lib/jvm/default-java/bin/java               1         manual mode
  2            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      manual mode

The last thing I did was to upgrade my old DS 3.2 and this is the txt of my configuration tab: [url]File Dropper - Online file sharing

It seems a plugin error because the “error log” window shows this output:

Problems occurred when invoking code from plug-in: "org.eclipse.jface".

ava.lang.NoClassDefFoundError: com/swi/spm/legato/parser/xdef/RequireSection
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(
	at java.lang.Class.getDeclaredMethods(
	at com.swi.spm.legato.parser.ui.internal.CdefActivator.createInjector(
	at com.swi.spm.legato.parser.ui.internal.CdefActivator.getInjector(
	at com.swi.spm.legato.parser.ui.CdefExecutableExtensionFactory.getInjector(
	at org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory.create(
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(
	at org.eclipse.ui.internal.WorkbenchPlugin$
	at org.eclipse.swt.custom.BusyIndicator.showWhile(
	at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(
	at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceNode.createPage(
	at org.eclipse.jface.preference.PreferenceDialog.createPage(
	at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.createPage(
	at org.eclipse.jface.preference.PreferenceDialog.showPage(
	at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(
	at org.eclipse.jface.preference.PreferenceDialog$9$
	at org.eclipse.swt.custom.BusyIndicator.showWhile(
	at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(
	at org.eclipse.jface.viewers.StructuredViewer$
	at org.eclipse.ui.internal.JFaceUtil$
	at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(
	at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(
	at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(
	at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(
	at org.eclipse.jface.util.OpenStrategy.access$5(
	at org.eclipse.jface.util.OpenStrategy$1$
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(
	at org.eclipse.swt.widgets.Display.runAsyncMessages(
	at org.eclipse.swt.widgets.Display.readAndDispatch(
	at org.eclipse.jface.window.Window.runEventLoop(
	at org.eclipse.jface.action.Action.runWithEvent(
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(
	at org.eclipse.jface.action.ActionContributionItem.access$2(
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(
	at org.eclipse.swt.widgets.EventTable.sendEvent(
	at org.eclipse.swt.widgets.Display.sendEvent(
	at org.eclipse.swt.widgets.Widget.sendEvent(
	at org.eclipse.swt.widgets.Display.runDeferredEvents(
	at org.eclipse.swt.widgets.Display.readAndDispatch(
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
	at org.eclipse.ui.internal.Workbench$
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
	at com.swi.devstudio.core.Application.start(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.eclipse.equinox.launcher.Main.invokeFramework(
	at org.eclipse.equinox.launcher.Main.basicRun(
	at org.eclipse.equinox.launcher.Main.main(
Caused by: java.lang.ClassNotFoundException: com.swi.spm.legato.parser.xdef.RequireSection cannot be found by com.swi.spm.legato.parser.cdef.ui_3.2.0.201411061551
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	... 87 more

java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en
Command-line arguments:  -os linux -ws gtk -arch x86_64 -data @noDefault

Note: Also, the error is reproduced when Preferences > Refactoring is clicked


PS: I’ve tried to install DS also from the command line:

sudo apt-get install devstudio-legato

But the installation fails with this error:

Setting up devstudio-updater (20130618-1) ...
Setting up devstudio-product ( ...
*** Using updatesite:
*** Temporary workspace: /tmp/tmp.U1fccMMpaZ
*** Action: install
*** Installing product: com.swi.devstudio.product/
Installation failed.
Unable to load repositories.
Application failed, log file location: /tmp/tmp.U1fccMMpaZ/.metadata/.log

*** Clean temp workspace: /tmp/tmp.U1fccMMpaZ
Setting up devstudio-legato ( ...
*** Using updatesite:
*** Temporary workspace: /tmp/tmp.eyUBIV7n7z
*** Action: install
*** Installing feature:
Installation failed.
Unable to load repositories.
Application failed, log file location: /tmp/tmp.eyUBIV7n7z/.metadata/.log

*** Clean temp workspace: /tmp/tmp.eyUBIV7n7z
Setting up libc6-i386 (2.19-0ubuntu6.6) ...
Setting up lib32tinfo5 (5.9+20140118-1ubuntu1) ...
Setting up lib32ncurses5 (5.9+20140118-1ubuntu1) ...
Setting up lib32z1 (1:1.2.8.dfsg-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...

But the log file doesn’t exist.

Also, I’ve tried in another machine with Ubuntu 14.04.01 64 bits version with the same issue

Most of times, apt-get install gives this kind of issue because of unconfigured proxy settings.
Are you behind a proxy?
If yes, the procedure is to ensure that the http_proxy/https_proxy variables are set in the environment (with your own proxy settings), and to use sudo -E option.

export https_proxy="";export http_proxy="" sudo -E apt-get install devstudio-legato

Hi daav,

Thank you for your help. After a complete unistallation of the devstudio-legato (and also, devstudio-updater & devstudio-product) and using the environment variables to install the devstudio-legato behind proxy configuration, it works:

$ sudo apt-get autoremove devstudio-product devstudio-updater devstudio-legato
$ sudo http_proxy= apt-get install devstudio-legato

When I run the devstudio, the project->properties option exists and also, it works. Then, I’ve tried again to install Legato packages from the Help->Install New Software (adding the resource site) but when the installation ends, the project->properties option doesn’t exist :frowning: Of course, I’ve tried to install the legato-af and the toolchain but I can’t create Legato Components.

It seems like the upgrade procedure delete some packages/plugins of the devstudio.


If you’ve installed DS through apt-get, you shouldn’t need to go to Help > Install New Software
All you need is already installed by installing the devstudio-legato package.
Then, to install Legato packages, you need to go to the Package Manager perspective.

When you say you can’t create Legato component projects, what is the issue exactly? What is the workflow you’re following, starting from a fresh new workspace?

Thank you very much. The problem was using Help > Install New Software. Using the package installed with devstudio-legato solved the component problem.
Thank you!