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


   
11 comments
Comment actions Permalink

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
0
Comment actions Permalink

Another problem.

If I add a before , the error at will disappear and it will appear at ]]>



Attachment(s):
flushing.png
0
Comment actions Permalink

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:

If I enter a EHCache tag, I will have an error from IDEA. Please see the attached screenshot.


------------------------------------------------------------------------



Attachment(s):
Schema error.png
0
Comment actions Permalink

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


    

    
        
        
    

    
        
        
    


]]>

0
Comment actions Permalink

Try invoke Validate on your xml file, most of errors seems to be due
incorrect schemas

t800t8 wrote:

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

 
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns:ehcache="http://www.springmodules.org/schema/ehcache"
>        xsi:schemaLocation="http://www.springframework.org/schema/beans
>        http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>        http://www.springmodules.org/schema/ehcache
>        http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd">
> 
>     
> 
>                         refId="rantDaoTarget">
>                                   methodName="getRantsForDay"/>
>                                    methodName="saveRant"/>
>     
> 
>     
>                                   id="rantzCacheModel"/>
>                                    id="rantzFlushModel"/>
>     
> 
> 
> ]]>



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Hello Maxim,

I'm not sure - take a look at IDEA-15897

-tt


0
Comment actions Permalink

No, it looks like another issue: a lack of <xsd:import> support


0
Comment actions Permalink

Hello Dmitry,

No, it looks like another issue: a lack of <xsd:import> support


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


0
Comment actions Permalink

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.


0
Comment actions Permalink

Hello Dmitry,

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.


Is it a problem with the schema, or a problem of IDEA XML/XSD support?

-tt


0
Comment actions Permalink

The latter. It will be fixed in the bugfix update.


0

Please sign in to leave a comment.