Comments (5)
1, 2.
Should work if the error is gone from 3. Its done continuously in background.
- "I get the same error, constantly."
You can higher the timeout inside the "code quality settings", maybe just a skip idea to test it. What i am more wondering why phpstan is this slow. maybe you can reconfigure phpstan or update to latest version. there were many approvments in caching and performance lately.
In background only the given file checked via PHPStan so it should be fast, i tested it also on bigger projects. I was wondering how it was performing there.
I am still open for implementation related to slow analysis, but i would prefer to handle it outside ;)
from idea-php-generics-plugin.
Ah, yes, increasing the wait timeout to 30s improved things a bit, but I still don't see any error indicators in the gutters. Also, sometimes I get java stack traces in the event log:
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
at de.espend.idea.php.generics.type.TemplateAnnotationTypeProvider.complete(TemplateAnnotationTypeProvider.java:66)
at com.jetbrains.php.PhpIndexImpl.lambda$completeType$1(PhpIndexImpl.java:129)
at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:117)
at com.jetbrains.php.PhpIndexImpl.completeType(PhpIndexImpl.java:129)
at com.jetbrains.php.PhpIndexImpl.completeType(PhpIndexImpl.java:100)
at com.jetbrains.php.lang.psi.resolve.types.PhpType.global(PhpType.java:460)
at com.jetbrains.php.completion.PhpLookupElement.renderElement(PhpLookupElement.java:235)
at com.intellij.codeInsight.lookup.impl.LookupCellRenderer.lambda$getListCellRendererComponent$1(LookupCellRenderer.java:142)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:864)
at com.intellij.codeInsight.lookup.impl.LookupCellRenderer.getListCellRendererComponent(LookupCellRenderer.java:139)
at com.intellij.codeInsight.lookup.impl.LookupCellRenderer.getListCellRendererComponent(LookupCellRenderer.java:49)
at com.intellij.ui.ExpandedItemListCellRendererWrapper.getListCellRendererComponent(ExpandedItemListCellRendererWrapper.java:24)
at com.intellij.ui.components.WideSelectionListUI.paintCell(WideSelectionListUI.java:53)
at java.desktop/javax.swing.plaf.basic.BasicListUI.paintImpl(BasicListUI.java:378)
at java.desktop/javax.swing.plaf.basic.BasicListUI.paint(BasicListUI.java:301)
at com.intellij.ui.components.WideSelectionListUI.paint(WideSelectionListUI.java:31)
at java.desktop/javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
at java.desktop/javax.swing.JComponent.paintComponent(JComponent.java:800)
at com.intellij.ui.components.JBList.paintComponent(JBList.java:174)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1077)
at com.intellij.ui.components.JBList.paint(JBList.java:106)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:910)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1086)
at java.desktop/javax.swing.JViewport.paint(JViewport.java:737)
at com.intellij.ui.components.JBViewport.paint(JBViewport.java:240)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:910)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1086)
at java.desktop/javax.swing.JComponent.paintToOffscreen(JComponent.java:5263)
at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(RepaintManager.java:1654)
at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1629)
at java.desktop/javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1566)
at java.desktop/javax.swing.RepaintManager.paint(RepaintManager.java:1333)
at java.desktop/javax.swing.JComponent._paintImmediately(JComponent.java:5211)
at java.desktop/javax.swing.JComponent.paintImmediately(JComponent.java:5021)
at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:868)
at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:851)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:851)
at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:826)
at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:775)
at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1901)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:974)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847)
at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:741)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:492)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Let me know if I can provide more information...
from idea-php-generics-plugin.
- I get the same error, constantly:
Increasing the timeout helps. Right after Psalm create a cache error message disappear.
from idea-php-generics-plugin.
The max value for the timeout seems to be 30s, and I'm already maxed-out. And I'm not currently using Psalm.
from idea-php-generics-plugin.
With the latest version, I'm no longer getting the ArrayIndexOutOfBoundsException
, so thank you. 👏
from idea-php-generics-plugin.
Related Issues (20)
- PHPStan errors still shown after PHPStan config change
- psalm: "The reference cache must be an array"
- Psalm / PhpStan config path HOT 1
- Duplicated configuration HOT 2
- Links to documentation in error messages
- Typehint for classes not working HOT 3
- Templates don't work with @extends HOT 2
- Add the ability to read stubs
- Missing import reported for non-doctrine annotations HOT 2
- Exception in the latest EAP HOT 1
- Problem with PhpStorm 2020.2 EAP - PS-202.5958.28 HOT 1
- Whats the name of the log category to debug PHPStan HOT 1
- AssertionErrors using Google API Client with PhpStorm 2020.2 Beta HOT 1
- Read access triggers "readonly" inspection HOT 1
- Argument Must not be null HOT 5
- Plugin seems to be passing the wrong arguments to phpstan when analysing a source file HOT 1
- Warnings get stuck, only restarting fixes it
- "At least one path must be specified to analyse"
- Unrecognised argument "--no-ansi" Type --help to see a list of supported arguments
- Plugin is not compatible with PhpStorm 2020.3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idea-php-generics-plugin.