Checking on tracker # 23710 - XML Editor problem

I hate to post this to a forum but I don't know of a better way to communicate with IDEA developers.

Tracker Request #23710 "XML Editor: shows element error when everything is okay" was submitted on December 15 but the status has not been moved to open.

This file trips up the XML editor and Ant tag completion won't work:

]> &properties; &targets; ]]>
<pathelement path="${build.classes.dir};$/config"/> <fileset dir="$">
<include name="*/lib/.jar"/>
<include name="*/lib/.zip"/>
</fileset>
</path>

</project>

Build 1071 doesn't seem to handle this. We code many of our Ant scripts this way as a reuse mechanim. It's important for us that IDEA handle this correctly.

Thanks,
Tim

6 comments
Comment actions Permalink

our ant scrips are coded like the example

the same problem for me

0
Comment actions Permalink

The problem is that you provide incorrect XML file in terms of XML spec.
Your document does not belong to your DTD.

IK

Michael wrote:

our ant scrips are coded like the example

the same problem for me



--
Igor Kuralenok
Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

You're right in terms of strict XML but this is a common trick in Ant scripts. Can IDEA be updated to handle this when working with Ant scripts?

(There is no DTD for an Ant script so I'm assuming that IDEA somehow knows that it's working on an Ant script when an Ant xml file is opened).

Thanks,
Tim

0
Comment actions Permalink

I clearly understand this problem but it seems to be a hack... We fixed
this issue and your example works fine. But:

-- You need to change file:./blahblahblah.xml -> ./blahblahblah.xml
-- No completion/syntax highlighting in ./blahblahblah.xml

in root file refactoring/completion/goto declaration/etc. seems to work
fine.

IK
Tim wrote:

You're right in terms of strict XML but this is a common trick in Ant scripts. Can IDEA be updated to handle this when working with Ant scripts?

(There is no DTD for an Ant script so I'm assuming that IDEA somehow knows that it's working on an Ant script when an Ant xml file is opened).

Thanks,
Tim



--
Igor Kuralenok
Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

I've been having the same problem and just tried what you suggested, but I'm still getting an element error. Is the following build file snippet correct?

] > ]]>

0
Comment actions Permalink

I see the fix was made in build 1083. I know it's not clean but then again Ant, isn't clean.

I appreciate the changes. It will make quite a few people happy. :)

Thanks.

0

Please sign in to leave a comment.