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
Please sign in to leave a comment.
our ant scrips are coded like the example
the same problem for me
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:
--
Igor Kuralenok
Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"
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
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:
--
Igor Kuralenok
Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"
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?
] > ]]>
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.