Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable css warning "Unknown property" in Eclipse Mars?

I get many "Unknown property" warnings in my css files.

This might be due to the fact that I have e(fx)clipse 2.0 and the Eclipse Web Developer Tools installed.

If I open the css files with the e(fx)clipse css editor and add /SuppressWarnings/ the warning icon changes its color (see figure below).

However:

  • the Problems view still shows the warning and the default css Editor shows the warning, too.
  • I do not want to add /SuppressWarnings/ since the css files are automatically generated with WinLess.

How can I disable the "Unknown property" warnings for specific files or at all?

My css files are not located under "src" but under a folder "help". That help folder contains html files for my Eclipse plugin and corresponding css files. =>Those files are not used for JavaFx/e(fx)clipse.

Here is a related article that did not really help me but might give you further information: https://www.eclipse.org/forums/index.php/t/515810/

Screenshot that shows the warnings and the Problem view (click to enlarge) enter image description here

like image 277
Stefan Avatar asked Aug 04 '15 19:08

Stefan


2 Answers

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

like image 136
Aldhor Avatar answered Nov 18 '22 13:11

Aldhor


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

like image 8
Stefan Avatar answered Nov 18 '22 15:11

Stefan