psliwa / idea-composer-plugin

PhpStorm plugin that adds code completion in composer.json file
MIT License
335 stars 10 forks source link

Plugin crashes #79

Closed idontusenumbers closed 5 years ago

idontusenumbers commented 5 years ago

IntelliJ IDEA 2019.1.2 Preview (Ultimate Edition) Build #IU-191.7141.2, built on April 23, 2019 JRE: 1.8.0_202-release-1483-b49 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.13.6

com.intellij.openapi.extensions.impl.PicoPluginExtensionInitializationException: scala/util/parsing/json/JSON$
    at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.createInstance(ExtensionComponentAdapter.java:52)
    at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.java:46)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:343)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensionList(ExtensionPointImpl.java:264)
    at com.intellij.openapi.extensions.ExtensionPointName.getExtensionList(ExtensionPointName.java:34)
    at com.intellij.lang.documentation.CompositeDocumentationProvider.getAllProviders(CompositeDocumentationProvider.java:48)
    at com.intellij.lang.documentation.CompositeDocumentationProvider.getQuickNavigateInfo(CompositeDocumentationProvider.java:111)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler.generateInfo(CtrlMouseHandler.java:291)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$1400(CtrlMouseHandler.java:93)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$InfoSingle.getInfo(CtrlMouseHandler.java:411)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.doExecute(CtrlMouseHandler.java:740)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.access$2100(CtrlMouseHandler.java:655)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1.performInReadAction(CtrlMouseHandler.java:709)
    at com.intellij.openapi.progress.util.ReadTask.lambda$runBackgroundProcess$0(ReadTask.java:66)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:974)
    at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57)
    at com.intellij.openapi.progress.util.ReadTask.runBackgroundProcess(ReadTask.java:66)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runUnderProgress$4(ProgressIndicatorUtils.java:225)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$3(CoreProgressManager.java:180)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:180)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runUnderProgress(ProgressIndicatorUtils.java:223)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.access$100(ProgressIndicatorUtils.java:33)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:174)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: scala/util/parsing/json/JSON$
    at org.psliwa.idea.composerJson.json.Schema$.parse(Schema.scala:66)
    at org.psliwa.idea.composerJson.json.SchemaLoader$.$anonfun$load$3(SchemaLoader.scala:11)
    at scala.Option.flatMap(Option.scala:171)
    at org.psliwa.idea.composerJson.json.SchemaLoader$.load(SchemaLoader.scala:11)
    at org.psliwa.idea.composerJson.package$.ComposerSchema$lzycompute(package.scala:10)
    at org.psliwa.idea.composerJson.package$.ComposerSchema(package.scala:10)
    at org.psliwa.idea.composerJson.intellij.codeAssist.schema.SchemaDocumentationProvider.<init>(SchemaDocumentationProvider.scala:14)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.doGetComponentInstance(CachingConstructorInjectionComponentAdapter.java:92)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.instantiateGuarded(CachingConstructorInjectionComponentAdapter.java:66)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:48)
    at com.intellij.openapi.extensions.impl.XmlExtensionAdapter$ConstructorInjectionAdapter.instantiateClass(XmlExtensionAdapter.java:112)
    at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.createInstance(ExtensionComponentAdapter.java:44)
    ... 30 more
Caused by:

