[forge-users] [roaster] Format options not taken into account

Luca Burgazzoli lburgazzoli at gmail.com
Mon May 22 11:04:46 EDT 2017


I will, thx


---
Luca Burgazzoli


On Mon, May 22, 2017 at 3:54 PM, George Gastaldi <ggastald at redhat.com> wrote:
> Sorry, I haven't. Could you file a JIRA under
> https://issues.jboss.org/browse/ROASTER and I'll have a look when possible.
>
> Thanks!
>
> Em 22 de mai de 2017 07:47, "Luca Burgazzoli" <lburgazzoli at gmail.com>
> escreveu:
>>
>> Hi George,
>> have you had any time to look at this issue ?
>>
>> Luca
>>
>> ---
>> Luca Burgazzoli
>>
>>
>> On Mon, Feb 27, 2017 at 8:12 AM, Luca Burgazzoli <lburgazzoli at gmail.com>
>> wrote:
>> > Same result
>> >
>> > ---
>> > Luca Burgazzoli
>> >
>> >
>> > On Mon, Feb 27, 2017 at 1:38 AM, George Gastaldi <ggastald at redhat.com>
>> > wrote:
>> >> Right, see if it changes anything when using the constants without the
>> >> shaded package value:
>> >>
>> >>   Properties prefs = new Properties();
>> >>   prefs.put("org.eclipse.jdt.core.formatter.comment.line_length",
>> >> "25");
>> >>
>> >>
>> >> prefs.put("org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries",
>> >> "false");
>> >>
>> >> George Gastaldi
>> >>
>> >> https://onename.com/gastaldi
>> >>
>> >> On Fri, Feb 24, 2017 at 9:55 AM, Luca Burgazzoli
>> >> <lburgazzoli at gmail.com>
>> >> wrote:
>> >>>
>> >>> Hi George,
>> >>>
>> >>> yes I'm using the latest version:
>> >>>
>> >>>   @Grab(group='org.jboss.forge.roaster', module='roaster-api',
>> >>> version='2.20.0.Final')
>> >>>   @Grab(group='org.jboss.forge.roaster', module='roaster-jdt',
>> >>> version='2.20.0.Final')
>> >>>
>> >>> I'm also using constants from DefaultCodeFormatterConstants, like:
>> >>>
>> >>>     properties.put(DefaultCodeFormatterConstants.FORMATTER_LINE_SPLIT,
>> >>> "120")
>> >>>     properties.put(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR,
>> >>> "space")
>> >>>     properties.put(DefaultCodeFormatterConstants.FORMATTER_TAB_SIZE,
>> >>> "4")
>> >>>
>> >>>
>> >>> ---
>> >>> Luca Burgazzoli
>> >>>
>> >>>
>> >>> On Fri, Feb 24, 2017 at 1:37 PM, George Gastaldi <ggastald at redhat.com>
>> >>> wrote:
>> >>> > Are you using the latest Roaster version (2.20.0.Final)?
>> >>> >
>> >>> > Try using the constants without the shaded package value (eg.
>> >>> >
>> >>> > Properties prefs = new Properties();
>> >>> > prefs.put("org.eclipse.jdt.core.formatter.comment.line_length",
>> >>> > "25");
>> >>> >
>> >>> >
>> >>> >
>> >>> > prefs.put("org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries",
>> >>> > "false");
>> >>> >
>> >>> >
>> >>> >
>> >>> > Em 24 de fev de 2017 06:07, "Luca Burgazzoli"
>> >>> > <lburgazzoli at gmail.com>
>> >>> > escreveu:
>> >>> >>
>> >>> >> Hello,
>> >>> >>
>> >>> >> I'm doing some small experiments with Forge Roaster and I'm unable
>> >>> >> to
>> >>> >> get some formatting options taken into account.
>> >>> >>
>> >>> >> My code and the result is here:
>> >>> >>
>> >>> >> https://gist.github.com/lburgazzoli/115377c3887972696f77db3a71fef85f
>> >>> >>
>> >>> >> As you can notice, I configured some properties so that the code
>> >>> >> should wrap at column 120 and it should use spaces instead of tabs
>> >>> >> but
>> >>> >> my setup is ignored and the resulting code is still formatted with
>> >>> >> some defaults.
>> >>> >>
>> >>> >> Am I doing something wrong ?
>> >>> >>
>> >>> >> Thx,
>> >>> >> Luca
>> >>> >>
>> >>> >> ---
>> >>> >> Luca Burgazzoli
>> >>> >> _______________________________________________
>> >>> >> forge-users mailing list
>> >>> >> forge-users at lists.jboss.org
>> >>> >> https://lists.jboss.org/mailman/listinfo/forge-users
>> >>> >
>> >>> >
>> >>> > _______________________________________________
>> >>> > forge-users mailing list
>> >>> > forge-users at lists.jboss.org
>> >>> > https://lists.jboss.org/mailman/listinfo/forge-users
>> >>> _______________________________________________
>> >>> forge-users mailing list
>> >>> forge-users at lists.jboss.org
>> >>> https://lists.jboss.org/mailman/listinfo/forge-users
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> forge-users mailing list
>> >> forge-users at lists.jboss.org
>> >> https://lists.jboss.org/mailman/listinfo/forge-users
>> _______________________________________________
>> forge-users mailing list
>> forge-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/forge-users
>
>
> _______________________________________________
> forge-users mailing list
> forge-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-users


More information about the forge-users mailing list