From: SourceForge.net <no...@so...> - 2010-10-06 22:03:53
|
Plugin Bugs item #2542430, was opened at 2009-01-28 00:43 Message generated for change (Comment added) made by daleanson You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=565475&aid=2542430&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Craig McQueen (cmcqueen1975) Assigned to: Nobody/Anonymous (nobody) Summary: SideKick Go to Next/Previous Asset Initial Comment: 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(Reflect.java:134) at org.gjt.sp.jedit.bsh.Reflect.invokeStaticMethod(Reflect.java:98) at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:871) at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75) at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130) at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80) at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362) at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258) at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:186) at org.gjt.sp.jedit.BeanShellFacade.runCachedBlock(BeanShellFacade.java:225) at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:441) at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:73) at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:352) at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:317) at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(DefaultInputHandler.java:197) at org.gjt.sp.jedit.input.AbstractInputHandler.processKeyEventKeyStrokeHandling(AbstractInputHandler.java:405) at org.gjt.sp.jedit.gui.InputHandler.processKeyEvent(InputHandler.java:151) at org.gjt.sp.jedit.textarea.TextArea.processKeyEvent(TextArea.java:4545) 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 java.awt.EventDispatchThread.run(Unknown 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. ---------------------------------------------------------------------- >Comment By: Dale Anson (daleanson) Date: 2010-10-06 16:03 Message: This seems to be a problem with the Ctags Sidekick, however, the class cast exception was in Sidekick itself and has been fixed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=565475&aid=2542430&group_id=588 |