Plugin shows an error on pycharm
Opened this issue · 0 comments
Describe the bug
java.lang.IllegalArgumentException: Image should be square.
at com.mallowigi.imageicon.core.ImageWrapper.scaleImage(ImageWrapper.kt:44)
at com.mallowigi.imageicon.core.ImageWrapper.(ImageWrapper.kt:36)
at com.mallowigi.imageicon.core.ImageWrapper.(ImageWrapper.kt:35)
at com.mallowigi.imageicon.converters.ImageToIconConverter.getImageWrapper(ImageToIconConverter.kt:78)
at com.mallowigi.imageicon.converters.SVGImageConverter.convert(SVGImageConverter.kt:67)
at com.mallowigi.imageicon.ImageIconProvider.getIcon(ImageIconProvider.kt:44)
at com.intellij.util.PsiIconUtil.getProvidersIcon(PsiIconUtil.java:21)
at com.intellij.ide.FileIconPatcherImpl.getIcon(FileIconPatcherImpl.java:37)
at com.intellij.util.IconUtil.getProvidersIcon(IconUtil.java:215)
at com.intellij.util.IconUtil.computeFileIcon(IconUtil.java:149)
at com.intellij.openapi.fileEditor.impl.EditorsSplitters.lambda$updateFileIconAsynchronously$5(EditorsSplitters.java:420)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.insideReadAction(NonBlockingReadActionImpl.java:536)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$attemptComputation$3(NonBlockingReadActionImpl.java:501)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1154)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:75)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:158)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:115)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:66)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:112)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:75)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.attemptComputation(NonBlockingReadActionImpl.java:501)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$transferToBgThread$1(NonBlockingReadActionImpl.java:408)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:241)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:31)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:214)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:206)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:833)
To Reproduce
Whenever i start pycharm.
Expected Behavior
To be able to view my svg icons.
Environment
PyCharm 2022.2.1 (Professional Edition)
Build #PY-222.3739.56, built on August 16, 2022
Runtime version: 17.0.3+7-b469.37 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.5
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12
Metal Rendering is ON
Registry:
ide.editor.tab.selection.animation=true
documentation.show.toolbar=true
ide.balloon.shadow.size=0
ide.images.show.chessboard=true
typescript.external.type.definitions=false
Non-Bundled Plugins:
ski.chrzanow.foldableprojectview (1.1.3)
dev.pnbarx.idea.treecolor (1.2.2)
com.unger1984.npmdependencychecker (0.0.3)
com.mallowigi.imageicon (11.0.1)
com.jinsihou.react.snippets (1.1.0)
com.wix.sasslint (1.1.2)
com.bluewaitor.tsReact (1.4.0)
mobi.hsz.idea.gitignore (4.4.2)
com.mallowigi (72.0.0)
intellij.prettierJS (222.3739.24)
com.nekofar.milad.intellij.nextjs (1.2.3)
com.clutcher.comments_highlighter (2.4.1)
NodeJS (222.3739.16)
io.plugin.tsnode (2021.12.02-0)
com.intellij.react.css.modules (1.0.1)
ru.meanmail.plugin.requirements (2022.3-222-EAP-SNAPSHOT)
com.mallowigi.colorHighlighter (12.0.0)
com.chrisrm.idea.MaterialThemeUI (7.9.0)
ru.adelf.idea.dotenv (2022.2)
Screenshots