我在 css 文件中收到许多“未知属性”警告。
这可能是由于我安装了 e(fx)clipse 2.0 和 Eclipse Web Developer Tools。
如果我使用 e(fx)clipse css 编辑器打开 css 文件并添加 /抑制警告/ 警告图标改变颜色(见下图)。
However:
- 问题视图仍然显示警告,默认 css 编辑器也显示警告。
- 我不想添加/抑制警告/ 因为 css 文件是用 WinLess 自动生成的。
如何禁用特定文件或根本的“未知属性”警告?
我的 css 文件不位于“src”下,而是位于“help”文件夹下。该帮助文件夹包含我的 Eclipse 插件的 html 文件和相应的 css 文件。 =>这些文件不用于 JavaFx/e(fx)clipse。
这是一篇相关文章,虽然对我没有真正的帮助,但可能会为您提供更多信息:https://www.eclipse.org/forums/index.php/t/515810/
Screenshot that shows the warnings and the Problem view (click to enlarge)
我提交了一份e(fx)剪辑错误 [1]并暂时卸载了 e(fx)clipse。
我一开始安装e(fx)clipse的主要原因是为了摆脱访问限制相关警告jfxrt.jar(另见[2])。现在,我在类路径文件中对 GRE 容器使用附加访问规则,而不是使用 e(fx)eclipse:
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
<accessrules>
<accessrule kind="accessible" pattern="javafx/**"/>
<accessrule kind="accessible" pattern="com/sun/javafx/**"/>
</accessrules>
</classpathentry>
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=475347
[2] 在 JRE 8 中使用 JavaFX
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)