gtache / intellij-lsp

Plugin adding Language Server Protocol support for IntelliJ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

java.lang.IndexOutOfBoundsException

tekord opened this issue · comments

Used version 1.5.2. Got the following exception:

java.lang.IndexOutOfBoundsException: Wrong line: 360. Available lines count: 15
	at com.intellij.openapi.editor.impl.LineSet.checkLineIndex(LineSet.java:202)
	at com.intellij.openapi.editor.impl.LineSet.getLineStart(LineSet.java:187)
	at com.intellij.openapi.editor.impl.DocumentImpl.getLineStartOffset(DocumentImpl.java:1020)
	at com.intellij.util.DocumentUtil.getLineTextRange(DocumentUtil.java:104)
	at com.github.gtache.lsp.utils.DocumentUtils$.$anonfun$LSPPosToOffset$1(DocumentUtils.scala:81)
	at com.github.gtache.lsp.utils.DocumentUtils$.$anonfun$LSPPosToOffset$1$adapted(DocumentUtils.scala:78)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:963)
	at com.github.gtache.lsp.utils.ApplicationUtils$.computableReadAction(ApplicationUtils.scala:26)
	at com.github.gtache.lsp.utils.DocumentUtils$.LSPPosToOffset(DocumentUtils.scala:78)
	at com.github.gtache.lsp.editor.EditorEventManager.createCtrlRange(EditorEventManager.scala:952)
	at com.github.gtache.lsp.editor.EditorEventManager.com$github$gtache$lsp$editor$EditorEventManager$$requestAndShowDoc(EditorEventManager.scala:1080)
	at com.github.gtache.lsp.editor.EditorEventManager.$anonfun$mouseMoved$1(EditorEventManager.scala:1023)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

I have checked 'Always send requests'. Used with D Language Plugin.