Parsley mxml 标签在 Intellij Idea 10 中无法正确显示
我正在尝试在 Intellij Idea 10(11) IDE 中使用 Parsley 框架, 但无法识别某些 mxml 属性,并给出错误“此处不允许使用属性‘类型’”。但在 Eclipse 中,mxml 解析正常。有人遇到问题吗?为什么会发生呢? 例如,“type”无法识别:
<mx:Object xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:parsley="http://www.spicefactory.org/parsley">
....
<parsley:Object type="{ClientProfile}" id="clientProfile"/>
....
当我按住 ctrl 键单击 xmlns:parsley 链接时,我得到“z.xsd”,这绝对不是有效的架构链接。
I'm trying to use Parsley framework in Intellij Idea 10(11) IDE,
but in doesn't recognize some mxml attributes, giving error "attribute 'type' is not allowed here". But in the Eclipse the mxml parses Ok. Anyone had the problem? Why would it happen?
E.g. "type" is not recognized:
<mx:Object xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:parsley="http://www.spicefactory.org/parsley">
....
<parsley:Object type="{ClientProfile}" id="clientProfile"/>
....
When I ctrl-click on xmlns:parsley link, I get "z.xsd", which is definitely not a valid schema link.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
z.xsd 是假的,但它是正确的。 Flex 命名空间没有真正的 xsd 架构,因此 IntelliJ IDEA 会即时计算所有内容。
我无法重现该问题。该代码对我来说是绿色的。你是如何为 IDEA 模块配置欧芹库的?您能分享一些屏幕截图吗?
顺便说一句,询问 Intellij IDEA 的最佳地点是我们的论坛,我们更仔细地跟踪该论坛:http:// /devnet.jetbrains.net/community/idea/ideacommunity
z.xsd is a fake and it is correct. There's no real xsd schema for Flex namespaces so IntelliJ IDEA calculates everything on the fly.
I can't reproduce the issue. The code is green for me. How have you configured parsley library for the IDEA module? Can you please share some screenshots?
By the way the best place to ask about Intellij IDEA is our forum which we track more attentively: http://devnet.jetbrains.net/community/idea/ideacommunity