rtexas

No highlighting on recording from outside Eclipse?

Question: I'm not seeing highlights when stepping through a recording made outside of Eclipse, neither the "current line" bar nor the highlights in the left gutter where the current path is supposed to be shown (see image below).

When I run a recording done in Eclipse however, I see these features. Shouldn't these be shown regardless of where the recording was made? Do I have something configured incorrectly?

1 person has
this problem
+1
Inappropriate?
Reply

  • Yes, the highlights should show.

    - Do you see anything in the 'error log' view?
    - Did the editor window open by itself when you click on a frame in the stack or did you have to open it manually?
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • rtexas
    The editor window did not open by itself. There is a generic "Internal Error" in the Error log, with the following stack trace (see below).

    Also, Ctrl-Shift-T (Open Type) only works when I have a source code window already open. If the source window is empty (i.e., no open source files) then pressing Ctrl-Shift-T does nothing. Not sure if that's related.

    eclipse.buildId=M20110210-1200
    java.version=1.6.0_25
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments: -product org.eclipse.epp.package.java.product
    Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product

    Error
    Tue May 31 08:56:59 MST 2011
    Internal Error

    java.lang.NullPointerException
    at org.eclipse.debug.core.sourcelookup.containers.ContainerSourceContainer.findSourceElements(ContainerSourceContainer.java:104)
    at org.eclipse.debug.core.sourcelookup.containers.ContainerSourceContainer.findSourceElements(ContainerSourceContainer.java:124)
    at org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer.findSourceElements(CompositeSourceContainer.java:79)
    at org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer.findSourceElements(CompositeSourceContainer.java:46)
    at org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer.findSourceElements(CompositeSourceContainer.java:79)
    at org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer.findSourceElements(CompositeSourceContainer.java:46)
    at com.chronon.sb.browser.ui.editor.BrowserEditorManager.browseTo(Unknown Source)
    at com.chronon.sb.browser.ui.editor.BrowserEditorManager.onTimeChanged(Unknown Source)
    at com.chronon.sb.browser.ui.manager.BrowseManager.onBrowseInfoUpdated(Unknown Source)
    at com.chronon.sb.browser.ui.manager.BrowseManager.changeTime(Unknown Source)
    at com.chronon.sb.browser.ui.manager.BrowseManager.changeTime(Unknown Source)
    at com.chronon.sb.browser.ui.views.StackView$5.run(Unknown Source)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    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:369)
    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:620)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • rtexas,
    As for the Ctrl+Shift+T issue, that is not a Chronon issue. That is how it works in the first place. Ctrl+Shift+T is a shortcut for an editor window, so you gotta have one open for it to work.

    You are not seeing the highlights/instruction pointer due to this exception. Normally the editor window would open itself with everything highlighted. Opening it manually wont help.

    To diagnose this issue:
    - What version of eclipse are you running?
    - Is your code in the 'default' package?
    - Can you send the details of Help> About Eclipse> Installation Details> Configuration?
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • rtexas
    Prashant,

    About the Open Type issue: good to know, thanks. By the way, my name is Ryan, so you don't have to keep calling me rtexas. :)

    - Eclipse Version: Helios Service Release 2 (which I believe is 3.6.2)
    - No, the code is not in the default package.
    - I will send the contents of the Eclipse Configuration to your support email address (), rather than posting them in this thread.

    Thanks,
    ryan
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • hmm... can you open the 'breadcrumb bar', toggled using 'alt+shift+b', and paste a screenshot with the editor window open with that.
    I need to see if the source code is organized in some weird way that is causing all these issues.
    Are you using a maven build?
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • Ryan,
    Please go to project>Project>Java Compiler.
    Are all the following options checked for the project?
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • rtexas
    Prashant, yes, all those values are checked.

    Note: though I am running Eclipse with 1.6, this project is currently being compiled in Eclipse with 1.5 compliance,. However, the particular recording I'm trying to read was made with a 1.6 JRE. (I know, it's confusing).
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • rtexas
    Prashant,

    Another thing I wanted to mention as a possibility. My project structure does not begin at the workspace root (as is customary). It looks more like this:

    C:\path\to\workspace\dir1\dir2\dir3\projectA
    C:\path\to\workspace\dir1\dir2\dir3\projectB
    C:\path\to\workspace\dir1\dir2\projectC

    Eclipse generally handles this fine, but I don't know if this would cause problems for the Chronon plugin.
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • Can you paste a screenshot of your package explorer, with some of the projects expanded down to the src folder?
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • rtexas
    Sure, but I'm not sure that will show what you're looking for. The package explorer still shows the src folder at the root level of the project. But the project itself is not at the root of the workspace. See:



    But if you look at the path for, say, the "rts" project, it looks like this (sorry, had to do a little redaction):



    My Eclipse workspace is c:\dev\java\workspace. So you can see the "rts" project is nest a few folders inside that.
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • ryan,
    It seems the weird directory structure is the issue here and its a bug which is a combination of both Eclipse & Chronon.

    When you bring in a recording that was made from outside eclipse, we use a different eclipse 'source lookup' mechanism than if you launched from within eclipse.
    Turns out the source lookup mechanism does not work with non-standard directory structures.

    Although this is an eclipse issue, I am marking this as an issue on our end, so that it gets solved in days, not years ;)

    We will have a new solution for this and related issues for recordings made outside eclipse once we announce our new, upcoming product (which is this week)/
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • rtexas
    Prashant, do either of the two recent new releases (1.3.1, 1.3.2) address this issue?
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly

  • Prashant Deva EMPLOYEE
    happy I’m happy
    With the release of Chronon 1.6 we have now added the ability to specify 'Source Lookup' paths.
    This should solve your issue and allow you to point Chronon to the correct projects to look for source code.

    More about the release here:
    http://eblog.chrononsystems.com/chron...

    More about the features here:
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned kidding, amused, unsure, silly