Cannot build IDEA plugin

Weijun Wang weijun.wang at oracle.com
Tue Nov 28 23:55:25 UTC 2017



> On Nov 28, 2017, at 11:55 PM, Maurizio Cimadamore <maurizio.cimadamore at oracle.com> wrote:
> 
> I've seen issues in the past where a broken misc.xml in the idea folder would cause something like that, but never been able to reproduce on my Linux.

Yes, it used to contain an empty <path/> tag and after recreating the project there is a value.

--Max

> 
> Maurizio
> 
> 
> On 28/11/17 15:47, Weijun Wang wrote:
>> With Maurizio's latest patch I am able to run a jtreg test now!
>> 
>> At first, running a test still shows jtreg path not specified. I recreated a project and everything is fine.
>> 
>> Many many thanks. I'll be happy playing with this a lot tomorrow.
>> 
>> --Max
>> 
>>> On Nov 28, 2017, at 9:41 PM, Anna Kozlova <anna.kozlova at jetbrains.com> wrote:
>>> 
>>> It looks like that there is some other issue with the Run Configuration
>>> dialog. Could you please attach idea.log (Help | Show log) from idea
>>> instance with not working plugin?
>>> 
>>> The default implementation should be ok for the plugin.
>>> 
>>> Thanks,
>>> Anna
>>> 
>>> On Tue, Nov 28, 2017 at 1:26 PM, Maurizio Cimadamore <
>>> maurizio.cimadamore at oracle.com> wrote:
>>> 
>>>> Jtreg plugin is broken - any idea on how to fix?
>>>> 
>>>> Cheers
>>>> Maurizio
>>>> 
>>>> 
>>>> -------- Forwarded Message --------
>>>> Subject: Cannot build IDEA plugin
>>>> Date: Tue, 28 Nov 2017 10:36:52 +0800
>>>> From: Weijun Wang <weijun.wang at oracle.com> <weijun.wang at oracle.com>
>>>> To: jtreg-dev at openjdk.java.net
>>>> 
>>>> Error:(64, 8) java: com.oracle.plugin.jtreg.configuration.JTRegConfiguration is not abstract and does not override abstract method isConfiguredByElement(com.intellij.psi.PsiElement) in com.intellij.execution.JavaTestConfigurationBase
>>>> 
>>>> Ctrl-I adds
>>>> 
>>>> @Override
>>>> public void bePatternConfiguration(List<PsiClass> list, PsiMethod psiMethod) {
>>>> 
>>>> }
>>>> 
>>>> @Override
>>>> public void beMethodConfiguration(Location<PsiMethod> location) {
>>>> 
>>>> }
>>>> 
>>>> @Override
>>>> public void beClassConfiguration(PsiClass psiClass) {
>>>> 
>>>> }
>>>> 
>>>> @Override
>>>> public boolean isConfiguredByElement(PsiElement psiElement) {
>>>>    return false;
>>>> }
>>>> 
>>>> but I don't know how to implement. If I just build, the plugin can be installed but the settings pane shows a loading wheel and never loads. If I want to run a jtreg test, I see "Error running 'BadName.java': No jtreg path configured".
>>>> 
>>>> Letting isConfiguredByElement() returning true does not help.
>>>> 
>>>> I'm using
>>>> 
>>>> IntelliJ IDEA 2017.2.6
>>>> Build #IC-172.4574.11, built on November 14, 2017
>>>> JRE: 1.8.0_152-release-915-b12 x86_64
>>>> JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
>>>> Mac OS X 10.13.1
>>>> 
>>>> Thanks
>>>> Max
>>>> 
>>>> 
>>>> 
> 



More information about the jtreg-dev mailing list