Bug 467109 - CDT Standalone debugger no longer starts with platform M6
Summary: CDT Standalone debugger no longer starts with platform M6
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-gdb-standalone (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 8.7.0   Edit
Assignee: Marc Khouzam CLA
QA Contact: Jeff Johnston CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-12 10:09 EDT by Marc Khouzam CLA
Modified: 2017-02-09 05:12 EST (History)
5 users (show)

See Also:


Attachments
Error log (172.65 KB, text/x-log)
2015-05-12 10:12 EDT, Marc Khouzam CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Khouzam CLA 2015-05-12 10:09:37 EDT

    
Comment 1 Marc Khouzam CLA 2015-05-12 10:12:31 EDT
Created attachment 253412 [details]
Error log

When trying to launch the standalone debugger using the M7 platform, I'm getting a bunch of unresolved dependencies which can be seen in the attachment.  The first one is:

!ENTRY org.eclipse.e4.core.di.extensions 4 0 2015-05-12 10:05:25.640
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.e4.core.di.extensions [4]
  Unresolved requirement: Require-Bundle: org.eclipse.e4.core.di; bundle-version="0.9.0"
    -> Bundle-SymbolicName: org.eclipse.e4.core.di; bundle-version="1.5.0.v20150421-2214"
       org.eclipse.e4.core.di [128]
         Unresolved requirement: Require-Bundle: org.eclipse.e4.core.di.annotations; bundle-version="[1.4.0,2.0.0)"; visibility:="reexport"
Comment 2 Marc Khouzam CLA 2015-05-12 10:44:29 EDT
I tried with platform M5a and M6 and the failures starts with M6
Comment 3 Marc Khouzam CLA 2015-05-12 15:25:17 EDT
There are some new dependencies that need to be added to the config.ini of the stand alone debugger.  I'm working on it.
Comment 4 Eclipse Genie CLA 2015-05-12 15:59:50 EDT
New Gerrit change created: https://git.eclipse.org/r/47764
Comment 6 Eclipse Genie CLA 2015-05-13 14:01:43 EDT
New Gerrit change created: https://git.eclipse.org/r/47875
Comment 8 Marc Khouzam CLA 2015-05-13 14:02:49 EDT
Fixed on master and cdt_8_7
Comment 9 Marc Khouzam CLA 2015-05-13 15:09:17 EDT
As this problem could happen again, anytime a new dependency is added to the platform, I wanted to document how to easily fix it.

When trying to launch the standalone debugger, when a dependency has been added to the platform, errors like the below will be seen: 

> org.osgi.framework.BundleException: Could not resolve module:
> org.eclipse.e4.core.di.extensions [4]
>   Unresolved requirement: Require-Bundle: org.eclipse.e4.core.di;
> bundle-version="0.9.0"
>     -> Bundle-SymbolicName: org.eclipse.e4.core.di;
> bundle-version="1.5.0.v20150421-2214"
>        org.eclipse.e4.core.di [128]
>          Unresolved requirement: Require-Bundle:
> org.eclipse.e4.core.di.annotations; bundle-version="[1.4.0,2.0.0)";
> visibility:="reexport"

One should take the last one in the stack trace, in this case org.eclipse.e4.core.di.annotations, and add it to org.eclipse.cdt.debug.application/scripts/config.ini

To test it quickly, one can then copy the new config.ini to ~/cdtdebugger to replace the old config.ini.

This may require multiple iterations if multiple dependencies need to be added.