import-cost
import-cost copied to clipboard
Crash report from WebStorm
ImportCost version: 1.0.8.212
WebStorm 2021.2.3 Build #WS-212.5457.55, built on October 18, 2021 Runtime version: 11.0.12+7-b1504.40 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 12.0.1 GC: G1 Young Generation, G1 Old Generation Memory: 2560M Cores: 8 Registry: ide.balloon.shadow.size=0 Non-Bundled Plugins: Key Promoter X (2021.3), com.intellij.ideolog (203.0.27.0), com.vecheslav.darculaDarkerTheme (1.2.0), com.mallowigi (50.2.0), uk.co.ben-gibson.remote.repository.mapper (3.3.5), com.intellij.kubernetes (212.5457.4), ru.adelf.idea.dotenv (2021.3.0.212), zielu.gittoolbox (212.8.0), ImportCost (1.0.8.212), izhangzhihao.rainbow.brackets (6.21)
java.lang.IndexOutOfBoundsException: Wrong offset: 306. Should be in range: [0, 297]
at com.intellij.openapi.editor.impl.LineSet.findLineIndex(LineSet.java:166)
at com.intellij.openapi.editor.impl.DocumentImpl.getLineNumber(DocumentImpl.java:1005)
at com.github.denofevil.importCost.LanguageService$processImports$1$1.visitES6ImportDeclaration(LanguageService.kt:137)
at com.intellij.lang.ecmascript6.psi.impl.ES6ImportDeclarationImpl.accept(ES6ImportDeclarationImpl.java:41)
at com.intellij.psi.PsiWalkingState.visit(PsiWalkingState.java:67)
at com.intellij.psi.PsiWalkingState.visit(PsiWalkingState.java:24)
at com.intellij.util.WalkingState.walkChildren(WalkingState.java:62)
at com.intellij.util.WalkingState.elementStarted(WalkingState.java:49)
at com.intellij.psi.PsiWalkingState.elementStarted(PsiWalkingState.java:76)
at com.intellij.lang.javascript.psi.JSRecursiveWalkingElementVisitor.visitElement(JSRecursiveWalkingElementVisitor.java:29)
at com.intellij.psi.PsiElementVisitor.visitFile(PsiElementVisitor.java:35)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSFile(JSElementVisitor.java:331)
at com.intellij.lang.javascript.psi.impl.JSFileImpl.accept(JSFileImpl.java:108)
at com.github.denofevil.importCost.LanguageService.processImports$lambda-2(LanguageService.kt:123)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:828)
at com.github.denofevil.importCost.LanguageService.processImports(LanguageService.kt:121)
at com.github.denofevil.importCost.LanguageService.access$processImports(LanguageService.kt:34)
at com.github.denofevil.importCost.LanguageService$updateImports$1.run(LanguageService.kt:111)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:333)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:323)
at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:273)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:287)
at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:242)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:240)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:391)
at com.intellij.util.Alarm$Request.run(Alarm.java:377)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:220)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:216)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:27)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:195)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:184)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)