This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ccs 5.2.1 - failing to import project

Hi,

I have seen posts where it is said this problem was resolved for 5.1.0 :

http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/187138.aspx

I updated the ccs to 5.2.1, and I am getting the same error :
  Error: Import failed for project 'main' because its meta-data cannot be interpreted. Please contact support.

So, is there a workaround for this problem?

Here is the importing log :

!SESSION 2012-09-17 09:23:47.569 -----------------------------------------------
eclipse.buildId=M20120208-0800
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -product com.ti.ccstudio.branding.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product com.ti.ccstudio.branding.product

!ENTRY org.eclipse.osgi 2 0 2012-09-17 09:24:13.443
!MESSAGE While loading class "com.ti.dvt.rovsupport.ROVPlugin$2", thread "Thread[main,6,main]" timed out waiting (5050ms) for thread "Thread[Worker-11,5,main]" to finish starting bundle "com.ti.dvt.rovsupport_3.2.0.201206032146 [398]". To avoid deadlock, thread "Thread[main,6,main]" is proceeding but "com.ti.dvt.rovsupport.ROVPlugin$2" may not be fully initialized.
!STACK 0
org.osgi.framework.BundleException: State change in progress for bundle "reference:file:plugins/com.ti.dvt.rovsupport_3.2.0.201206032146.jar" by thread "Worker-11".
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1087)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:297)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	at com.ti.dvt.rovsupport.ROVPlugin.getPartListener(ROVPlugin.java:772)
	at com.ti.dvt.rovsupport.ROVPlugin$4.run(ROVPlugin.java:979)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at com.ti.ccstudio.branding.actions.ImportProjectLiveAction.doRun(ImportProjectLiveAction.java:49)
	at com.ti.ccstudio.internal.resource.explorer.liveactions.LiveAction$1.run(LiveAction.java:67)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
	... 48 more
Root exception:
org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1087)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:297)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	at com.ti.dvt.rovsupport.ROVPlugin.getPartListener(ROVPlugin.java:772)
	at com.ti.dvt.rovsupport.ROVPlugin$4.run(ROVPlugin.java:979)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at com.ti.ccstudio.branding.actions.ImportProjectLiveAction.doRun(ImportProjectLiveAction.java:49)
	at com.ti.ccstudio.internal.resource.explorer.liveactions.LiveAction$1.run(LiveAction.java:67)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

!ENTRY com.ti.ccstudio.project.ui 4 0 2012-09-17 09:25:09.244
!MESSAGE Import failed for project 'main' because its meta-data cannot be interpreted. Please contact support.

!ENTRY org.eclipse.cdt.core 1 0 2012-09-17 09:25:34.648
!MESSAGE Indexed 'sensors_access' (12 sources, 327 headers) in 31.70 sec: 47,409 declarations; 68,180 references; 0 unresolved inclusions; 10 syntax errors; 466 unresolved names (0.40%)

!ENTRY org.eclipse.cdt.core 1 0 2012-09-17 09:25:44.945
!MESSAGE Indexed 'fsm' (4 sources, 187 headers) in 10.29 sec: 23,284 declarations; 28,789 references; 94 unresolved inclusions; 0 syntax errors; 1,030 unresolved names (1.94%)

!ENTRY org.eclipse.cdt.core 1 0 2012-09-17 09:26:10.103
!MESSAGE Indexed 'fpga_communication' (12 sources, 329 headers) in 25.15 sec: 47,420 declarations; 67,651 references; 0 unresolved inclusions; 10 syntax errors; 312 unresolved names (0.27%)

!ENTRY org.eclipse.cdt.core 1 0 2012-09-17 09:26:18.432
!MESSAGE Indexed 'processing' (13 sources, 265 headers) in 8.32 sec: 17,249 declarations; 30,313 references; 0 unresolved inclusions; 10 syntax errors; 198 unresolved names (0.41%)

!ENTRY org.eclipse.cdt.core 1 0 2012-09-17 09:26:18.577
!MESSAGE Indexed 'common' (8 sources, 21 headers) in 0.14 sec: 144 declarations; 328 references; 23 unresolved inclusions; 7 syntax errors; 92 unresolved names (16.31%)

  • Is this a simple project that you can share with us so we can try to reproduce the error? If so, please zip up the project folder and attach it here or, if you prefer, you can send it to me via private conversation.

    Also how did you update to 5.2.1? Did you update from within CCS or download and reinstall the full image?

  • Hi Vladmir,

    can you confirm you used the CCS import?  Project->Import existing CCS/Eclipse project?  Is this a project that has been imported before from very old versions?

    Best Regards,
    Lisa

  • Lisa TI said:

    can you confirm you used the CCS import?  Project->Import existing CCS/Eclipse project?  Is this a project that has been imported before from very old versions?

    I have several projects, created using CCS 5.1.0 on windows, but only one is a CCS project. That project I imported using CCS import project (exactly as you said), but the others I imported using c++ project import.

    I tried to import on both windows and linux, and the behaviour is the same.

  • AartiG said:

    Is this a simple project that you can share with us so we can try to reproduce the error? If so, please zip up the project folder and attach it here or, if you prefer, you can send it to me via private conversation.

    It's complexity is at the moment medium, but I'll have to confirm with my superior that I am allowed to post whole project.

    Is there any way other? Maybe by adding settings files?

    AartiG said:

    Also how did you update to 5.2.1? Did you update from within CCS or download and reinstall the full image?

    I just tried to install CCS 5.2.1 on a clean PC with linux, and the import still fails.

  • A colleague suggested me to import the project as normal c++ project :

    File -> Import -> General -> Existing project into workspace

    It looks like it imports fine, but I have run-time problems when I execute the program on the DSP. Not sure if these two are related.

  • Hi Vladimir,

    what happens if you do a CCS import?  Project->Import existing CCS/Eclipse project. This is the correct method for a ccs project import.

    Best Regards,
    Lisa

  • Lisa TI said:

    what happens if you do a CCS import?  Project->Import existing CCS/Eclipse project. This is the correct method for a ccs project import.

    Nothing. I get an error message saying

    Error: Import failed for project 'main' because its meta-data cannot be interpreted. Please contact support.

    and the project is not imported.

  • Lisa TI said:

    what happens if you do a CCS import?  Project->Import existing CCS/Eclipse project. This is the correct method for a ccs project import.

    I did another thing. Imported the project as normal project, deleted it, and imported it as CCS project. Then it seems to work, but I am not sure if it is the right thing to do.

  • Vladimir Jovic said:
    Imported the project as normal project, deleted it, and imported it as CCS project. Then it seems to work, but I am not sure if it is the right thing to do.

    I'm not sure how or why importing it first as a C/C++ project, deleting it and then later importing as a CCS project would make a difference. The project files specify whether it is a standard Eclipse project or a CCS project, so I'm not sure how this could get modified. It might be worth a test to try the same import on a new clean workspace. If things are working now, I wouldn't want to mess with it, but it does seem a bit strange.