You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Walter Krix <wk...@gmail.com> on 2019/11/13 13:41:05 UTC

google style guide support

Hi,

My name is Walter Krix. I am working for Nokia as a Senior Java Developer.
I would have one question about code style support.
Are you planning to add support of the google style guide for Netbeans in
the near future?
We would like to become an IDE independent developer group in here at
Nokia. We really like Netbeans and other major IDEs in here. Unfortunately
Netbeans is the only one IDE from the major IDEs that can't support the
google style guide as a common formatting options.
Thank you very much!

Best Regards, Walter

Re: google style guide support

Posted by Brad Walker <bw...@musings.com>.
Walter,

I don't speak for the developers, only for myself. And in  that regards,
I'm a real newcomer to the project. Others have far more experience than I.

Out of the box, Netbeans has formatters for HTML & Java. If you need/want a
style formatter that is specific, I would think you will need to create it
yourself. Presently, I think all the efforts are being spent getting the
Netbeans project "complete" as per the Apache Netbeans Release schedule..

https://cwiki.apache.org/confluence/display/NETBEANS/Apache+NetBeans+Releases

As for me, I'm excited to get started working on the C/C++ module for
Netbeans. So once that's available, maybe it's something I can do in
regards to C and/or C++..

-brad w.


On Wed, Nov 13, 2019 at 6:41 AM Walter Krix <wk...@gmail.com> wrote:

> Hi,
>
> My name is Walter Krix. I am working for Nokia as a Senior Java Developer.
> I would have one question about code style support.
> Are you planning to add support of the google style guide for Netbeans in
> the near future?
> We would like to become an IDE independent developer group in here at
> Nokia. We really like Netbeans and other major IDEs in here. Unfortunately
> Netbeans is the only one IDE from the major IDEs that can't support the
> google style guide as a common formatting options.
> Thank you very much!
>
> Best Regards, Walter
>

Re: google style guide support

Posted by Walter Krix <wk...@gmail.com>.
Hi John,

Just wow, it was really fast.
Thank you very much. I really appreciate your help.

Best regard,
Walter

On Wed, Nov 20, 2019 at 12:55 AM John McDonnell <jo...@apache.org>
wrote:

> Hi Walter,
>
> I threw together a basic plugin relatively quickly on GitHub for the
> Google Code Style for Java:
> https://github.com/mcdonnell-john/nb-google-java-code-formatter-plugin
>
> You can clone it and build it from there, or the first version should be
> published to Maven Central and downloadable from there in a few hours, and
> then install into your NetBeans 11.2 IDE.
>
> Once installed it should add a project level property setting to enable
> formatting on save.  Note, theres 2 current issues with this version:
> 1. the cursor position is lost on save
> 2. breakpoints are lost on save
>
> I'll try and look into them as I go, and I have 2 open issues on GitHub to
> track these as well. If you decide to try this out, and witness any other
> issues, or have other ideas for enhancement please feel free to raise an
> issue on GitHub?
>
> Its definitely to be considered a work in progress...
>
> Regards
>
> John
>
> On 2019/11/13 17:52:44, Thomas Kellerer <sh...@gmx.net> wrote:
> > > I would have one question about code style support.
> > > Are you planning to add support of the google style guide for Netbeans
> in
> > > the near future?
> > > We would like to become an IDE independent developer group in here at
> > > Nokia. We really like Netbeans and other major IDEs in here.
> Unfortunately
> > > Netbeans is the only one IDE from the major IDEs that can't support the
> > > google style guide as a common formatting options.
> >
> > You'll probably get better responses if you describe what kind of
> formatting rules you can not configure with the built-in NetBeans Java
> Formatter.
> >
> > (I wasn't even aware that Google hat their own coding style rules)
> >
> > Thomas
> >
> >
> > ---------------------------------------------------------------------
> > 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: google style guide support

Posted by John Mc <mc...@gmail.com>.
Thanks Fabian,

I was looking at doing a spot bugs plugin, but Walters email here got me
thinking that this would be an idea for a much simpler plugin to get
started with ;)  I'll come back to the spot bugs one later on.

Based on how the google style library works I can provide a string,
effectively the class being saved, and it formats it and returns the
formatted version of it, hence I effectively remove the contents of the
document and then re-add the new version of it - this is where the cursor
and break point info is lost.

I'll take look at your plugin later on when I get home.

