You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Jeremy Cavanagh <je...@orange.fr> on 2021/09/17 11:20:14 UTC

Problems trying to test reformatted NB code

Hi All,

I've just finished four months/eight hours per day/seven days per week 
of reformatting the Java files in the platform cluster. Quite an 
interesting, definitely exhausting exercise. I'll know whether it was 
worth my time if I can get it to build and pass the tests.

I have tried to build, the Common Annotations module and surprise, 
surprise it fails:

ant -f 
/Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source/platform/api.annotations.common 
-Dcontinue.after.failing.tests=true build
init-tasks:
default.init:
Updating property file: 
/Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source/nbbuild/netbeans/moduleCluster.properties
common-init:
basic-init:
projectized-common.-release.files:
projectized-common.files-init:
files-init:
jdk-8-check:
Build number : 20210917-2b87fd957fba
set-buildnumber:
build-init:
Warning: module.javadoc.packages was already set to 
org.netbeans.api.annotations.common
Scanning for modules in 
/Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source
init:
All tests passed
up-to-date:
Compiling 12 source files to 
/Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source/platform/api.annotations.common/build/classes
Ignoring source, target and bootclasspath as release has been set
error: Bad service configuration file, or exception thrown while 
constructing Processor object: javax.annotation.processing.Processor: 
Provider 
org.netbeans.api.annotations.common.proc.StaticResourceProcessor not found
1 error
/Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source/nbbuild/templates/common.xml:207: 
Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 11 seconds)

I assume the problem is:

javax.annotation.processing.Processor: Provider 
org.netbeans.api.annotations.common.proc.StaticResourceProcessor not found

Did the obvious thing of searching for it within netbeans but no luck 
(again no surprise). However, a search on the internet led me to the issue:

     NETBEANS-5731

Failed to build target: all-api.annotations.common

Unfortunately, there is no explanation or solution to the cause.

I am using Apache NetBeans 12.4 and jdk 11.

Any advice would be appreciated.

Regards

Jeremy

P.S., Congrats to all those involved with version 12.5. I haven't had 
time to check it out yet.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Problems trying to test reformatted NB code

Posted by Jeremy Cavanagh <je...@orange.fr>.
Problem solved.

Removed all inactive plugins

Build Successful 3s.

On 17/09/2021 13:20, Jeremy Cavanagh wrote:
> Hi All,
> 
> I've just finished four months/eight hours per day/seven days per week 
> of reformatting the Java files in the platform cluster. Quite an 
> interesting, definitely exhausting exercise. I'll know whether it was 
> worth my time if I can get it to build and pass the tests.
> 
> I have tried to build, the Common Annotations module and surprise, 
> surprise it fails:
> 
> ant -f 
> /Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source/platform/api.annotations.common 
> -Dcontinue.after.failing.tests=true build
> init-tasks:
> default.init:
> Updating property file: 
> /Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source/nbbuild/netbeans/moduleCluster.properties 
> 
> common-init:
> basic-init:
> projectized-common.-release.files:
> projectized-common.files-init:
> files-init:
> jdk-8-check:
> Build number : 20210917-2b87fd957fba
> set-buildnumber:
> build-init:
> Warning: module.javadoc.packages was already set to 
> org.netbeans.api.annotations.common
> Scanning for modules in 
> /Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source
> init:
> All tests passed
> up-to-date:
> Compiling 12 source files to 
> /Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source/platform/api.annotations.common/build/classes 
> 
> Ignoring source, target and bootclasspath as release has been set
> error: Bad service configuration file, or exception thrown while 
> constructing Processor object: javax.annotation.processing.Processor: 
> Provider 
> org.netbeans.api.annotations.common.proc.StaticResourceProcessor not found
> 1 error
> /Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source/nbbuild/templates/common.xml:207: 
> Compile failed; see the compiler error output for details.
> BUILD FAILED (total time: 11 seconds)
> 
> I assume the problem is:
> 
> javax.annotation.processing.Processor: Provider 
> org.netbeans.api.annotations.common.proc.StaticResourceProcessor not found
> 
> Did the obvious thing of searching for it within netbeans but no luck 
> (again no surprise). However, a search on the internet led me to the issue:
> 
>      NETBEANS-5731
> 
> Failed to build target: all-api.annotations.common
> 
> Unfortunately, there is no explanation or solution to the cause.
> 
> I am using Apache NetBeans 12.4 and jdk 11.
> 
> Any advice would be appreciated.
> 
> Regards
> 
> Jeremy
> 
> P.S., Congrats to all those involved with version 12.5. I haven't had 
> time to check it out yet.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Problems trying to test reformatted NB code

Posted by Eric Bresie <eb...@gmail.com>.
Just curious....that seems like a massive task undertaking.

What style is being applied?  Is it a specific style guide of some sort?

And to the community at large, does NB's have an established style guide
that may be much of the legacy code was already conforming to?

If wanting to start establishing that I wonder if maybe some build tasks
running some kind of static code analysis could help identify style
guide inconsistencies.  THen as file changes occur a "check style guide"
could be triggered with the given PR being updated to comply at
that time..  I worry doing mass code updates and would think smaller ones
would be better for risk of unintended changes.

Eric Bresie
ebresie@gmail.com


On Fri, Sep 17, 2021 at 6:20 AM Jeremy Cavanagh <je...@orange.fr>
wrote:

> Hi All,
>
> I've just finished four months/eight hours per day/seven days per week
> of reformatting the Java files in the platform cluster. Quite an
> interesting, definitely exhausting exercise. I'll know whether it was
> worth my time if I can get it to build and pass the tests.
>
> I have tried to build, the Common Annotations module and surprise,
> surprise it fails:
>
> ant -f
> /Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source/platform/api.annotations.common
>
> -Dcontinue.after.failing.tests=true build
> init-tasks:
> default.init:
> Updating property file:
>
> /Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source/nbbuild/netbeans/moduleCluster.properties
> common-init:
> basic-init:
> projectized-common.-release.files:
> projectized-common.files-init:
> files-init:
> jdk-8-check:
> Build number : 20210917-2b87fd957fba
> set-buildnumber:
> build-init:
> Warning: module.javadoc.packages was already set to
> org.netbeans.api.annotations.common
> Scanning for modules in
> /Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source
> init:
> All tests passed
> up-to-date:
> Compiling 12 source files to
>
> /Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source/platform/api.annotations.common/build/classes
> Ignoring source, target and bootclasspath as release has been set
> error: Bad service configuration file, or exception thrown while
> constructing Processor object: javax.annotation.processing.Processor:
> Provider
> org.netbeans.api.annotations.common.proc.StaticResourceProcessor not found
> 1 error
> /Volumes/MBA-SSD/PROGRAMMING/Local-Git-Repos/netbeans-12.4-source/nbbuild/templates/common.xml:207:
>
> Compile failed; see the compiler error output for details.
> BUILD FAILED (total time: 11 seconds)
>
> I assume the problem is:
>
> javax.annotation.processing.Processor: Provider
> org.netbeans.api.annotations.common.proc.StaticResourceProcessor not found
>
> Did the obvious thing of searching for it within netbeans but no luck
> (again no surprise). However, a search on the internet led me to the issue:
>
>      NETBEANS-5731
>
> Failed to build target: all-api.annotations.common
>
> Unfortunately, there is no explanation or solution to the cause.
>
> I am using Apache NetBeans 12.4 and jdk 11.
>
> Any advice would be appreciated.
>
> Regards
>
> Jeremy
>
> P.S., Congrats to all those involved with version 12.5. I haven't had
> time to check it out yet.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>