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

ctrl + ; and typing characters afterwards causes KotlinNullPointerException #305

Closed
mimkorn opened this issue Oct 14, 2019 · 2 comments
Closed

Comments

@mimkorn
Copy link

mimkorn commented Oct 14, 2019

I was unable to make it work at all. Using Java 1.8, IDEa 2019.2.3

Pressing the shortcut does not cause it yet. The cursor changes and waits for me to type. The moment I type a character there is a 1 second lag and afterwards the error is thrown. The highlights are done. I can see all letters selected in code as I type, but there are no shortcuts next to them. Pressing enter jumps between different selected bits.

kotlin.KotlinNullPointerException
	at org.acejump.label.Pattern$Companion.distance(Pattern.kt:20)
	at org.acejump.label.Pattern$Companion.access$distance(Pattern.kt:19)
	at org.acejump.label.Pattern$Companion$defaultTagOrder$2.invoke(Pattern.kt:35)
	at org.acejump.label.Pattern$Companion$defaultTagOrder$2.invoke(Pattern.kt:19)
	at kotlin.comparisons.ComparisonsKt__ComparisonsKt.compareValuesByImpl$ComparisonsKt__ComparisonsKt(Comparisons.kt:25)
	at kotlin.comparisons.ComparisonsKt__ComparisonsKt.access$compareValuesByImpl(Comparisons.kt:1)
	at kotlin.comparisons.ComparisonsKt__ComparisonsKt$compareBy$1.compare(Comparisons.kt:91)
	at org.acejump.label.Solver$$special$$inlined$thenBy$1.compare(Comparisons.kt:144)
	at org.acejump.label.Solver$$special$$inlined$thenBy$2.compare(Comparisons.kt:144)
	at java.base/java.util.TimSort.binarySort(TimSort.java:296)
	at java.base/java.util.TimSort.sort(TimSort.java:239)
	at java.base/java.util.Arrays.sort(Arrays.java:1441)
	at kotlin.collections.ArraysKt___ArraysJvmKt.sortWith(_ArraysJvm.kt:1862)
	at kotlin.collections.CollectionsKt___CollectionsKt.sortedWith(_Collections.kt:947)
	at org.acejump.label.Solver.solve(Solver.kt:137)
	at org.acejump.label.Tagger.assignTags(Tagger.kt:232)
	at org.acejump.label.Tagger.markAndMapTags(Tagger.kt:157)
	at org.acejump.label.Tagger.markOrScrollToNextOccurrence(Tagger.kt:148)
	at org.acejump.label.Tagger.markOrJump(Tagger.kt:68)
	at org.acejump.search.Finder.tag(Finder.kt:134)
	at org.acejump.search.Finder.search(Finder.kt:104)
	at org.acejump.search.Finder.search$default(Finder.kt:98)
	at org.acejump.search.Finder.skimThenSearch(Finder.kt:87)
	at org.acejump.search.Finder.setQuery(Finder.kt:54)
	at org.acejump.control.Handler.execute(Handler.kt:68)
	at com.intellij.openapi.editor.actionSystem.TypedAction.lambda$actionPerformed$0(TypedAction.java:130)
	at com.intellij.reporting.FreezeLoggerImpl.runUnderPerformanceMonitor(FreezeLoggerImpl.java:28)
	at com.intellij.openapi.editor.actionSystem.TypedAction.actionPerformed(TypedAction.java:130)
	at com.intellij.openapi.editor.impl.EditorImpl.processKeyTypedNormally(EditorImpl.java:1304)
	at com.intellij.openapi.editor.impl.EditorImpl.processKeyTyped(EditorImpl.java:1289)
	at com.intellij.openapi.editor.impl.EditorImpl.processKeyTyped(EditorImpl.java:3359)
	at com.intellij.openapi.editor.impl.EditorImpl$7.keyTyped(EditorImpl.java:1119)
	at java.desktop/java.awt.AWTEventMulticaster.keyTyped(AWTEventMulticaster.java:247)
	at java.desktop/java.awt.Component.processKeyEvent(Component.java:6606)
	at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2849)
	at java.desktop/java.awt.Component.processEvent(Component.java:6428)
	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5026)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
	at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1950)
	at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:878)
	at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1148)
	at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1017)
	at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:843)
	at com.intellij.ide.IdeKeyboardFocusManager.dispatchEvent(IdeKeyboardFocusManager.java:40)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4907)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:824)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:751)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:412)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:704)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:411)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
@mimkorn mimkorn changed the title ctrl + ; causes KotlinNullPointerException ctrl + ; and typing characters afterwards causes KotlinNullPointerException Oct 15, 2019
breandan added a commit that referenced this issue Oct 26, 2019
@breandan
Copy link
Collaborator

By any chance, were you using DVORAK or QGMLWB keyboard layouts?

@mimkorn
Copy link
Author

mimkorn commented Nov 9, 2019 via email

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