{"action":"created","issue":{"url":"https://api.github.com/repos/cursive-ide/cursive/issues/1257","repository_url":"https://api.github.com/repos/cursive-ide/cursive","labels_url":"https://api.github.com/repos/cursive-ide/cursive/issues/1257/labels{/name}","comments_url":"https://api.github.com/repos/cursive-ide/cursive/issues/1257/comments","events_url":"https://api.github.com/repos/cursive-ide/cursive/issues/1257/events","html_url":"https://github.com/cursive-ide/cursive/issues/1257","id":133363176,"number":1257,"title":"IndexOutOfBoundsException - prevents some code navigation","user":{"login":"martinraison","id":2560662,"avatar_url":"https://avatars.githubusercontent.com/u/2560662?v=3","gravatar_id":"","url":"https://api.github.com/users/martinraison","html_url":"https://github.com/martinraison","followers_url":"https://api.github.com/users/martinraison/followers","following_url":"https://api.github.com/users/martinraison/following{/other_user}","gists_url":"https://api.github.com/users/martinraison/gists{/gist_id}","starred_url":"https://api.github.com/users/martinraison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinraison/subscriptions","organizations_url":"https://api.github.com/users/martinraison/orgs","repos_url":"https://api.github.com/users/martinraison/repos","events_url":"https://api.github.com/users/martinraison/events{/privacy}","received_events_url":"https://api.github.com/users/martinraison/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-12T22:53:17Z","updated_at":"2016-02-12T22:54:13Z","closed_at":"2016-02-12T22:54:12Z","body":"I get the stack trace below when opening one of my projects. I tried recreating the intellij project from scratch but it didn't help.\r\n\r\n    chars sequence.length:256, start:433, end:1015\r\n    java.lang.IndexOutOfBoundsException: chars sequence.length:256, start:433, end:1015\r\n        at com.intellij.util.text.CharSequenceSubSequence.<init>(CharSequenceSubSequence.java:34)\r\n        at com.intellij.util.text.ImmutableText.subSequence(ImmutableText.java:229)\r\n        at com.intellij.openapi.editor.impl.DocumentImpl$5.compute(DocumentImpl.java:796)\r\n        at com.intellij.openapi.editor.impl.DocumentImpl$5.compute(DocumentImpl.java:793)\r\n        at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:963)\r\n        at com.intellij.openapi.editor.impl.DocumentImpl.getText(DocumentImpl.java:793)\r\n        at cursive.intellij.class$create_class.invoke(class.clj:187)\r\n        at clojure.lang.Var.invoke(Var.java:383)\r\n        at cursive.psi.impl.javaView.ClojureClassFinder$1$1.createValue(ClojureClassFinder.java:58)\r\n        at cursive.psi.impl.javaView.ClojureClassFinder$1$1.createValue(ClojureClassFinder.java:54)\r\n        at com.intellij.util.containers.SLRUCache.get(SLRUCache.java:46)\r\n        at cursive.psi.impl.javaView.ClojureClassFinder.createClass(ClojureClassFinder.java:85)\r\n        at cursive.intellij.class$classes_by_fqn$fn__6499.invoke(class.clj:270)\r\n        at clojure.core$mapv$fn__6727.invoke(core.clj:6616)\r\n        at clojure.lang.PersistentVector.reduce(PersistentVector.java:333)\r\n        at clojure.core$reduce.invoke(core.clj:6518)\r\n        at clojure.core$mapv.invoke(core.clj:6616)\r\n        at cursive.intellij.class$classes_by_fqn.invoke(class.clj:270)\r\n        at clojure.lang.Var.invoke(Var.java:388)\r\n        at cursive.psi.impl.javaView.ClojureClassFinder.findClasses(ClojureClassFinder.java:78)\r\n        at com.intellij.psi.impl.JavaPsiFacadeImpl.findClasses(JavaPsiFacadeImpl.java:166)\r\n        at cursive.index.ClojureShortNamesCache.getClassesByName(ClojureShortNamesCache.java:43)\r\n        at com.intellij.psi.impl.CompositeShortNamesCache.getClassesByName(CompositeShortNamesCache.java:77)\r\n        at cursive.indexes.java$classes_by_short_name.invoke(java.clj:42)\r\n        at cursive.annotator$annotate_class_import.invoke(annotator.clj:137)\r\n        at cursive.annotator$annotate_import_require.invoke(annotator.clj:264)\r\n        at cursive.annotator$annotate_unresolved.invoke(annotator.clj:267)\r\n        at cursive.annotator$annotate_symbol.invoke(annotator.clj:355)\r\n        at cursive.annotator$fn__6040.invoke(annotator.clj:384)\r\n        at cursive.annotator$fn__6025$G__6020__6032.invoke(annotator.clj:375)\r\n        at cursive.annotator.ClojureAnnotator.annotate(annotator.clj:399)\r\n        at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.runAnnotators(DefaultHighlightVisitor.java:162)\r\n        at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:103)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.runVisitors(GeneralHighlightingPass.java:354)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$100(GeneralHighlightingPass.java:65)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$3.run(GeneralHighlightingPass.java:283)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:308)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$200(GeneralHighlightingPass.java:65)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$4.run(GeneralHighlightingPass.java:314)\r\n        at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:87)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:311)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:280)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:219)\r\n        at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:82)\r\n        at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:67)\r\n        at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:444)\r\n        at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1177)\r\n        at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:435)\r\n        at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)\r\n        at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)\r\n        at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)\r\n        at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:432)\r\n        at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:408)\r\n        at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:206)\r\n        at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)\r\n        at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)\r\n        at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)\r\n        at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)\r\n        at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)\r\n\r\n\r\n\r\n    java.lang.IndexOutOfBoundsException: chars sequence.length:256, start:433, end:1015\r\n        at com.intellij.util.text.CharSequenceSubSequence.<init>(CharSequenceSubSequence.java:34)\r\n        at com.intellij.util.text.ImmutableText.subSequence(ImmutableText.java:229)\r\n        at com.intellij.openapi.editor.impl.DocumentImpl$5.compute(DocumentImpl.java:796)\r\n        at com.intellij.openapi.editor.impl.DocumentImpl$5.compute(DocumentImpl.java:793)\r\n        at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:963)\r\n        at com.intellij.openapi.editor.impl.DocumentImpl.getText(DocumentImpl.java:793)\r\n        at cursive.intellij.class$create_class.invoke(class.clj:187)\r\n        at clojure.lang.Var.invoke(Var.java:383)\r\n        at cursive.psi.impl.javaView.ClojureClassFinder$1$1.createValue(ClojureClassFinder.java:58)\r\n        at cursive.psi.impl.javaView.ClojureClassFinder$1$1.createValue(ClojureClassFinder.java:54)\r\n        at com.intellij.util.containers.SLRUCache.get(SLRUCache.java:46)\r\n        at cursive.psi.impl.javaView.ClojureClassFinder.createClass(ClojureClassFinder.java:85)\r\n        at cursive.intellij.class$classes_by_fqn$fn__6499.invoke(class.clj:270)\r\n        at clojure.core$mapv$fn__6727.invoke(core.clj:6616)\r\n        at clojure.lang.PersistentVector.reduce(PersistentVector.java:333)\r\n        at clojure.core$reduce.invoke(core.clj:6518)\r\n        at clojure.core$mapv.invoke(core.clj:6616)\r\n        at cursive.intellij.class$classes_by_fqn.invoke(class.clj:270)\r\n        at clojure.lang.Var.invoke(Var.java:388)\r\n        at cursive.psi.impl.javaView.ClojureClassFinder.findClasses(ClojureClassFinder.java:78)\r\n        at com.intellij.psi.impl.JavaPsiFacadeImpl.findClasses(JavaPsiFacadeImpl.java:166)\r\n        at cursive.index.ClojureShortNamesCache.getClassesByName(ClojureShortNamesCache.java:43)\r\n        at com.intellij.psi.impl.CompositeShortNamesCache.getClassesByName(CompositeShortNamesCache.java:77)\r\n        at cursive.indexes.java$classes_by_short_name.invoke(java.clj:42)\r\n        at cursive.annotator$annotate_class_import.invoke(annotator.clj:137)\r\n        at cursive.annotator$annotate_import_require.invoke(annotator.clj:264)\r\n        at cursive.annotator$annotate_unresolved.invoke(annotator.clj:267)\r\n        at cursive.annotator$annotate_java_interop.invoke(annotator.clj:332)\r\n        at cursive.annotator$annotate_symbol.invoke(annotator.clj:350)\r\n        at cursive.annotator$fn__6040.invoke(annotator.clj:384)\r\n        at cursive.annotator$fn__6025$G__6020__6032.invoke(annotator.clj:375)\r\n        at cursive.annotator.ClojureAnnotator.annotate(annotator.clj:399)\r\n        at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.runAnnotators(DefaultHighlightVisitor.java:162)\r\n        at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:103)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.runVisitors(GeneralHighlightingPass.java:354)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$100(GeneralHighlightingPass.java:65)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$3.run(GeneralHighlightingPass.java:288)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:308)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$200(GeneralHighlightingPass.java:65)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$4.run(GeneralHighlightingPass.java:314)\r\n        at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:87)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:311)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:280)\r\n        at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:219)\r\n        at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:82)\r\n        at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:67)\r\n        at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:444)\r\n        at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1177)\r\n        at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:435)\r\n        at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)\r\n        at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)\r\n        at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)\r\n        at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:432)\r\n        at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:408)\r\n        at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:206)\r\n        at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)\r\n        at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)\r\n        at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)\r\n        at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)\r\n        at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)\r\n"},"comment":{"url":"https://api.github.com/repos/cursive-ide/cursive/issues/comments/183517614","html_url":"https://github.com/cursive-ide/cursive/issues/1257#issuecomment-183517614","issue_url":"https://api.github.com/repos/cursive-ide/cursive/issues/1257","id":183517614,"user":{"login":"martinraison","id":2560662,"avatar_url":"https://avatars.githubusercontent.com/u/2560662?v=3","gravatar_id":"","url":"https://api.github.com/users/martinraison","html_url":"https://github.com/martinraison","followers_url":"https://api.github.com/users/martinraison/followers","following_url":"https://api.github.com/users/martinraison/following{/other_user}","gists_url":"https://api.github.com/users/martinraison/gists{/gist_id}","starred_url":"https://api.github.com/users/martinraison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinraison/subscriptions","organizations_url":"https://api.github.com/users/martinraison/orgs","repos_url":"https://api.github.com/users/martinraison/repos","events_url":"https://api.github.com/users/martinraison/events{/privacy}","received_events_url":"https://api.github.com/users/martinraison/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T22:54:12Z","updated_at":"2016-02-12T22:54:12Z","body":"just reported that issue via the plugin directly - I think I can close this"}}