Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest stable version of PHPStorm seems to break plugin #18

Closed
JoelRSimpson opened this issue Mar 19, 2013 · 27 comments
Closed

Latest stable version of PHPStorm seems to break plugin #18

JoelRSimpson opened this issue Mar 19, 2013 · 27 comments

Comments

@JoelRSimpson
Copy link

The ace jump plugin no longer receives focus after hitting ctrl+; (neither does the other similar plugin quick jump). The following errors occurred while trying to select the pop up box with the mouse, and then type into it.

Error during dispatching of sun.awt.PeerEvent[INVOCATION_DEFAULT,runnable=sun.awt.SunToolkit$1@1c020b2c,notifier=null,catchExceptions=false,when=1363664211521] on sun.awt.X11.XToolkit@3834ff91
java.lang.NullPointerException
at java.awt.Container.addImpl(Container.java:1086)
at java.awt.Container.add(Container.java:410)
at com.johnlindquist.acejump.AceJumpAction.addAceCanvas(AceJumpAction.java:167)
at com.johnlindquist.acejump.AceJumpAction$1.focusGained(AceJumpAction.java:109)
at java.awt.AWTEventMulticaster.focusGained(AWTEventMulticaster.java:220)
at java.awt.Component.processFocusEvent(Component.java:6394)
at java.awt.Component.processEvent(Component.java:6261)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1895)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:938)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:570)
at java.awt.Component.dispatchEventImpl(Component.java:4731)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at sun.awt.SunToolkit$1.run(SunToolkit.java:502)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:685)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:510)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
--------------------------ERROR 2 FOLLOWS---------------------------------
Error during dispatching of java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=EditorComponent file=file:///home/jsimpson/www/Alegion/build_new.xml,cause=ACTIVATION] on com.johnlindquist.acejump.ui.SearchBox[,1,1,14x15,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.intellij.ide.ui.laf.darcula.ui.DarculaTextBorder@7e7f1db8,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=153,g=153,b=153],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=47,g=101,b=202],columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]
java.lang.NullPointerException
at java.awt.Container.remove(Container.java:1254)
at com.johnlindquist.acejump.AceJumpAction.exit(AceJumpAction.java:210)
at com.johnlindquist.acejump.AceJumpAction$1.focusLost(AceJumpAction.java:114)
at java.awt.AWTEventMulticaster.focusLost(AWTEventMulticaster.java:230)
at java.awt.Component.processFocusEvent(Component.java:6397)
at java.awt.Component.processEvent(Component.java:6261)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1895)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:947)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:621)
at java.awt.Component.dispatchEventImpl(Component.java:4731)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:702)
at java.awt.EventQueue$4.run(EventQueue.java:700)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:685)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:510)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.SentEvent.dispatch(SentEvent.java:70)
at java.awt.DefaultKeyboardFocusManager$DefaultKeyboardFocusManagerSentEvent.dispatch(DefaultKeyboardFocusManager.java:216)
at java.awt.DefaultKeyboardFocusManager.sendMessage(DefaultKeyboardFocusManager.java:243)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:687)
at java.awt.Component.dispatchEventImpl(Component.java:4731)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:702)
at java.awt.EventQueue$4.run(EventQueue.java:700)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:685)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:510)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.SentEvent.dispatch(SentEvent.java:70)
at java.awt.DefaultKeyboardFocusManager$DefaultKeyboardFocusManagerSentEvent.dispatch(DefaultKeyboardFocusManager.java:216)
at java.awt.DefaultKeyboardFocusManager.sendMessage(DefaultKeyboardFocusManager.java:243)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:308)
at java.awt.Component.dispatchEventImpl(Component.java:4731)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at sun.awt.X11.XWindow$1.run(XWindow.java:402)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:685)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:510)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

@johnlindquist
Copy link
Collaborator

Are you on windows? mac? linux?

@JoelRSimpson
Copy link
Author

Linux, Ubuntu 12.04 LTS

thanks for the lightning quick response!

@sampepose
Copy link

A similar problem is occurring with Webstorm 6.0 on Ubuntu 12.04. The input box does not gain focus automatically. It will work correctly however if I manually click inside of the input.

@gregfr
Copy link

gregfr commented Mar 20, 2013

Same here with PHPStorm 6.0 Ubuntu 12.10. The input box is not focused, and if I click on it, all I had was an error. I updated to AceJump 2.0. No error anymore, but still not focused, whatever I type in gets added to the file.

@johnlindquist
Copy link
Collaborator

Ok, I'll have to set up a ubuntu vm to figure this out. It sounds like "requestFocus" isn't working for you guys:

https://github.com/johnlindquist/AceJump/blob/master/src/com/johnlindquist/acejump/AceJumpAction.kt#L188

@JoelRSimpson
Copy link
Author

Is there anything more I could send you that would help? Can I turn on
additional logging or anything?

On Wed, Mar 20, 2013 at 11:37 AM, johnlindquist notifications@github.comwrote:

Ok, I'll have to set up a ubuntu vm to figure this out. It sounds like
"requestFocus" isn't working for you guys:

https://github.com/johnlindquist/AceJump/blob/master/src/com/johnlindquist/acejump/AceJumpAction.kt#L188


Reply to this email directly or view it on GitHubhttps://github.com//issues/18#issuecomment-15195003
.

@johnlindquist
Copy link
Collaborator

@JoelRSimpson thanks for the offer, but I simply need to install/debug myself on Ubuntu to figure it out.

@johnlindquist
Copy link
Collaborator

2.0.1 should fix this.

@gregfr
Copy link

gregfr commented Mar 21, 2013

Just updated to 2.0.1, no change, still not working :( Can we do anything to help?

@sampepose
Copy link

Unfortunately it still does not work on Ubuntu 12.04 w/ Webstorm 6.0. Do you need any logs?

@johnlindquist
Copy link
Collaborator

Hmm, I tested on a vm of Ubuntu 12.04 with WebStorm 6 and it's working for me.

Which JDK are you guys using?
Is the Event Log throwing an error?
Do you have any extra plugins installed?

@johnlindquist johnlindquist reopened this Mar 21, 2013
@gregfr
Copy link

gregfr commented Mar 21, 2013

I tested with all "non-bundled" plugins disabled. Nothing in the event log.

Picked up _JAVA_OPTIONS: -Dswing.aatext=true -Dawt.useSystemAAFontSettings=lcd
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)

@gregfr
Copy link

gregfr commented Mar 21, 2013

I just re-tested, starting PHPStorm from a shell (instead of a shortcut) and I have very different behavior: it seems to works only the first time I try to use it. Then as before, the square appear but I type inside the file.

@JoelRSimpson
Copy link
Author

In the past I've had trouble with some of the phpstorm dialogs due to my
"focus follows mouse" ubuntu system setting. Right now mine is set to
"sloppy". Is anyone else using a setting other than "click"?
On Mar 21, 2013 9:12 AM, "gregfr" notifications@github.com wrote:

I just re-tested, starting PHPStorm from a shell (instead of a shortcut)
and I have very different behavior: it seems to works only the first time I
try to use it. Then as before, the square appear but I type inside the file.


Reply to this email directly or view it on GitHubhttps://github.com//issues/18#issuecomment-15248202
.

@johnlindquist
Copy link
Collaborator

Do any of you guys have 15 minutes for a screen share tomorrow? I'd love to be able to reproduce this, but I just can't (all I have is a clean install of Ubuntu on a VM and WebStorm 6). I don't know my way around Ubuntu very well, so maybe there are so common things that I'm missing that would cause this behavior?

@gregfr
Copy link

gregfr commented Mar 21, 2013

I'd be happy to help. You can reach me at greg-at-phpdevshell-dot-org.
I'll try to test a plain VM too to see if I can trigger a bad behavior.

@mlandalv
Copy link

At first I thought it was fixed (Arch x64 with WebStorm6), and it does work if you actually "jump" to any of the alternatives. But, if you press escape, then the next time you press ctrl+; focus isn't in the little input box, but behind it.

I should also mention that I actually use OpenJDK (sorry, yes I know that's not officially supported by WS).

@sampepose
Copy link

java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)

Nothing in the event log or terminal. The only other plugin installed is your Angular plugin. It will work for the first jump, but all further attempts will focus the cursor behind the input. Let me know if you want to screenshare. I'm using Ubuntu on a VM as well, so your testing environment should be the exact same environment as mine. My mouse focus setting is for "click."

@johnlindquist
Copy link
Collaborator

@sampepose if you're on an Ubuntu VM and can rerproduce, that's great. If you can simply help me reproduce tomorrow by walking me through whatever settings you might have, that would be extremely helpful. Can you ping me @ johnlindquist@gmail.com?

@johnlindquist
Copy link
Collaborator

Can you guys try this? It's using a different "focus manager" (which still works on my Ubuntu VM) https://dl.dropbox.com/u/132579/AceJump.zip

You'll have to uninstall AceJump then Plugins->Install Plugin from Disk

@sampepose
Copy link

That zip works! Thank you so much for working on this. There are no problems that I can see so far.

@gregfr
Copy link

gregfr commented Mar 21, 2013

It's also working for me :)

@gregfr
Copy link

gregfr commented Mar 24, 2013

It work on legacy mode but not on caret mode: I get the red box, the targets are highlighted, but hitting a key doesn't jump.

@johnlindquist
Copy link
Collaborator

What's "caret mode"? Are you using the vim plugin?

@JoelRSimpson
Copy link
Author

It's working perfectly for me now, as of version 2.0.4 installed through
PHPStorm plugins. (Ubuntu 12.04 LTS, oracle java 1.7.0_17)

Thanks John!!!

On Thu, Mar 21, 2013 at 4:15 PM, gregfr notifications@github.com wrote:

It's also working for me :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/18#issuecomment-15272425
.

@gregfr
Copy link

gregfr commented Mar 25, 2013

Oops sorry I meant "target mode" not "caret mode"!

@breandan
Copy link
Collaborator

Closing due to inactivity. Please feel free to try AceJump 3.0 Beta and report any issues you may encounter. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants