IDEA 7 cannot parse dependent XSD?
In my Spring module, I use EHCache for caching. IDEA can display tags in "ehcache" namespace (<ehcache:config>, <ehcache:annotations>, etc.) in intellisense list, but it cannot display their attributes.
I wrote the Spring configuration file as below, and added spring-modules-cache.jar, ehcache.jar to project library
Please sign in to leave a comment.
If I enter a EHCache tag, I will have an error from IDEA. Please see the attached screenshot.
If I manually add a resource which map "http://www.springmodules.org/schema/cache" with springmodules-cache.xsd in spring-modules-cache.jar, IDEA can display EHCache tags' attributes. But the above error indicator still appears.
Message was edited by:
t800t8
Attachment(s):
parsing.png
Another problem.
If I add a before , the error at will disappear and it will appear at ]]>
Attachment(s):
flushing.png
Looks like maybe this problem?
http://www.jetbrains.net/jira/browse/IDEA-15675
(see attached screenie)
It's marked as 'Cannot Reproduce' so any further input you can add to
this would be great...
N.
t800t8 wrote:
Attachment(s):
Schema error.png
Nathan,
I'm not sure it is the same problem as yours.
But if I remove all EHCache's tags from my Spring configuration file, the problem will disappear
]]>Try invoke Validate on your xml file, most of errors seems to be due
incorrect schemas
t800t8 wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Hello Maxim,
I'm not sure - take a look at IDEA-15897
-tt
No, it looks like another issue: a lack of <xsd:import> support
Hello Dmitry,
Do you mean that SchemaProvider extension point does not get consulted for
<xsd:import> elements?
(I think it does get called - or at least I remember from testing some time
ago)
Taras
Hi Taras, it does and it resolves the location. But it seems it does not
help the imported namespace to be treated correctly... Just open ehcache xsd
and you will see.
Hello Dmitry,
Is it a problem with the schema, or a problem of IDEA XML/XSD support?
-tt
The latter. It will be fixed in the bugfix update.