java.lang.NoClassDefFoundError: scala/util/parsing/json/JSON$
    at org.psliwa.idea.composerJson.json.Schema$.parse(Schema.scala:66)
    at org.psliwa.idea.composerJson.json.SchemaLoader$.$anonfun$load$3(SchemaLoader.scala:11)
    at scala.Option.flatMap(Option.scala:171)
    at org.psliwa.idea.composerJson.json.SchemaLoader$.load(SchemaLoader.scala:11)
    at org.psliwa.idea.composerJson.package$.ComposerSchema$lzycompute(package.scala:10)
    at org.psliwa.idea.composerJson.package$.ComposerSchema(package.scala:10)
    at org.psliwa.idea.composerJson.intellij.codeAssist.schema.SchemaDocumentationProvider.<init>(SchemaDocumentationProvider.scala:14)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.doGetComponentInstance(CachingConstructorInjectionComponentAdapter.java:92)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.instantiateGuarded(CachingConstructorInjectionComponentAdapter.java:66)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:48)
    at com.intellij.openapi.extensions.impl.XmlExtensionAdapter$ConstructorInjectionAdapter.instantiateClass(XmlExtensionAdapter.java:112)
    at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.createInstance(ExtensionComponentAdapter.java:44)
    at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.java:46)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:343)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensionList(ExtensionPointImpl.java:264)
    at com.intellij.openapi.extensions.ExtensionPointName.getExtensionList(ExtensionPointName.java:34)
    at com.intellij.lang.documentation.CompositeDocumentationProvider.getAllProviders(CompositeDocumentationProvider.java:48)
    at com.intellij.lang.documentation.CompositeDocumentationProvider.getQuickNavigateInfo(CompositeDocumentationProvider.java:111)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler.generateInfo(CtrlMouseHandler.java:291)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$1400(CtrlMouseHandler.java:93)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$InfoSingle.getInfo(CtrlMouseHandler.java:411)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.doExecute(CtrlMouseHandler.java:740)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.access$2100(CtrlMouseHandler.java:655)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1.performInReadAction(CtrlMouseHandler.java:709)
    at com.intellij.openapi.progress.util.ReadTask.lambda$runBackgroundProcess$0(ReadTask.java:66)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:974)
    at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57)
    at com.intellij.openapi.progress.util.ReadTask.runBackgroundProcess(ReadTask.java:66)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runUnderProgress$4(ProgressIndicatorUtils.java:225)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$3(CoreProgressManager.java:180)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:180)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runUnderProgress(ProgressIndicatorUtils.java:223)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.access$100(ProgressIndicatorUtils.java:33)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:174)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
psliwa commented 5 years ago

Thanks for letting know. I will have a look at this today.

psliwa commented 5 years ago

Build for EAP Preview passes: https://travis-ci.org/psliwa/idea-composer-plugin/jobs/528975579, I checked the plugin with below setup and it works.

IntelliJ IDEA 2019.1.2 (Ultimate Edition)
Build #IU-191.7141.32, built on April 30, 2019
JRE: 1.8.0_202-release-1483-b49 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

Later I will check if there is the same on my mac os.

@idontusenumbers Can you check if on your machine and the latest EAP there is the same issue? https://download.jetbrains.com/idea/ideaIU-191.7141.32.dmg

idontusenumbers commented 5 years ago

I updated my work machine to:

IntelliJ IDEA 2019.1.2 (Ultimate Edition)
Build #IU-191.7141.32, built on April 30, 2019
JRE: 1.8.0_202-release-1483-b49 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6

Getting:

com.intellij.diagnostic.PluginException: java.lang.reflect.InvocationTargetException [Plugin: org.psliwa.idea.composer]
    at com.intellij.util.ExtensionInstantiator.instantiateWithPicoContainerOnlyIfNeeded(ExtensionInstantiator.java:58)
    at com.intellij.openapi.extensions.CustomLoadingExtensionPointBean.instantiateExtension(CustomLoadingExtensionPointBean.java:21)
    at com.intellij.lang.LanguageExtensionPoint.lambda$new$0(LanguageExtensionPoint.java:22)
    at com.intellij.openapi.util.NotNullLazyValue$2.compute(NotNullLazyValue.java:68)
    at com.intellij.openapi.util.NotNullLazyValue.getValue(NotNullLazyValue.java:39)
    at com.intellij.lang.LanguageExtensionPoint.getInstance(LanguageExtensionPoint.java:27)
    at com.intellij.codeInsight.completion.CompletionPreloader.preload(CompletionPreloader.java:17)
    at com.intellij.openapi.application.Preloader.lambda$null$0(Preloader.java:66)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
    at com.intellij.openapi.application.Preloader.lambda$initComponent$1(Preloader.java:63)
    at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:220)
    at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:26)
    at com.intellij.util.concurrency.BoundedTaskExecutor$2.lambda$run$0(BoundedTaskExecutor.java:198)
    at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:224)
    at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:194)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at com.intellij.util.ExceptionUtilRt.rethrow(ExceptionUtilRt.java:31)
    at com.intellij.util.ReflectionUtil.newInstance(ReflectionUtil.java:411)
    at com.intellij.util.ExtensionInstantiator.instantiateWithPicoContainerOnlyIfNeeded(ExtensionInstantiator.java:41)
    ... 21 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at com.intellij.util.ReflectionUtil.newInstance(ReflectionUtil.java:392)
    ... 22 more
