Scala | 5 Mar 2009 14:15
Picon
Picon
Favicon

[scala-bts] #1767: XML parse error reporting cascades too far

#1767: XML parse error reporting cascades too far
----------------------+-----------------------------------------------------
Reporter:  extempore  |       Owner:  scala-xml_team
    Type:  defect     |      Status:  new           
Priority:  normal     |   Component:  XML support   
 Version:             |    Keywords:                
----------------------+-----------------------------------------------------
 I am about to close a bunch of tickets related to the asserts in
 NewScanners which I changed in r17241 to regular parse errors: #822,
 #1674, #1682, and #1765.  I'm opening this ticket because some of those
 cases, now that they aren't crashers, receive a number of unhelpful error
 messages after the first.  I propose XML team investigate trimming the
 error reporting down to the last reasonably sensible message.

--

-- 
Ticket URL: <https://lampsvn.epfl.ch/trac/scala/ticket/1767>
Scala <http://lampsvn.epfl.ch/trac/scala/>
Scala Programming Language
Scala | 5 Mar 2009 14:17
Picon
Picon
Favicon

Re: [scala-bts] #1682: Compiler exception - matching an XML literal with attributes

#1682: Compiler exception - matching an XML literal with attributes
-----------------------------+----------------------------------------------
Reporter:  ricky_clarkson    |        Owner:  scala-xml_team
    Type:  defect            |       Status:  closed        
Priority:  normal            |    Component:  Compiler      
 Version:  Unreleased-2.8.x  |   Resolution:  fixed         
Keywords:                    |  
-----------------------------+----------------------------------------------
Changes (by extempore):

  * status:  new => closed
  * version:  => Unreleased-2.8.x
  * resolution:  => fixed

Comment:

 I fixed the crasher in r17241 and opened ticket #1767 about the error
 cascading.

--

-- 
Ticket URL: <https://lampsvn.epfl.ch/trac/scala/ticket/1682#comment:2>
Scala <http://lampsvn.epfl.ch/trac/scala/>
Scala Programming Language
Scala | 5 Mar 2009 14:17
Picon
Picon
Favicon

Re: [scala-bts] #1674: NewScanners assertion failure on wonky XML

#1674: NewScanners assertion failure on wonky XML
-----------------------------+----------------------------------------------
Reporter:  extempore         |        Owner:  scala-xml_team
    Type:  defect            |       Status:  closed        
Priority:  normal            |    Component:  XML support   
 Version:  Unreleased-2.8.x  |   Resolution:  fixed         
Keywords:                    |  
-----------------------------+----------------------------------------------
Changes (by extempore):

  * status:  new => closed
  * version:  => Unreleased-2.8.x
  * resolution:  => fixed

Comment:

 I fixed the crasher in r17241 and opened ticket #1767 about the error
 cascading.

--

-- 
Ticket URL: <https://lampsvn.epfl.ch/trac/scala/ticket/1674#comment:3>
Scala <http://lampsvn.epfl.ch/trac/scala/>
Scala Programming Language
Scala | 5 Mar 2009 14:19
Picon
Picon
Favicon

Re: [scala-bts] #822: Compiler crash (2.7.1-RC2)

#822: Compiler crash (2.7.1-RC2)
-----------------------------+----------------------------------------------
Reporter:  dibblego          |        Owner:  scala-xml_team
    Type:  defect            |       Status:  closed        
Priority:  normal            |    Component:  XML support   
 Version:  Unreleased-2.8.x  |   Resolution:  fixed         
Keywords:                    |  
-----------------------------+----------------------------------------------
Changes (by extempore):

 * cc: paulp <at> … (added)
  * status:  new => closed
  * version:  => Unreleased-2.8.x
  * resolution:  => fixed

Comment:

 Fixed in r17241.
 {{{
 scala> <foo bar="&"/>
 <console>:1: error: in XML literal: error parsing attribute value
        <foo bar="&"/>
                   ^
 }}}

--

-- 
Ticket URL: <http://lampsvn.epfl.ch/trac/scala/ticket/822#comment:7>
Scala <http://lampsvn.epfl.ch/trac/scala/>
Scala Programming Language
(Continue reading)

Scala | 5 Mar 2009 14:30
Picon
Picon
Favicon

Re: [scala-bts] #1767: XML parse error reporting cascades too far

#1767: XML parse error reporting cascades too far
----------------------+-----------------------------------------------------
Reporter:  extempore  |       Owner:  scala-xml_team
    Type:  defect     |      Status:  new           
Priority:  normal     |   Component:  XML support   
 Version:             |    Keywords:                
----------------------+-----------------------------------------------------
Changes (by extempore):

 * cc: paulp <at> … (added)

--

-- 
Ticket URL: <http://lampsvn.epfl.ch/trac/scala/ticket/1767#comment:1>
Scala <http://lampsvn.epfl.ch/trac/scala/>
Scala Programming Language
Scala | 7 Mar 2009 01:07
Picon
Picon
Favicon

[scala-bts] #1773: XML strange equals behaviour

#1773: XML strange equals behaviour
-------------------------+--------------------------------------------------
Reporter:  michael.kebe  |       Owner:  scala-xml_team
    Type:  defect        |      Status:  new           
Priority:  normal        |   Component:  XML support   
Keywords:  xml equals    |  
-------------------------+--------------------------------------------------
 There is something wrong with the equals or with the XML processing stuff.
 Look at this:
 {{{
 scala> <a></a>
 res0: scala.xml.Elem = <a></a>

 scala> <a>{xml.NodeSeq.Empty}</a>
 res1: scala.xml.Elem = <a></a>

 scala> <a>{""}</a>
 res2: scala.xml.Elem = <a></a>

 scala> <a>{if (true) "" else "noo"}</a>
 res3: scala.xml.Elem = <a></a>

 scala> res0 == res1
 res4: Boolean = true

 scala> res0 == res2
 res5: Boolean = true

 scala> res0 == res3
 res6: Boolean = false
(Continue reading)

Scala | 9 Mar 2009 16:32
Picon
Picon
Favicon

Re: [scala-bts] #1746: scala injections in xml

#1746: scala injections in xml
-------------------+--------------------------------------------------------
Reporter:  Alefas  |        Owner:  scala-xml_team        
    Type:  defect  |       Status:  new                   
Priority:  normal  |    Component:  Language specification
 Version:          |   Resolution:                        
Keywords:          |  
-------------------+--------------------------------------------------------
Changes (by imaier):

  * owner:  scala_reviewer => scala-xml_team
  * status:  reopened => new

Comment:

 I fixed the original issue. Reassigning to the XML team now. Please have a
 look at the spec and whether it's up to date with the parser.

--

-- 
Ticket URL: <https://lampsvn.epfl.ch/trac/scala/ticket/1746#comment:4>
Scala <http://lampsvn.epfl.ch/trac/scala/>
Scala Programming Language
Scala | 10 Mar 2009 14:11
Picon
Picon
Favicon

Re: [scala-bts] #1746: scala injections in xml

#1746: scala injections in xml
-------------------+--------------------------------------------------------
Reporter:  Alefas  |        Owner:  scala-xml_team        
    Type:  defect  |       Status:  new                   
Priority:  normal  |    Component:  Language specification
 Version:          |   Resolution:                        
Keywords:          |  
-------------------+--------------------------------------------------------

Comment(by Alefas):

 Ok. this fix is clear for me, but not right at all. Braces was neccessary,
 so it should be ScalaExpr = '{' Block '}'.
 And I'm not trainspotter:)

--

-- 
Ticket URL: <http://lampsvn.epfl.ch/trac/scala/ticket/1746#comment:5>
Scala <http://lampsvn.epfl.ch/trac/scala/>
Scala Programming Language
Scala | 11 Mar 2009 19:41
Picon
Picon
Favicon

[scala-bts] #1787: Computed attribute value in the xml literal requires explicit call to the toString() method.

#1787: Computed attribute value in the xml literal requires explicit call to the
toString() method.
----------------------+-----------------------------------------------------
Reporter:  lifecoder  |       Owner:  scala-xml_team
    Type:  defect     |      Status:  new           
Priority:  normal     |   Component:  XML support   
Keywords:             |  
----------------------+-----------------------------------------------------
 It looks inconsistent when values inside the xml elements are implicitly
 converted to string but values in the xml attributes are not.

 Reproducing:
 {{{
 scala> <x>{2+2}</x>

 res2: scala.xml.Elem = <x>4</x>

 scala> <x y={2+2} />

 <console>:5: error: overloaded method constructor UnprefixedAttribute
 with alternatives
 (String,Option[Seq[scala.xml.Node]],scala.xml.MetaData)scala.xml.UnprefixedAttribute
 <and>
 (String,String,scala.xml.MetaData)scala.xml.UnprefixedAttribute
 <and>
 (String,Seq[scala.xml.Node],scala.xml.MetaData)scala.xml.UnprefixedAttribute
 cannot be applied to (java.lang.String,Int,scala.xml.MetaData)
        <x y={2+2} />
         ^

(Continue reading)

Scala | 31 Mar 2009 23:25
Picon
Picon
Favicon

Re: [scala-bts] #547: Something is strange about toString in scala.xml.Atom

#547: Something is strange about toString in scala.xml.Atom
------------------------+---------------------------------------------------
Reporter:  washburn     |        Owner:  scala-xml_team
    Type:  defect       |       Status:  closed        
Priority:  normal       |    Component:  XML support   
 Version:  Scala 2.7.1  |   Resolution:  fixed         
Keywords:               |  
------------------------+---------------------------------------------------
Changes (by extempore):

  * status:  new => closed
  * version:  => Scala 2.7.1
  * resolution:  => fixed

Comment:

 The given example works since 2.7.1.  This is strange to me, because I
 could swear I've tried it since then and it didn't work (and 2.7.2RC4 is
 mentioned above, which would imply it wasn't working in 2.7.1) but that is
 the situation.  I'm closing this as fixed unless someone would like to
 offer an example which doesn't work.
 {{{
 [paulp <at> leaf trunk (master)]$ scala271
 Welcome to Scala version 2.7.1.final (Java HotSpot(TM) 64-Bit Server VM,
 Java 1.5.0_16).
 Type in expressions to have them evaluated.
 Type :help for more information.

 scala> import scala.xml._
 import scala.xml._
(Continue reading)


Gmane