This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: XML without parentheses unimplemented?

2 replies
Silvio Bierman
Joined: 2009-02-16,
User offline. Last seen 1 year 16 weeks ago.

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.

Silvio Bierman
Joined: 2009-02-16,
User offline. Last seen 1 year 16 weeks ago.
XML without parentheses unimplemented?

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

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
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

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland