PreviousNextTracker indexSee it online !

(101/314) 2542430 - SideKick Go to Next/Previous Asset

The operation of "Go to Next/Previous Asset" is a bit rough, at least for C files.

If I am in a C file with functions, I can do "Go to Previous Asset" once to get to the previous function definition, as long as the cursor isn't already on a function definition. But then if I do "Go to Previous Asset" a second time, the cursor doesn't move. I have to first do left-arrow or up-arrow, followed by "Go to Previous Asset" in order to move to the previous function.

If the cursor is above the first "asset" in the file, then doing "Go to Next Asset" or "Go to Previous Asset" will give a BeanShell error dialog:
java.lang.ClassCastException: java.lang.String cannot be cast to sidekick.IAsset
at sidekick.SideKickActions.goToNextAsset(Unknown Source)
at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.gjt.sp.jedit.bsh.Reflect.invokeMethod(
at org.gjt.sp.jedit.bsh.Reflect.invokeStaticMethod(
at org.gjt.sp.jedit.bsh.Name.invokeMethod(
at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(
at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(
at org.gjt.sp.jedit.bsh.BSHBlock.eval(
at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(
at org.gjt.sp.jedit.bsh.BshMethod.invoke(
at org.gjt.sp.jedit.bsh.BshMethod.invoke(
at org.gjt.sp.jedit.BeanShellFacade.runCachedBlock(
at org.gjt.sp.jedit.BeanShell.runCachedBlock(
at org.gjt.sp.jedit.BeanShellAction.invoke(
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(
at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(
at org.gjt.sp.jedit.input.AbstractInputHandler.processKeyEventKeyStrokeHandling(
at org.gjt.sp.jedit.gui.InputHandler.processKeyEvent(
at org.gjt.sp.jedit.textarea.TextArea.processKeyEvent(
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at Source)

If I'm right at the bottom of the file, and do "Go to Next Asset" or "Go to Previous Asset", a similar thing happens.

The behaviour seems a little different for Python files. And for Python files the behaviour is different depending on whether parsing with ctags or jython. So I can't tell if these issues are to do with SideKick or CtagsSidekick.

I'm using jEdit 4.3pre16, CtagsSideKick 1.3, SideKick 0.7.6.

Submitted cmcqueen1975 - 2009-01-28 - 07:43:08z Assigned nobody
Priority 5 Category None
Status Open Group None
Resolution None Visibility No


2010-10-06 - 22:03:50z
This seems to be a problem with the Ctags Sidekick, however, the class cast exception was in Sidekick itself and has been fixed.