beansoft / react-native-console

🧩 an IDEA/WebStorm/Android Studio Plugin for One-Click run React Native commands in embed terminal
BSD 3-Clause "New" or "Revised" License
185 stars 28 forks source link

Webstorm Error in RNC Version 2021.1.1 #60

Closed ITninja04 closed 3 years ago

ITninja04 commented 3 years ago

The following error occurs when launching Webstorm or opening any projects.

OS: OSX Big Sur 11.2.1 Webstorm: 2020.3.2 npm -v 7.5.3 yarn -v 1.22.10

2021-03-03T14:19:56.120
javax.imageio.IIOException: I/O error reading PNG header!
    at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readHeader(PNGImageReader.java:315)
    at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:698)
    at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1395)
    at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1810)
    at com.intellij.util.ImageLoader.loadPng(ImageLoader.java:375)
    at com.intellij.util.ImageLoader.loadFromStream(ImageLoader.java:570)
    at com.intellij.util.ImageLoader.loadFromBytes(ImageLoader.java:561)
    at B.A.A.B.Ă(Unknown Source)
    at B.A.A.B.getIcon(Unknown Source)
    at com.github.beansoftapp.reatnative.idea.project.RNIconProvider.getIcon(Unknown Source)
    at com.intellij.util.PsiIconUtil.getProvidersIcon(PsiIconUtil.java:17)
    at com.intellij.psi.impl.ElementBase.doComputeIconNow(ElementBase.java:87)
    at com.intellij.psi.impl.ElementBase.lambda$computeIconNow$3(ElementBase.java:83)
    at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:127)
    at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:116)
    at com.intellij.psi.impl.ElementBase.computeIconNow(ElementBase.java:83)
    at com.intellij.psi.impl.ElementBase.lambda$static$0(ElementBase.java:43)
    at com.intellij.ui.DeferredIconImpl.evaluate(DeferredIconImpl.java:282)
    at com.intellij.ui.DeferredIconImpl.lambda$scheduleEvaluation$1(DeferredIconImpl.java:169)
    at com.intellij.ui.IconDeferrerImpl.evaluateDeferred(IconDeferrerImpl.java:101)
    at com.intellij.ui.DeferredIconImpl.lambda$scheduleEvaluation$2(DeferredIconImpl.java:169)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1137)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:76)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:152)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:113)
    at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:59)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
    at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:59)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:110)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:76)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:97)
    at com.intellij.ui.DeferredIconImpl.lambda$scheduleEvaluation$5(DeferredIconImpl.java:168)
    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.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:208)
    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:834)
Caused by: javax.imageio.IIOException: Bad PNG signature!
    at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readHeader(PNGImageReader.java:242)
    ... 49 more
beansoft commented 3 years ago

Thanks for your report, i’ve found same issue this week, and already fixed, will release soon with some new feature.

beansoft commented 3 years ago

https://plugins.jetbrains.com/files/9564/112742/react-native-console_release.jar?updateId=112742&pluginId=9564&family=INTELLIJ

I’ve submitted the update, waiting for Jetbrians’ approvement. And you can use this url for mannual install and do an early test.

I’ve tested under WebStorm 2021.1 EAP build 211.6222.6

beansoft commented 3 years ago

Plugin update is already approved by Jetbrains, please update it in your Webstorm.