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

Run test under caret in REPL not working #464

Closed
vincentjames501 opened this issue Aug 18, 2014 · 7 comments
Closed

Run test under caret in REPL not working #464

vincentjames501 opened this issue Aug 18, 2014 · 7 comments
Milestone

Comments

@vincentjames501
Copy link

As of 0.1.31 on both 12 & 13.1, I get the exception below. This issue was not present in the last version and unfortunately I can't downgrade to the previous version because it's expired. Maybe this is related to #463 ?

Error during dispatching of java.awt.event.KeyEvent[KEY_PRESSED,keyCode=84,keyText=T,keyChar='�',modifiers=⌘+⌃,extModifiers=⌘+⌃,keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0] on frame4
java.lang.NullPointerException
    at com.intellij.codeInsight.daemon.impl.HighlightInfoType$HighlightInfoTypeImpl.hashCode(HighlightInfoType.java:164)
    at clojure.lang.Util.hasheq(Util.java:171)
    at clojure.lang.PersistentHashMap.hash(PersistentHashMap.java:120)
    at clojure.lang.PersistentHashMap.containsKey(PersistentHashMap.java:126)
    at clojure.lang.APersistentSet.contains(APersistentSet.java:34)
    at clojure.lang.RT.contains(RT.java:711)
    at clojure.core$contains_QMARK_.invoke(core.clj:1402)
    at plugin.markup$clear_all_markers$reify__5747.process(markup.clj:124)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl$IntervalNode.processAliveKeys(IntervalTreeImpl.java:97)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:460)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:455)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:455)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:468)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:455)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:455)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.processOverlappingWith(IntervalTreeImpl.java:432)
    at com.intellij.openapi.editor.impl.MarkupModelImpl.processRangeHighlightersOverlappingWith(MarkupModelImpl.java:253)
    at plugin.markup$clear_all_markers.invoke(markup.clj:119)
    at plugin.testing.actions$run_test_form.invoke(actions.clj:380)
    at plugin.testing.actions$run_single_test$test_fn__7026.invoke(actions.clj:427)
    at plugin.testing.actions$run_single_test.invoke(actions.clj:429)
    at clojure.lang.Var.invoke(Var.java:415)
    at plugin.actions$dumb_aware$fn__1757.invoke(actions.clj:144)
    at plugin.actions.proxy$com.intellij.openapi.project.DumbAwareAction$ClojureAction$WithShortcutSet$12bedcdc.actionPerformed(Unknown Source)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:564)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:611)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:463)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:494)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)



java.lang.NullPointerException
    at com.intellij.codeInsight.daemon.impl.HighlightInfoType$HighlightInfoTypeImpl.hashCode(HighlightInfoType.java:164)
    at clojure.lang.Util.hasheq(Util.java:171)
    at clojure.lang.PersistentHashMap.hash(PersistentHashMap.java:120)
    at clojure.lang.PersistentHashMap.containsKey(PersistentHashMap.java:126)
    at clojure.lang.APersistentSet.contains(APersistentSet.java:34)
    at clojure.lang.RT.contains(RT.java:711)
    at clojure.core$contains_QMARK_.invoke(core.clj:1402)
    at plugin.markup$clear_all_markers$reify__5747.process(markup.clj:124)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl$IntervalNode.processAliveKeys(IntervalTreeImpl.java:97)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:460)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:455)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:455)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:468)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:455)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:455)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.processOverlappingWith(IntervalTreeImpl.java:432)
    at com.intellij.openapi.editor.impl.MarkupModelImpl.processRangeHighlightersOverlappingWith(MarkupModelImpl.java:253)
    at plugin.markup$clear_all_markers.invoke(markup.clj:119)
    at plugin.testing.actions$run_test_form.invoke(actions.clj:380)
    at plugin.testing.actions$run_ns_tests$test_fn__7008.invoke(actions.clj:392)
    at plugin.testing.actions$run_ns_tests.invoke(actions.clj:394)
    at clojure.lang.Var.invoke(Var.java:415)
    at plugin.actions$dumb_aware$fn__1757.invoke(actions.clj:144)
    at plugin.actions.proxy$com.intellij.openapi.project.DumbAwareAction$ClojureAction$WithShortcutSet$12bedcdc.actionPerformed(Unknown Source)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:564)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:611)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:463)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:494)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

If I choose it from the menu I get this exception.

