maximehamm / tzatziki

Cucumber y Tzatziki
26 stars 7 forks source link

Plugin Cucumber+ 9.0.3 (latest) crashed during pasting of new line of examples table #16

Closed ilya-corp closed 2 years ago

ilya-corp commented 2 years ago

I have pasted next line of table with examples from clipboard and plugin reported about the crash. Please see screenshot and stack trace for more details.

java.lang.ArrayIndexOutOfBoundsException: Index 4 out of bounds for length 4 at io.nimbly.tzatziki.clipboard.TzPasteKt$merge$1.invoke(TzPaste.kt:179) at io.nimbly.tzatziki.clipboard.TzPasteKt.merge(TzPaste.kt:190) at io.nimbly.tzatziki.clipboard.TzPasteKt.pasteToTable(TzPaste.kt:114) at io.nimbly.tzatziki.clipboard.TzPasteKt.smartPaste(TzPaste.kt:76) at io.nimbly.tzatziki.TzTModuleListener$PasteHandler.doExecute(TzTModuleListener.kt:136) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.lambda$execute$4(EditorActionHandler.java:199) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.doIfEnabled(EditorActionHandler.java:89) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:198) at com.intellij.openapi.editor.actionSystem.EditorAction.lambda$actionPerformed$0(EditorAction.java:89) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:216) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:172) at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:98) at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:73) at com.intellij.openapi.keymap.impl.ActionProcessor.performAction(ActionProcessor.java:65) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:563) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$doPerformActionInner$8(IdeKeyEventDispatcher.java:677) at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:261) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.doPerformActionInner(IdeKeyEventDispatcher.java:670) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:603) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:574) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:457) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:450) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:218) at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.java:799) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:749) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:442) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:825) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:441) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:794) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493) 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)

ilya-corp commented 2 years ago

cucumber_plus_01

maximehamm commented 2 years ago

Hello Sorry I'm unable to reproduce it... Please send me a test case :

ilya-corp commented 2 years ago

Hello! This problem was not appeared anymore on my end. If problem will come back, I'll try to provide more specific info.

maximehamm commented 2 years ago

Thank you !