How to disable css warning “Unknown property” in Eclipse Mars?

試著忘記壹切 提交于 2019-11-30 07:21:09
Stefan

I filed an e(fx)clipse bug [1] and uninstalled e(fx)clipse for the time being.

The main reason why I had installed e(fx)clipse at the beginning was to get rid of the access restriction warnings related to jfxrt.jar (also see [2]). Now I use additonal access rules for the JRE container in my classpath file instead of using 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] Using JavaFX in JRE 8

You can go to the Problems View Options, select Show items that match any configuration checked bellow and deselect Xtext Check (fast) Type in all Configurations

Screenshot: How locate Option in Problems view

I really wish I could comment... So I'm using Luna, where everything works fine. However, I had problems with Angular validation in Luna and figured out a way to work around that. So, maybe this could help you.

  1. Right-click on your project and select Properties
  2. Under Validation, check the Enable project specific settings box.
  3. Scroll down and select Web Resources Validator.
  4. If there is an Include Group and it contains File extension: css, try removing it an then re-validating your project. If the rule is not there, then Add Rule into the existing Include Group, or make a new Include Group.

Maybe you've already tried something like this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!