Regards

John

On Wed, 20 Nov 2019 at 13:14, Fabian Bahle <in...@funfried.de> wrote:

> Hi John,
>
> I took over the eclipse code formatter plugin for NetBeans just some days
> ago and actually thought about integrating the Google Code Formatter too,
> but as you were faster then me, I might postpone or even cancel it.
> Regarding your open issues, maybe you want to check the code from markiewb
> in https://github.com/funfried/eclipsecodeformatter_for_netbeans <
> https://github.com/funfried/eclipsecodeformatter_for_netbeans>, maybe
> that helps to fix your issues.
>
> Kind regards,
> Fabian
>
>
> > Am 20.11.2019 um 00:55 schrieb John McDonnell <johnmcdonnell@apache.org
> >:
> >
> > Hi Walter,
> >
> > I threw together a basic plugin relatively quickly on GitHub for the
> Google Code Style for Java:
> > https://github.com/mcdonnell-john/nb-google-java-code-formatter-plugin
> >
> > You can clone it and build it from there, or the first version should be
> published to Maven Central and downloadable from there in a few hours, and
> then install into your NetBeans 11.2 IDE.
> >
> > Once installed it should add a project level property setting to enable
> formatting on save.  Note, theres 2 current issues with this version:
> > 1. the cursor position is lost on save
> > 2. breakpoints are lost on save
> >
> > I'll try and look into them as I go, and I have 2 open issues on GitHub
> to track these as well. If you decide to try this out, and witness any
> other issues, or have other ideas for enhancement please feel free to raise
> an issue on GitHub?
> >
> > Its definitely to be considered a work in progress...
> >
> > Regards
> >
> > John
> >
> > On 2019/11/13 17:52:44, Thomas Kellerer <sh...@gmx.net> wrote:
> >>> I would have one question about code style support.
> >>> Are you planning to add support of the google style guide for Netbeans
> in
> >>> the near future?
> >>> We would like to become an IDE independent developer group in here at
> >>> Nokia. We really like Netbeans and other major IDEs in here.
> Unfortunately
> >>> Netbeans is the only one IDE from the major IDEs that can't support the
> >>> google style guide as a common formatting options.
> >>
> >> You'll probably get better responses if you describe what kind of
> formatting rules you can not configure with the built-in NetBeans Java
> Formatter.
> >>
> >> (I wasn't even aware that Google hat their own coding style rules)
> >>
> >> Thomas
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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: google style guide support

Posted by Fabian Bahle <in...@funfried.de>.
Hi John,

I took over the eclipse code formatter plugin for NetBeans just some days ago and actually thought about integrating the Google Code Formatter too, but as you were faster then me, I might postpone or even cancel it. Regarding your open issues, maybe you want to check the code from markiewb in https://github.com/funfried/eclipsecodeformatter_for_netbeans <https://github.com/funfried/eclipsecodeformatter_for_netbeans>, maybe that helps to fix your issues.

Kind regards,
Fabian


> Am 20.11.2019 um 00:55 schrieb John McDonnell <jo...@apache.org>:
> 
> Hi Walter,
> 
> I threw together a basic plugin relatively quickly on GitHub for the Google Code Style for Java:
> https://github.com/mcdonnell-john/nb-google-java-code-formatter-plugin
> 
> You can clone it and build it from there, or the first version should be published to Maven Central and downloadable from there in a few hours, and then install into your NetBeans 11.2 IDE.
> 
> Once installed it should add a project level property setting to enable formatting on save.  Note, theres 2 current issues with this version:
> 1. the cursor position is lost on save
> 2. breakpoints are lost on save
> 
> I'll try and look into them as I go, and I have 2 open issues on GitHub to track these as well. If you decide to try this out, and witness any other issues, or have other ideas for enhancement please feel free to raise an issue on GitHub?  
> 
> Its definitely to be considered a work in progress...
> 
> Regards
> 
> John
> 
> On 2019/11/13 17:52:44, Thomas Kellerer <sh...@gmx.net> wrote: 
>>> I would have one question about code style support.
>>> Are you planning to add support of the google style guide for Netbeans in
>>> the near future?
>>> We would like to become an IDE independent developer group in here at
>>> Nokia. We really like Netbeans and other major IDEs in here. Unfortunately
>>> Netbeans is the only one IDE from the major IDEs that can't support the
>>> google style guide as a common formatting options.
>> 
>> You'll probably get better responses if you describe what kind of formatting rules you can not configure with the built-in NetBeans Java Formatter.
>> 
>> (I wasn't even aware that Google hat their own coding style rules)
>> 
>> Thomas
>> 
>> 
>> ---------------------------------------------------------------------
>> 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: google style guide support

Posted by Carl Mosca <ca...@gmail.com>.
Interesting. Will give it a look.

On Tue, Nov 19, 2019 at 6:55 PM John McDonnell <jo...@apache.org>
wrote:

> Hi Walter,
>
> I threw together a basic plugin relatively quickly on GitHub for the
> Google Code Style for Java:
> https://github.com/mcdonnell-john/nb-google-java-code-formatter-plugin
>
> You can clone it and build it from there, or the first version should be
> published to Maven Central and downloadable from there in a few hours, and
> then install into your NetBeans 11.2 IDE.
>
> Once installed it should add a project level property setting to enable
> formatting on save.  Note, theres 2 current issues with this version:
> 1. the cursor position is lost on save
> 2. breakpoints are lost on save
>
> I'll try and look into them as I go, and I have 2 open issues on GitHub to
> track these as well. If you decide to try this out, and witness any other
> issues, or have other ideas for enhancement please feel free to raise an
> issue on GitHub?
>
> Its definitely to be considered a work in progress...
>
> Regards
>
> John
>
> On 2019/11/13 17:52:44, Thomas Kellerer <sh...@gmx.net> wrote:
> > > I would have one question about code style support.
> > > Are you planning to add support of the google style guide for Netbeans
> in
> > > the near future?
> > > We would like to become an IDE independent developer group in here at
> > > Nokia. We really like Netbeans and other major IDEs in here.
> Unfortunately
> > > Netbeans is the only one IDE from the major IDEs that can't support the
> > > google style guide as a common formatting options.
> >
> > You'll probably get better responses if you describe what kind of
> formatting rules you can not configure with the built-in NetBeans Java
> Formatter.
> >
> > (I wasn't even aware that Google hat their own coding style rules)
> >
> > Thomas
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
>
> --
Regards,
Carl

Re: google style guide support

Posted by John McDonnell <jo...@apache.org>.
Hi Walter,

I threw together a basic plugin relatively quickly on GitHub for the Google Code Style for Java:
https://github.com/mcdonnell-john/nb-google-java-code-formatter-plugin

You can clone it and build it from there, or the first version should be published to Maven Central and downloadable from there in a few hours, and then install into your NetBeans 11.2 IDE.

Once installed it should add a project level property setting to enable formatting on save.  Note, theres 2 current issues with this version:
1. the cursor position is lost on save
2. breakpoints are lost on save

I'll try and look into them as I go, and I have 2 open issues on GitHub to track these as well. If you decide to try this out, and witness any other issues, or have other ideas for enhancement please feel free to raise an issue on GitHub?  

Its definitely to be considered a work in progress...

Regards

John

On 2019/11/13 17:52:44, Thomas Kellerer <sh...@gmx.net> wrote: 
> > I would have one question about code style support.
> > Are you planning to add support of the google style guide for Netbeans in
> > the near future?
> > We would like to become an IDE independent developer group in here at
> > Nokia. We really like Netbeans and other major IDEs in here. Unfortunately
> > Netbeans is the only one IDE from the major IDEs that can't support the
> > google style guide as a common formatting options.
> 
> You'll probably get better responses if you describe what kind of formatting rules you can not configure with the built-in NetBeans Java Formatter.
> 
> (I wasn't even aware that Google hat their own coding style rules)
> 
> Thomas
> 
> 
> ---------------------------------------------------------------------
> 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: google style guide support

Posted by Thomas Kellerer <sh...@gmx.net>.
> I would have one question about code style support.
> Are you planning to add support of the google style guide for Netbeans in
> the near future?
> We would like to become an IDE independent developer group in here at
> Nokia. We really like Netbeans and other major IDEs in here. Unfortunately
> Netbeans is the only one IDE from the major IDEs that can't support the
> google style guide as a common formatting options.

You'll probably get better responses if you describe what kind of formatting rules you can not configure with the built-in NetBeans Java Formatter.

(I wasn't even aware that Google hat their own coding style rules)

Thomas


---------------------------------------------------------------------
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