Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8087723

CSSParser warning hard to understand

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • fx2.0
    • javafx
    • None

      I just got this warning from the CSS parser:

      WARNING: com.sun.javafx.css.parser.CSSParser declaration Expected IDENT at file:/Users/randahl/Dropbox/Development/wefend/ui/target/classes/styling/wefend.fhd.css[3,101,2]

      There are a couple of things that make this warning hard to read:

      1. Few will be able to guess what is meant by "declaration Expected IDENT" - the problem is actually that the parser does not like that I have declared an empty block such as .x {}, but how am I supposed to know that, from this message?

      2. The three dimensional vector at the end of the message could indicate that I should go to line 3 character 101 and then scroll along the z-axis until I reach depth 2. However, my old-school Mac OS only supports two-dimensional scrolling.

      To reproduce, just add the following to a CSS file:


      /* This is perfectly legal CSS but JavaFX does not like empty blocks for some reason */
      .main-tab {

      }

            Unassigned Unassigned
            risaksen Randahl Isaksen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported: