[VW 7.9.1] Issue with the user messages, expandMacrosWith and Fromatter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[VW 7.9.1] Issue with the user messages, expandMacrosWith and Fromatter

Mark Pirogovsky-3
Hello All.

In Our application we use a lot of the user messages in the form of

A. (#warn <<#dialogs>> 'Warn<n>And then some') expandMacros

B. (#warnUSer <<#dialogs>> 'Warn<n>the user: <1s> <n>And then some')
expandMacrosWith:TheUser name.

If I run the method formatter the "A" will stay unchanged , but the "B"
will loose parens  and then the "Message catalog writer" complains about
invalid user message.

How I can tell the formatter not to modify case "B"?

Best regards,

Mark




____________________________________________________________
30-second trick for a flat belly
This daily 30-second trick BOOSTS your body&#39;s #1 fat-burning hormone
http://thirdpartyoffers.netzero.net/TGL3241/51dc5e8726da35e86287bst04duc
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [VW 7.9.1] Issue with the user messages, expandMacrosWith and Fromatter

Vincent Lesbros-2
try 

(#warnUSer << #dialogs >> 'Warn<n>the user: <1s> <n>And then some')
yourself expandMacrosWith: TheUser name

as yourself is unary message the parenthèses will be needed.


2013/7/9 Mark Pirogovsky <[hidden email]>
Hello All.

In Our application we use a lot of the user messages in the form of

A. (#warn <<#dialogs>> 'Warn<n>And then some') expandMacros

B. (#warnUSer <<#dialogs>> 'Warn<n>the user: <1s> <n>And then some') expandMacrosWith:TheUser name.

If I run the method formatter the "A" will stay unchanged , but the "B" will loose parens  and then the "Message catalog writer" complains about invalid user message.

How I can tell the formatter not to modify case "B"?

Best regards,

Mark




____________________________________________________________
30-second trick for a flat belly
This daily 30-second trick BOOSTS your body&#39;s #1 fat-burning hormone
http://thirdpartyoffers.netzero.net/TGL3241/51dc5e8726da35e86287bst04duc
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [VW 7.9.1] Issue with the user messages, expandMacrosWith and Fromatter

Mark Pirogovsky-3
Thanks Vincent,

  that is an interesting Idea.

However this is a work around and it introduces unneeded message sends,
which has a performance penalty ( in microseconds , but...).

  I want to have a permanent solution in the development tools possibly.

--Mark

Vincent Lesbros wrote:

> try
>
> (#warnUSer << #dialogs >> 'Warn<n>the user: <1s> <n>And then some')
> yourself expandMacrosWith: TheUser name
>
> as yourself is unary message the parenthèses will be needed.
>
>
> 2013/7/9 Mark Pirogovsky <[hidden email]
> <mailto:[hidden email]>>
>
>     Hello All.
>
>     In Our application we use a lot of the user messages in the form of
>
>     A. (#warn <<#dialogs>> 'Warn<n>And then some') expandMacros
>
>     B. (#warnUSer <<#dialogs>> 'Warn<n>the user: <1s> <n>And then
>     some') expandMacrosWith:TheUser name.
>
>     If I run the method formatter the "A" will stay unchanged , but
>     the "B" will loose parens  and then the "Message catalog writer"
>     complains about invalid user message.
>
>     How I can tell the formatter not to modify case "B"?
>
>     Best regards,
>
>     Mark
>
>
>
>
>     ____________________________________________________________
>     30-second trick for a flat belly
>     This daily 30-second trick BOOSTS your body&#39;s #1 fat-burning
>     hormone
>     http://thirdpartyoffers.netzero.net/TGL3241/51dc5e8726da35e86287bst04duc
>     _______________________________________________
>     vwnc mailing list
>     [hidden email] <mailto:[hidden email]>
>     http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
>
>
>
> ____________________________________________________________

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [VW 7.9.1] Issue with the user messages, expandMacrosWith and Fromatter

Vincent Lesbros-2
a performance penalty in microseconds, just before opening a Dialog box that the user will take secondes to read...
should not be a painfull penalty.
but, yes, it is a "work around".

2013/7/10 Mark Pirogovsky <[hidden email]>
Thanks Vincent,

 that is an interesting Idea.

However this is a work around and it introduces unneeded message sends, which has a performance penalty ( in microseconds , but...).

 I want to have a permanent solution in the development tools possibly.

--Mark

Vincent Lesbros wrote:
try

(#warnUSer << #dialogs >> 'Warn<n>the user: <1s> <n>And then some')
yourself expandMacrosWith: TheUser name

as yourself is unary message the parenthèses will be needed.


2013/7/9 Mark Pirogovsky <[hidden email] <mailto:[hidden email]>>


    Hello All.

    In Our application we use a lot of the user messages in the form of

    A. (#warn <<#dialogs>> 'Warn<n>And then some') expandMacros

    B. (#warnUSer <<#dialogs>> 'Warn<n>the user: <1s> <n>And then
    some') expandMacrosWith:TheUser name.

    If I run the method formatter the "A" will stay unchanged , but
    the "B" will loose parens  and then the "Message catalog writer"
    complains about invalid user message.

    How I can tell the formatter not to modify case "B"?

    Best regards,

    Mark




    ____________________________________________________________
    30-second trick for a flat belly
    This daily 30-second trick BOOSTS your body&#39;s #1 fat-burning
    hormone
    http://thirdpartyoffers.netzero.net/TGL3241/51dc5e8726da35e86287bst04duc
    _______________________________________________
    vwnc mailing list
    [hidden email] <mailto:[hidden email]>
    http://lists.cs.uiuc.edu/mailman/listinfo/vwnc




____________________________________________________________



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [VW 7.9.1] Issue with the user messages, expandMacrosWith and Fromatter

Steven Kelly
In reply to this post by Mark Pirogovsky-3
[vwnc] [VW 7.9.1] Issue with the user messages,expandMacrosWith and Fromatter
It sounds to me like the problem might be in the "Message catalog writer". I've never used it and don't know what it does or how, but maybe it has too naive an approach to parsing methods to find user messages. It shouldn't demand parentheses, but should recognize the Smalltalk precedence order: parentheses, unary, binary, keyword.
 
All the best,
Steve


From: [hidden email] on behalf of Mark Pirogovsky
Sent: Tue 09/07/2013 22:03
To: [hidden email]
Subject: [vwnc] [VW 7.9.1] Issue with the user messages,expandMacrosWith and Fromatter

Hello All.

In Our application we use a lot of the user messages in the form of

A. (#warn <<#dialogs>> 'Warn<n>And then some') expandMacros

B. (#warnUSer <<#dialogs>> 'Warn<n>the user: <1s> <n>And then some')
expandMacrosWith:TheUser name.

If I run the method formatter the "A" will stay unchanged , but the "B"
will loose parens  and then the "Message catalog writer" complains about
invalid user message.

How I can tell the formatter not to modify case "B"?

Best regards,

Mark




____________________________________________________________
30-second trick for a flat belly
This daily 30-second trick BOOSTS your body&#39;s #1 fat-burning hormone
http://thirdpartyoffers.netzero.net/TGL3241/51dc5e8726da35e86287bst04duc
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc