- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Re: XML without parentheses unimplemented?
Thu, 2009-02-19, 00:18
Silvio Bierman wrote:
>
> When I put XML in a Scala source the elements are underlined in red and
> the flyover warning message is "XML without parentheses unimplemented".
>
> When I ignore the warning and simply run the program it works just as
> expected. It is a bogus warning.
>
> Am is missing something or can we simply get rid of the warning? I plan to
> use XML extensively and really dislike the idea of either having to put
> all XML inside parentheses or see my code light up like a christmas tree.
>
> Thanks for any suggestions
>
> Silvio
>
>
I need to add that this occurs in the Eclipse Scala plugin nightly build.
Thu, 2009-02-19, 00:47
#2
Re: XML without parentheses unimplemented?
On Wed, Feb 18, 2009 at 11:17 PM, Silvio Bierman
wrote:
> When I put XML in a Scala source the elements are underlined in red and the
> flyover warning message is "XML without parentheses unimplemented".
>
> When I ignore the warning and simply run the program it works just as
> expected. It is a bogus warning.
>
> Am is missing something or can we simply get rid of the warning? I plan to
> use XML extensively and really dislike the idea of either having to put all
> XML inside parentheses or see my code light up like a christmas tree.
The warning is excessively conservative. There are issues with
unparenthesized XML in the Eclipse plugin (all versions) with can be
cured by adding paraentheses, so for now my recommendation would be to
first try without (and ignore the warnings) and fall back to adding
parentheses if you have difficulties.
Cheers,
Miles
When I put XML in a Scala source the elements are underlined in red and the
flyover warning message is "XML without parentheses unimplemented".
When I ignore the warning and simply run the program it works just as
expected. It is a bogus warning.
Am is missing something or can we simply get rid of the warning? I plan to
use XML extensively and really dislike the idea of either having to put all
XML inside parentheses or see my code light up like a christmas tree.
Thanks for any suggestions
Silvio