Caused by: java.lang.NoClassDefFoundError: scala/util/parsing/json/JSON$
    at org.psliwa.idea.composerJson.json.Schema$.parse(Schema.scala:66)
    at org.psliwa.idea.composerJson.json.SchemaLoader$.$anonfun$load$3(SchemaLoader.scala:11)
    at scala.Option.flatMap(Option.scala:171)
    at org.psliwa.idea.composerJson.json.SchemaLoader$.load(SchemaLoader.scala:11)
    at org.psliwa.idea.composerJson.package$.ComposerSchema$lzycompute(package.scala:10)
    at org.psliwa.idea.composerJson.package$.ComposerSchema(package.scala:10)
    at org.psliwa.idea.composerJson.intellij.codeAssist.AbstractCompletionContributor.maybeSchema$lzycompute(AbstractCompletionContributor.scala:21)
    at org.psliwa.idea.composerJson.intellij.codeAssist.AbstractCompletionContributor.maybeSchema(AbstractCompletionContributor.scala:21)
    at org.psliwa.idea.composerJson.intellij.codeAssist.AbstractCompletionContributor.<init>(AbstractCompletionContributor.scala:23)
    at org.psliwa.idea.composerJson.intellij.codeAssist.schema.CompletionContributor.<init>(CompletionContributor.scala:12)
    ... 27 more
Caused by: java.lang.ClassNotFoundException: scala.util.parsing.json.JSON$ PluginClassLoader[org.psliwa.idea.composer, 1.0.27] com.intellij.ide.plugins.cl.PluginClassLoader@59fc1a04
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:51)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 37 more
psliwa commented 5 years ago

I tested on almost the same setup (the only difference is mojave instead of high sierra) and everything works ok on my machine. Setup is below:

IntelliJ IDEA 2019.1.2 (Ultimate Edition)
Build #IU-191.7141.32, built on April 30, 2019
JRE: 1.8.0_202-release-1483-b49 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.4

Can you give me more details when does this exception occur? Immediately when you open composer.json file? Or maybe on specific action? The error looks very strange, like class loader is not able to find one class. Do you use 1.0.27 version of the plugin?

idontusenumbers commented 5 years ago

Yes, 1.0.27.

This is actually as part of a multi-module project file in IDEA. One of the modules has a number of composer.json files (one for each folder in /vendor). For every one of these crashes, (it's about 1 an hour, stack traces are not consistent), I have never had a composer.json file open. Last time I opened a composer.json file was probably last year.

idontusenumbers commented 5 years ago

I've been clearing the errors but here are the two most recent traces:

java.lang.NoClassDefFoundError: scala/util/parsing/json/JSON$
    at org.psliwa.idea.composerJson.json.Schema$.parse(Schema.scala:66)
    at org.psliwa.idea.composerJson.json.SchemaLoader$.$anonfun$load$3(SchemaLoader.scala:11)
    at scala.Option.flatMap(Option.scala:171)
    at org.psliwa.idea.composerJson.json.SchemaLoader$.load(SchemaLoader.scala:11)
    at org.psliwa.idea.composerJson.package$.ComposerSchema$lzycompute(package.scala:10)
    at org.psliwa.idea.composerJson.package$.ComposerSchema(package.scala:10)
    at org.psliwa.idea.composerJson.intellij.codeAssist.AbstractInspection.<init>(AbstractInspection.scala:11)
    at org.psliwa.idea.composerJson.intellij.codeAssist.composer.versionRenderer.PackageVersionInspection.<init>(PackageVersionInspection.scala:13)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.doGetComponentInstance(CachingConstructorInjectionComponentAdapter.java:92)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.instantiateGuarded(CachingConstructorInjectionComponentAdapter.java:66)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:48)
    at com.intellij.openapi.extensions.AbstractExtensionPointBean.instantiate(AbstractExtensionPointBean.java:73)
    at com.intellij.openapi.extensions.AbstractExtensionPointBean.instantiate(AbstractExtensionPointBean.java:67)
    at com.intellij.openapi.extensions.AbstractExtensionPointBean.instantiate(AbstractExtensionPointBean.java:62)
    at com.intellij.codeInspection.InspectionEP.instantiateTool(InspectionEP.java:141)
    at com.intellij.codeInspection.ex.InspectionToolWrapper.getTool(InspectionToolWrapper.java:71)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.getInspectionTools(LocalInspectionsPass.java:709)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPassFactory$MyLocalInspectionsPass.getInspectionTools(LocalInspectionsPassFactory.java:70)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:117)
    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:69)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:430)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1166)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:423)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:422)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:398)
    at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:164)
    at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:218)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:396)
    at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:174)
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
java.lang.NoClassDefFoundError: scala/util/parsing/json/JSON$
    at org.psliwa.idea.composerJson.json.Schema$.parse(Schema.scala:66)
    at org.psliwa.idea.composerJson.json.SchemaLoader$.$anonfun$load$3(SchemaLoader.scala:11)
    at scala.Option.flatMap(Option.scala:171)
    at org.psliwa.idea.composerJson.json.SchemaLoader$.load(SchemaLoader.scala:11)
    at org.psliwa.idea.composerJson.package$.ComposerSchema$lzycompute(package.scala:10)
    at org.psliwa.idea.composerJson.package$.ComposerSchema(package.scala:10)
    at org.psliwa.idea.composerJson.intellij.codeAssist.AbstractInspection.<init>(AbstractInspection.scala:11)
    at org.psliwa.idea.composerJson.intellij.codeAssist.composer.versionRenderer.PackageVersionInspection.<init>(PackageVersionInspection.scala:13)
    at sun.reflect.GeneratedConstructorAccessor486.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.doGetComponentInstance(CachingConstructorInjectionComponentAdapter.java:92)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.instantiateGuarded(CachingConstructorInjectionComponentAdapter.java:66)
    at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:48)
    at com.intellij.openapi.extensions.AbstractExtensionPointBean.instantiate(AbstractExtensionPointBean.java:73)
    at com.intellij.openapi.extensions.AbstractExtensionPointBean.instantiate(AbstractExtensionPointBean.java:67)
    at com.intellij.openapi.extensions.AbstractExtensionPointBean.instantiate(AbstractExtensionPointBean.java:62)
    at com.intellij.codeInspection.InspectionEP.instantiateTool(InspectionEP.java:141)
    at com.intellij.codeInspection.ex.InspectionToolWrapper.getTool(InspectionToolWrapper.java:71)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.getInspectionTools(LocalInspectionsPass.java:709)
    at com.intellij.codeInsight.daemon.impl.WholeFileLocalInspectionsPassFactory$2.getInspectionTools(WholeFileLocalInspectionsPassFactory.java:97)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:117)
    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:69)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:430)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1166)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:423)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:422)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:398)
    at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:164)
    at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:218)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:396)
    at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:174)
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
psliwa commented 5 years ago

Can you click on Help > Collect Troubleshooting Information and send me plugins list what you have installed (the last section)?

idontusenumbers commented 5 years ago

Seems opening the commit dialog box triggers the error.

I looked through the files listed in the commit dialog; the closest things to a composer file are:

  1. A composer.phar
  2. Some unrelated files in the same module as the composer.json files
