Reference to files with unknown scheme

In an XML file, I have: <xi:include href="oxf:/apps/somefile.xml"/>. Here oxf:/ is a "private" scheme, which IntelliJ can't know about. But IntelliJ complains that it can't resolve this URI. Shouldn't IntelliJ ignore URIs with unknown scheme?

Alex

4 comments

But how should it know you haven't simply misspelled another scheme?

0

I guess IntelliJ can't, unless there is a way to configure IntelliJ with a list of known schemes. In the absence of such a configuration, I think it is better to take an optimistic approach: it is better not to detect an error in some cases than always signal an error in other cases while the URI is valid.

Another approach is to allow the user to just disable URI validation.

Alex

0

I would suggest to add JIRA request for ignoring unknown schemas

Alessandro Vernet wrote:

I guess IntelliJ can't, unless there is a way to configure IntelliJ with a list of known schemes. In the absence of such a configuration, I think it is better to take an optimistic approach: it is better not to detect an error in some cases than always signal an error in other cases while the URI is valid.

Another approach is to allow the user to just disable URI validation.

Alex



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

0

Maxim,

Thank you for the suggestion. I just created a JIRA request:

http://www.jetbrains.net/jira/browse/IDEA-16471

Alex

0

Please sign in to leave a comment.