david0 / idea-prado-plugin Goto Github PK
View Code? Open in Web Editor NEWPRADO Framework Support for IntelliJ IDEA/PHPStorm
PRADO Framework Support for IntelliJ IDEA/PHPStorm
Hi,
Something wrong with new version of PhpStorm and Prado-plugin.
PhpStorm 2017.1
Build #PS-171.3780.104, built on March 21, 2017
JRE: 1.8.0_112-release-736-b13 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.10.5
Everything worked fine with the previous version (2016.3).
This error will appear immediately after the opening PhpStorm (Prado-plugin installed).
com.jetbrains.php.lang.psi.elements.Variable.getInferredType(I)Lcom/jetbrains/php/lang/psi/resolve/types/PhpType;
java.lang.NoSuchMethodError: com.jetbrains.php.lang.psi.elements.Variable.getInferredType(I)Lcom/jetbrains/php/lang/psi/resolve/types/PhpType;
at idea.plugins.prado.PradoControlUtil.classForFieldReference(PradoControlUtil.java:22)
at idea.plugins.prado.completion.ControlTypeProvider.getType(ControlTypeProvider.java:39)
at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:49)
at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:39)
at com.intellij.openapi.util.Computable$NotNullCachedComputable.compute(Computable.java:56)
...
java.lang.NoSuchMethodError: com.jetbrains.php.lang.psi.elements.Variable.getInferredType(I)Lcom/jetbrains/php/lang/psi/resolve/types/PhpType;
at idea.plugins.prado.PradoControlUtil.classForFieldReference(PradoControlUtil.java:22)
at idea.plugins.prado.completion.ControlTypeProvider.getType(ControlTypeProvider.java:39)
at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:49)
at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:39)
at com.intellij.openapi.util.Computable$NotNullCachedComputable.compute(Computable.java:56)
at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:112)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo.getType(PhpTypeInfo.java:39)
...
PhpTypePriovider2 is deprecated since 2016.3 and will be removed in 2017.3
Migration is pretty straightforward, but I can provide assistance if required.
This happened while I was browsing terraform (HCL) files. The project also has some IAM policy templates in tpl format for terraform that use this plugin.
IntelliJ IDEA 2017.1.5
Build #IU-171.4694.70, built on July 4, 2017
JRE: 1.8.0_112-release-736-b21 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.4
Prado v0.2
Stack trace:
Worker exited due to exception
java.lang.NullPointerException
at idea.plugins.prado.gotohandlers.GotoControlDeclaration.getGotoDeclarationTargets(GotoControlDeclaration.java:19)
at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.findTargetElementsNoVS(GotoDeclarationAction.java:289)
at com.intellij.codeInsight.navigation.CtrlMouseHandler.a(CtrlMouseHandler.java:523)
at com.intellij.codeInsight.navigation.CtrlMouseHandler.a(CtrlMouseHandler.java:502)
at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$2200(CtrlMouseHandler.java:103)
at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.b(CtrlMouseHandler.java:834)
at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.access$2900(CtrlMouseHandler.java:774)
at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1.performInReadAction(CtrlMouseHandler.java:819)
at com.intellij.openapi.progress.util.ReadTask.a(ReadTask.java:66)
at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:48)
at com.intellij.openapi.progress.util.ReadTask.runBackgroundProcess(ReadTask.java:66)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.a(ProgressIndicatorUtils.java:243)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:192)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:176)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:556)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:192)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.a(ProgressIndicatorUtils.java:241)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.access$000(ProgressIndicatorUtils.java:47)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:192)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
pradolite causes IntelliJ/PHPStorm to mark every instance of common classes like TControl and TPage with a "multiple definitions exist warning".
This warning can be supressed by marking this file as plain text.
This should be done automatically for prado projects using
EnforcedPlainTextFileTypeManager.getInstance().markAsPlainText();
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.