Error during dispatching of java.awt.event.ItemEvent[ITEM_STATE_CHANGED,item=Run test under caret in REPL,stateChange=DESELECTED] on chkmenuitem0
java.lang.NullPointerException
    at com.intellij.codeInsight.daemon.impl.HighlightInfoType$HighlightInfoTypeImpl.hashCode(HighlightInfoType.java:164)
    at clojure.lang.Util.hasheq(Util.java:171)
    at clojure.lang.PersistentHashMap.hash(PersistentHashMap.java:120)
    at clojure.lang.PersistentHashMap.containsKey(PersistentHashMap.java:126)
    at clojure.lang.APersistentSet.contains(APersistentSet.java:34)
    at clojure.lang.RT.contains(RT.java:711)
    at clojure.core$contains_QMARK_.invoke(core.clj:1402)
    at plugin.markup$clear_all_markers$reify__5747.process(markup.clj:124)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl$IntervalNode.processAliveKeys(IntervalTreeImpl.java:97)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:460)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:455)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:455)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:468)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:455)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.a(IntervalTreeImpl.java:455)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.processOverlappingWith(IntervalTreeImpl.java:432)
    at com.intellij.openapi.editor.impl.MarkupModelImpl.processRangeHighlightersOverlappingWith(MarkupModelImpl.java:253)
    at plugin.markup$clear_all_markers.invoke(markup.clj:119)
    at plugin.testing.actions$run_test_form.invoke(actions.clj:380)
    at plugin.testing.actions$run_single_test$test_fn__7026.invoke(actions.clj:427)
    at plugin.testing.actions$run_single_test.invoke(actions.clj:429)
    at clojure.lang.Var.invoke(Var.java:415)
    at plugin.actions$dumb_aware$fn__1757.invoke(actions.clj:144)
    at plugin.actions.proxy$com.intellij.openapi.project.DumbAwareAction$ClojureAction$WithShortcutSet$12bedcdc.actionPerformed(Unknown Source)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:162)
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:259)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:892)
    at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:114)
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:230)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:104)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
    at com.apple.laf.ScreenMenuItemCheckbox.itemStateChanged(ScreenMenuItemCheckbox.java:178)
    at java.awt.CheckboxMenuItem.processItemEvent(CheckboxMenuItem.java:372)
    at java.awt.CheckboxMenuItem.processEvent(CheckboxMenuItem.java:340)
    at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:343)
    at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:331)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:720)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:676)
    at java.awt.EventQueue$2.run(EventQueue.java:674)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:690)
    at java.awt.EventQueue$3.run(EventQueue.java:688)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
    at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:700)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:525)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
@vincentjames501
Copy link
Author

If I delete my idea project files and recreate the project from source, the first time you run the command, it runs fine, but each subsequent one fails. This is also true with rerun test and run all tests in NS (they generate a similar stacktrace). Let me know if you need any more info to debug this!

@cursive-ide
Copy link
Owner

Ok, this looks like a different error to the other issue - I'll fix this for the next build, thanks.

@cursive-ide cursive-ide added this to the 0.1.32 milestone Aug 18, 2014
@cursive-ide
Copy link
Owner

So I'm not sure why this error was happening - I can't construct a plausible way it could occur. That said, I've made some changes based on the stack trace that I'm pretty sure should fix it.

@vincentjames501
Copy link
Author

The issue with the tests not running the second time is resolved, however, on Idea 12 running the tests does not produce the little yellow & green bubbles on the left for a quick diff as it did before. Haven't tested on Idea 13 to compare. If you'd like me to open another issue let me know!

@cursive-ide
Copy link
Owner

I've just tested this, you're right, it seems to be a v12 issue. When tests provoke errors I do see the red squiggly underlines in the editor and I can step between them using F2 (jump to next error). Those are now used to see the diffs so the diffs are actually available, at least. I'll see if I can figure out why the bubbles aren't showing up.

@vincentjames501
Copy link
Author

Thanks much!

-- 
Vincent Pizzo
vincentjames501@gmail.com
(314) 607-8981 (cell)

On Aug 27, 2014, at 6:21 PM, cursiveclojure notifications@github.com wrote:

I've just tested this, you're right, it seems to be a v12 issue. When tests provoke errors I do see the red squiggly underlines in the editor and I can step between them using F2 (jump to next error). Those are now used to see the diffs so the diffs are actually available, at least. I'll see if I can figure out why the bubbles aren't showing up.

Reply to this email directly orview it on GitHub
.

@cursive-ide
Copy link
Owner

This was indeed a change in the API from v12 to v13. It's fixed in the next build.

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

2 participants