Menu

#903 Problems about the coordinates of nodes under xml with desig

PMD-5.3.0
duplicate
pmd (543)
PMD
1-Blocker
Bug
2015-04-01
2009-11-23
Seclusion
No

Hi,
I report a bug about the coordinates of nodes. If I fill, the Designer(bin sources) with a source of an xml file. I haven't got the coordinates of the nodes, even if I write a rule in xpath it doesn't work. (I have check the configuration of Designer Language -> XML, and the sources codes haven't got mistakes). But I think the bug come from the namespace unrecognized, because I use specifics namespaces.

Discussion

  • Ryan Gustafson

    Ryan Gustafson - 2009-11-23

    This bug makes no sense to me. Please include a stacktrace or error message describing the problem.

    If it's about the XPath with namespace issue being discussed on the devel forum, please indicate so.

     
  • Seclusion

    Seclusion - 2009-11-23

    So it's the same way. For example I wrote ( //node()[starts-with(name(),'pd:name')] )in the XPath Query of the software Designer. When I click on Go , I have a solution ( pd:name at line -1 column -1 ). But it's not the good position in the tree. So I think it's du to the specifics namespaces. But before this, the Designer doesn't crash, it's just a bad display of coordinates.

     
  • Ryan Gustafson

    Ryan Gustafson - 2009-11-23

    You're talking about the line/column information. There's no way to get that from the DOM currently. If you know of a means, I'd be happy to consider it.

     
  • Andreas Dangel

    Andreas Dangel - 2015-04-01
    • status: open --> duplicate
    • assigned_to: Ryan Gustafson --> Andreas Dangel
    • Module: --> PMD
    • Milestone: --> PMD-Next
    • Priority: 5 --> 1-Blocker
    • Type: --> Bug
    • Affects version: -->
     
  • Andreas Dangel

    Andreas Dangel - 2015-04-01

    This is a duplicate of [#1054]. Line numbers are now reported for XML files since PMD 5.1.0

     

    Related

    Issues: #1054


Log in to post a comment.