Thanks everyone for the suggestions. I’ll give it some thought as to whether we want to continue to use the abandoned code formatter or rely on developer diligence to keep the code base formatted correctly.
If we were to invest time into this problem I wonder if it would be better to make the NB java formatter into a maven plugin that could format and/or check the code with the project’s settings. I’m not sure how difficult that would be. Cheers, Chris > On Aug 22, 2018, at 8:24 AM, Geertjan Wielenga > <geertjan.wiele...@googlemail.com.INVALID> wrote: > > I would suggest to not import setting from 8.2. Instead, start 9.0 fresh and > empty, register the 8.2 update center, and then pick that specific formatter > plugin and try to install it: > > https://blogs.apache.org/netbeans/entry/what-s-happened-to-my > <https://blogs.apache.org/netbeans/entry/what-s-happened-to-my> > > After that, the errors you'll see will be specific to you having installed > the plugin into 9.0. Then report that in the issue tracker > (https://github.com/markiewb/eclipsecodeformatter_for_netbeans/issues > <https://github.com/markiewb/eclipsecodeformatter_for_netbeans/issues>) and > probably it could be resolved as easily as opening the sources of the > formatter and compiling them in 9.0. > > Gj > > > > On Wed, Aug 22, 2018 at 2:18 PM, Chris McGee <cmc...@macadamian.com > <mailto:cmc...@macadamian.com>> wrote: > >> You're going to need to be very detailed, otherwise no one can help you. >> What are the 'certain plugins' you're referring to? > > Sure thing. > > Here are the steps: > 1) Launch NetBeans 8.2 > 2) Tools -> Plugins -> Available Plugins > 3) Search for “Eclipse Java Formatter” > 4) Pick “Eclipse Java Formatter (4.6…” > 5) Click “Install” > 6) Install NetBeans 9.0 > 7) Run NetBeans 9.0 > 8) When prompted, import settings from 8.2 > 9) A dialog opens indicating that some of the plugins must be migrated to > newer versions to work with NB 9.0 > > The formatter plugin is in the bottom panel indicating that it is not > compatible and there is no known compatible version. > > It seems that eclipse formatting is a third-party plugin. Is there a better > and more supported way to share the formatting options with command-line or > maven formatters? My team mates are using their own tools sometimes and bad > formatting gets checked-in to source control. It would be good to have it > caught by the CI build. > > Thanks, > Chris >