=== Plugins ===
Custom plugins: [String Manipulation (6.1.143.000.0), VisualVM Launcher (1.12.182.000.0), Awesome Console (0.1337.6), RxJava Postfix Plugin (0.1.0), Apache config (.htaccess) support (191.4738.10), Ideolog (191.0.9.0), TeamCity (2018.2.60977), JB SDK Bintray Downloader (2.2), Ini4Idea (191.5849.22), File Watchers (191.6183.20), JUnit5Helper (0.4), nginx Support (0.1.6), Reactor boilerplate generator (0.4), Legacy Icon Pack 2018.2+ (1.10), .ignore (3.0.0.182), CSV Plugin (2.3.1), Storybook (1.0.7), JUnitGenerator V2.0 (2.0.12), HOCON (2019.1.2), BashSupport (1.7.7), NodeJS (191.6183.20), Styled Components (1.0.8), LiveEdit (191.5109.14), React CSS Modules (1.0.1), EJS (191.5109.14), PHP (191.6183.95), PHP 1Up! (0.1.2), Php Inspections (EA Extended) (3.0.13), React Css Modules (1.1), Scala (2019.1.6), PHP Remote Interpreter (191.5849.22), PHP Docker (191.6183.95), Python (2019.1.191.6183.87), Cloud Code (19.4.1), Markdown Navigator (2.8.4), Ruby (2019.1.20190327), PHP composer.json support (1.0.27), Run Configuration as Action (1.3), Open in terminal (1.5.1), .env files support (0.7)]
Disabled plugins:[OpenShift integration (191.7141.32), Perforce Integration (191.7141.32), Subversion (191.7141.32), ZKM-Unscramble (191.7141.32), Smali Support (191.7141.32), Spring AOP/@AspectJ (191.7141.32), Copyright (191.7141.32), Lua (1.0.115), J2ME (191.7141.32), Emma (191.7141.32), Time Tracking (191.7141.32), Velocity support (191.7141.32), ASP (191.7141.32), Jenkinsfile IDEA plugin (1.0), Mercurial Integration (191.7141.32), CFML Support (191.7141.32), GlassFish Integration (191.7141.32), Heroku integration (191.7141.32), JBoss Integration (191.7141.32), Jetty Integration (191.7141.32), Resin Integration (191.7141.32), Tomcat and TomEE Integration (191.7141.32), CloudBees integration (191.7141.32), Geronimo Integration (191.7141.32), WebSphere Integration (191.7141.32), WebLogic Integration (191.7141.32), Java EE: Bean Validation Support (191.7141.32), Java EE: Contexts and Dependency Injection (191.7141.32), Hibernate Support (191.7141.32), Java EE: Batch Applications (191.7141.32), Java EE: JMS, JSON Processing, Concurrency, Transaction  (191.7141.32), Application Servers View (191.7141.32), Java EE: WebSockets (191.7141.32), JBoss Frameworks Base Support (191.7141.32), JBoss Drools Support (191.7141.32), JBoss Arquillian Support (191.7141.32), JBoss jBPM (191.7141.32), Tapestry support (191.7141.32), Playframework Support (191.7141.32), Cucumber for Groovy (191.7141.32), Markdown support (191.7141.32), Eclipse Integration (191.7141.32), Osmorc (191.7141.32), AspectJ Support (191.7141.32), Plugin DevKit (191.7141.32), Haml (191.7141.32), JavaFX (191.7141.32), Stylus support (191.7141.32), AngularJS (191.7141.32), Android Support (10.3.3), Struts 1.x (191.7141.32), Handlebars/Mustache (191.4738.6), Flash/Flex Support (191.7141.32), Java EE: Java Server Faces (191.7141.32), JBoss Seam Support (191.7141.32), JBoss Seam Pageflow Support (191.7141.32), JBoss Seam Pages Support (191.7141.32), Cloud Foundry integration (191.7141.32), Java EE: Web Services (JAX-WS) (191.7141.32), dmServer Support (191.7141.32), FreeMarker support (191.7141.32), GWT Support (191.7141.32), Google App Engine (191.7141.32), Vaadin Support (191.7141.32), Spring Batch (191.7141.32), Spring Data (191.7141.32), Spring OSGi (191.7141.32), Spring Security (191.7141.32), Spring Integration Patterns (191.7141.32), Spring Web Services (191.7141.32), Spring WebSocket (191.7141.32), Struts 2 (191.7141.32), Spring MVC (191.7141.32), Spring Web Flow (191.7141.32), Thymeleaf (191.7141.32), Java EE: RESTful Web Services (JAX-RS) (191.7141.32), CoffeeScript (191.7141.32), Grails (191.7141.32), Kubernetes and OpenShift Resource Support (0.9), Spring Boot (191.7141.32), Senya Editor (1.0.1), Settings Repository (191.7141.32), tslint (191.7141.32)]
psliwa commented 5 years ago

Thanks, I will check what happens when I install the same plugins - maybe there is a conflict between some plugins.

psliwa commented 5 years ago

I wasn't able to reproduce the issue, it looks like strange issue with classpath, probably something hides scala.util.parsing.json package. This library is deprecated anyway, I will try to use spray-json library instead which is recommended. Can you try to install the plugin from this url (Plugins > tool wheel icon > install plugin from disk) and check if it works? The url: https://github.com/psliwa/idea-composer-plugin/releases/download/1.0.27-spray-json/composer-json-plugin-proguard.zip. This version of the plugin switches json library, there are the changes: https://github.com/psliwa/idea-composer-plugin/commit/ca3725783c84a853650732f0f8d0edf072eb0c87.

idontusenumbers commented 5 years ago

I installed the linked version; I can no longer reproduce the crash by invoking the commit dialog; I will follow up if I get another error. Seems fixed though, thanks!

psliwa commented 5 years ago

Thanks. I released 1.0.28 version with the fix, so I am closing the issue.