XML assertion error

I'm getting the following assertion error as soon as Idea starts. I think it's a problem with my xml file which I was in the middle of editing. And now, whenever I restart idea it opens to the same file and throws the same assertion error. How can I stop Idea from opening the faulty file (my short term fix is to use emacs to fix the file but I wonder about how to change the initially opened file)

Error message: Assertion failed
java.lang.Throwable

at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:54)

at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:31)

at com.intellij.codeInsight.a.a.o.]]>(o.java:33)

at com.intellij.codeInsight.a.a.o.a(o.java:17)

at com.intellij.codeInsight.a.a.b.n.visitXmlAttributeValue(n.java:134)

at com.intellij.psi.impl.source.e.e.accept(e.java:23)

at com.intellij.codeInsight.a.a.b.k.visitXmlElement(k.java:111)

at com.intellij.psi.XmlElementVisitor.visitXmlAttributeValue(XmlElementVisitor.java:5)

at com.intellij.psi.impl.source.e.e.accept(e.java:23)

at com.intellij.codeInsight.a.a.b.k.a(k.java:463)

at com.intellij.codeInsight.a.a.k.a(k.java:110)

at com.intellij.codeInsight.a.a.k.a(k.java:0)

at com.intellij.codeInsight.a.a.bj$1.run(bj$1.java:2)

at com.intellij.openapi.application.a.b.runReadAction(b.java:252)

at com.intellij.codeInsight.a.a.bj.a(bj.java:20)

at com.intellij.codeInsight.a.a.bj.access$100(bj.java:16)

at com.intellij.codeInsight.a.a.bj$0.run(bj$0.java:0)

at com.intellij.progress.c.a(c.java:9)

at com.intellij.codeInsight.a.a.bj.run(bj.java:1)

4 comments

BTW - here is the part of the xml code that I was working on when the error was thrown...

]]>
<include name="*/.jar"/>
]]>

0

Please post SRC to the tracker at http://www.intellij.net

With best regards,
Vladimir Kondratyev
_____________________
JetBrains

joe martinez wrote:

I'm getting the following assertion error as soon as Idea starts. I think it's a problem with my xml file which I was in the middle of editing. And now, whenever I restart idea it opens to the same file and throws the same assertion error. How can I stop Idea from opening the faulty file (my short term fix is to use emacs to fix the file but I wonder about how to change the initially opened file)

Error message: Assertion failed
java.lang.Throwable

at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:54)

at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:31)

at com.intellij.codeInsight.a.a.o.<init>(o.java:33)

at com.intellij.codeInsight.a.a.o.a(o.java:17)

at com.intellij.codeInsight.a.a.b.n.visitXmlAttributeValue(n.java:134)

at com.intellij.psi.impl.source.e.e.accept(e.java:23)

at com.intellij.codeInsight.a.a.b.k.visitXmlElement(k.java:111)

at com.intellij.psi.XmlElementVisitor.visitXmlAttributeValue(XmlElementVisitor.java:5)

at com.intellij.psi.impl.source.e.e.accept(e.java:23)

at com.intellij.codeInsight.a.a.b.k.a(k.java:463)

at com.intellij.codeInsight.a.a.k.a(k.java:110)

at com.intellij.codeInsight.a.a.k.a(k.java:0)

at com.intellij.codeInsight.a.a.bj$1.run(bj$1.java:2)

at com.intellij.openapi.application.a.b.runReadAction(b.java:252)

at com.intellij.codeInsight.a.a.bj.a(bj.java:20)

at com.intellij.codeInsight.a.a.bj.access$100(bj.java:16)

at com.intellij.codeInsight.a.a.bj$0.run(bj$0.java:0)

at com.intellij.progress.c.a(c.java:9)

at com.intellij.codeInsight.a.a.bj.run(bj.java:1)


0

Hi Joe!

joe martinez wrote:

BTW - here is the part of the xml code that I was working on when the error was thrown...

<path id="classpath">
<fileset dir="${lib.dir}">
<include name="*/.jar"/>
</fileset>
<pathelement location="${}.jar"/>
</path>

Fixed. But please send such requests to tracker. BTW there is slight
difference between Ant support and XML support so please address your
messages and bugs correctly :).

Thanks,

IK

--
Igor Kuralenok
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

joe martinez <no_mail@jetbrains.com> wrote:

How can I stop Idea from opening the faulty file (my short term fix is to
use emacs to fix the file but I wonder about how to change the initially
opened file)


Can't you just remove the "source-position-entry" with the appropriate
file element in the .iws file?

Dirk Dittert

0

Please sign in to leave a comment.