You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
Go to Languages & Frameworks → Language Server Protocol → Server Definitions
Pick Executable
set Extension to tf
set Path to terraform-ls
set Args to serve
Confirm by clicking Apply
Restart
Create a file with extension .tf
Start typing resource
Exception occurs and no auto-completion
java.lang.IllegalArgumentException: Invalid range specified: (0, -1); 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.<init>(TextRange.java:41) at com.intellij.openapi.util.TextRange.<init>(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:830) 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:916) at com.intellij.openapi.editor.impl.DocumentImpl.updateText(DocumentImpl.java:820) at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:660) at com.intellij.openapi.command.impl.EditorChangeAction.doChange(EditorChangeAction.java:63) at com.intellij.openapi.command.impl.EditorChangeAction.undo(EditorChangeAction.java:45) at com.intellij.openapi.command.impl.UndoableGroup.performActions(UndoableGroup.java:179) at com.intellij.openapi.command.impl.UndoableGroup.lambda$doUndoOrRedo$0(UndoableGroup.java:151) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:959) at com.intellij.openapi.command.impl.UndoableGroup.doUndoOrRedo(UndoableGroup.java:128) at com.intellij.openapi.command.impl.UndoableGroup.undoOrRedo(UndoableGroup.java:117) at com.intellij.openapi.command.impl.UndoableGroup.undo(UndoableGroup.java:96) at com.intellij.openapi.command.impl.Undo.performAction(Undo.java:40) at com.intellij.openapi.command.impl.UndoRedo.execute(UndoRedo.java:126) at com.intellij.openapi.command.impl.CommandMerger.undoOrRedo(CommandMerger.java:257) at com.intellij.openapi.command.impl.UndoManagerImpl.lambda$undoOrRedo$0(UndoManagerImpl.java:356) 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.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:162) at com.intellij.openapi.command.impl.UndoManagerImpl.undoOrRedo(UndoManagerImpl.java:364) at com.intellij.openapi.command.impl.UndoManagerImpl.undo(UndoManagerImpl.java:339) at com.intellij.ide.actions.UndoAction.perform(UndoAction.java:31) at com.intellij.ide.actions.UndoRedoAction.actionPerformed(UndoRedoAction.java:45) at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performActionDumbAware$5(ActionUtil.java:273) at com.intellij.util.SlowOperations.lambda$allowSlowOperations$0(SlowOperations.java:77) at com.intellij.util.SlowOperations.allowSlowOperations(SlowOperations.java:64) at com.intellij.util.SlowOperations.allowSlowOperations(SlowOperations.java:76) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:273) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:616) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$3(IdeKeyEventDispatcher.java:676) at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:675) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:626) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:486) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:481) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:232) at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.java:889) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:833) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:449) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:808) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:781) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502) 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)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
java.lang.IllegalArgumentException: Invalid range specified: (0, -1); 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.<init>(TextRange.java:41) at com.intellij.openapi.util.TextRange.<init>(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:830) 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:916) at com.intellij.openapi.editor.impl.DocumentImpl.updateText(DocumentImpl.java:820) at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:660) at com.intellij.openapi.command.impl.EditorChangeAction.doChange(EditorChangeAction.java:63) at com.intellij.openapi.command.impl.EditorChangeAction.undo(EditorChangeAction.java:45) at com.intellij.openapi.command.impl.UndoableGroup.performActions(UndoableGroup.java:179) at com.intellij.openapi.command.impl.UndoableGroup.lambda$doUndoOrRedo$0(UndoableGroup.java:151) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:959) at com.intellij.openapi.command.impl.UndoableGroup.doUndoOrRedo(UndoableGroup.java:128) at com.intellij.openapi.command.impl.UndoableGroup.undoOrRedo(UndoableGroup.java:117) at com.intellij.openapi.command.impl.UndoableGroup.undo(UndoableGroup.java:96) at com.intellij.openapi.command.impl.Undo.performAction(Undo.java:40) at com.intellij.openapi.command.impl.UndoRedo.execute(UndoRedo.java:126) at com.intellij.openapi.command.impl.CommandMerger.undoOrRedo(CommandMerger.java:257) at com.intellij.openapi.command.impl.UndoManagerImpl.lambda$undoOrRedo$0(UndoManagerImpl.java:356) 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.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:162) at com.intellij.openapi.command.impl.UndoManagerImpl.undoOrRedo(UndoManagerImpl.java:364) at com.intellij.openapi.command.impl.UndoManagerImpl.undo(UndoManagerImpl.java:339) at com.intellij.ide.actions.UndoAction.perform(UndoAction.java:31) at com.intellij.ide.actions.UndoRedoAction.actionPerformed(UndoRedoAction.java:45) at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performActionDumbAware$5(ActionUtil.java:273) at com.intellij.util.SlowOperations.lambda$allowSlowOperations$0(SlowOperations.java:77) at com.intellij.util.SlowOperations.allowSlowOperations(SlowOperations.java:64) at com.intellij.util.SlowOperations.allowSlowOperations(SlowOperations.java:76) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:273) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:616) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$3(IdeKeyEventDispatcher.java:676) at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:675) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:626) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:486) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:481) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:232) at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.java:889) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:833) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:449) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:808) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:781) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502) 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)
The text was updated successfully, but these errors were encountered: