Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Frequent Error Crashes LSP Support #165

Open
atummons opened this issue Aug 9, 2021 · 0 comments
Open

Frequent Error Crashes LSP Support #165

atummons opened this issue Aug 9, 2021 · 0 comments

Comments

@atummons
Copy link

atummons commented Aug 9, 2021

java.lang.IllegalArgumentException: Invalid range specified: (424, 423);
at com.intellij.openapi.util.TextRange.assertProperRange(TextRange.java:222)
at com.intellij.openapi.util.TextRange.assertProperRange(TextRange.java:217)
at com.intellij.openapi.util.TextRange.assertProperRange(TextRange.java:213)
at com.intellij.openapi.util.TextRange.(TextRange.java:41)
at com.intellij.openapi.util.TextRange.(TextRange.java:30)
at com.github.gtache.lsp.utils.DocumentUtils$DocumentExt.getTextClamped(DocumentUtils.scala:102)
at com.github.gtache.lsp.utils.DocumentUtils$DocumentExt.getTextClamped(DocumentUtils.scala:107)
at com.github.gtache.lsp.utils.DocumentUtils$.$anonfun$offsetToLSPPos$1(DocumentUtils.scala:61)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:841)
at com.github.gtache.lsp.utils.ApplicationUtils$.computableReadAction(ApplicationUtils.scala:26)
at com.github.gtache.lsp.utils.DocumentUtils$.offsetToLSPPos(DocumentUtils.scala:57)
at com.github.gtache.lsp.editor.EditorEventManager.documentChanged(EditorEventManager.scala:638)
at com.github.gtache.lsp.editor.listeners.DocumentListenerImpl.documentChanged(DocumentListenerImpl.scala:26)
at com.intellij.openapi.editor.impl.DocumentImpl.changedUpdate(DocumentImpl.java:913)
at com.intellij.openapi.editor.impl.DocumentImpl.updateText(DocumentImpl.java:817)
at com.intellij.openapi.editor.impl.DocumentImpl.deleteString(DocumentImpl.java:574)
at com.intellij.openapi.editor.impl.DocumentImpl$2.lambda$run$0(DocumentImpl.java:359)
at com.intellij.util.DocumentUtil.executeInBulk(DocumentUtil.java:43)
at com.intellij.openapi.editor.impl.DocumentImpl$2.run(DocumentImpl.java:354)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:936)
at com.intellij.util.DocumentUtil.lambda$writeInRunUndoTransparentAction$0(DocumentUtil.java:57)
at com.intellij.openapi.command.impl.CoreCommandProcessor.runUndoTransparentAction(CoreCommandProcessor.java:368)
at com.intellij.util.DocumentUtil.writeInRunUndoTransparentAction(DocumentUtil.java:57)
at com.intellij.openapi.editor.impl.DocumentImpl.stripTrailingSpaces(DocumentImpl.java:351)
at com.intellij.openapi.editor.impl.TrailingSpacesStripper.strip(TrailingSpacesStripper.java:192)
at com.intellij.openapi.editor.impl.TrailingSpacesStripper.strip(TrailingSpacesStripper.java:56)
at com.intellij.openapi.editor.impl.TrailingSpacesStripper.beforeAllDocumentsSaving(TrailingSpacesStripper.java:42)
at jdk.internal.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.multiCast(FileDocumentManagerImpl.java:195)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.lambda$new$0(FileDocumentManagerImpl.java:129)
at com.sun.proxy.$Proxy10.beforeAllDocumentsSaving(Unknown Source)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveDocuments(FileDocumentManagerImpl.java:271)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:259)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:252)
at com.intellij.ide.actions.SaveAllAction.actionPerformed(SaveAllAction.kt:24)
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)

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

No branches or pull requests

1 participant