compiler behavior

  • tbee
Posted: Sun, 04/18/2010 - 11:23

After some more working with the plugin: in the project where my code is part of the plugin has some issues with non CP1252 letters. It reports these errors on the console during compilation. These classes are of no interest to me, but every time I save my class, the plugin tries to compile all classes including the ones with the errors. Compiling is unnecessary slow because of this.

Another behavior I observe is that during compilation, if I make a change to a class, the plugin almost immediately asks me if I want to save it. That is disturbing.

We are aware of the second

  • maxkatz
  • 02/17/10
  • Sun, 04/18/2010 - 11:29

We are aware of the second issue and will fix it. For the first one, could you post sample code?

description

  • tbee
  • 04/14/10
  • Sun, 04/18/2010 - 12:04

Sample code I cannot post, because there basically is nothing wrong. We're talking about JFXtras again, my demo "XCalendarPickerDemo" wont start because of the following error:

java.lang.ClassNotFoundException: org.jfxtras.scene.control.XCalendarPickerDemo

There is one error in that class:

cannot find symbol
symbol : class XPicker
location: package org.jfxtras.scene.control XCalendarPickerDemo.fx /JFXtrasControls/test/org/jfxtras/scene/control line 36 Problem

However, XPicker is there and has no errors. But I cannot start XPickerDemo either (class not found). It seems like not much is compiling at all, and the plug stops after finding 100 errors, and that explains all the "class not found" errors. The strange thing is; I was in the middle of fixing my control layout issue this morning and suddenly Eclipse/Exadel seemed to stop compiling or something. I have no clue. Tried to fix it on-and-off during the day. (Then I tried NetBeans and it hang... one of those days I guess :-)

Maybe a clean install of Eclipse and the plugin. But you're always welcome to take a remote-desktop peek.

Nightly build

  • abratukhin
  • 02/18/10
  • Sun, 04/18/2010 - 23:20

We have fixed several issues with JavaFX compiler in current release. Please, try our nightly build from http://download.exadel.org/javafx_plugin/updates/nightly/. If you still will have such problem, please, let us know.

unnessecary compilation

  • tbee
  • 04/14/10
  • Mon, 04/19/2010 - 11:08

Ok, I believe I may have multiple crossing behaviors here. One at a time though. I have every compiled and working (all my XCalendarPicker* code). Then I made a trivial change; added an empty line and removed it again in XCalendarPickerSkinAbstract.fx. Save. Then the compiler kicks in and does this:

src\org\jfxtras\scene\gadget\ScoreChar.fx:40: warning: unmappable character for encoding Cp1252
def gridIndex = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*:,.\"!>(<-+?);'/ @$£%ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜøØáíóúñÑ�ÂÀãÃð�ÊËÈı�Î�ÌÓßÔÒõÕµþÞÚÛÙý�";
^
src\org\jfxtras\scene\gadget\ScoreChar.fx:40: warning: unmappable character for encoding Cp1252
def gridIndex = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*:,.\"!>(<-+?);'/ @$£%ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜøØáíóúñÑ�ÂÀãÃð�ÊËÈı�Î�ÌÓßÔÒõÕµþÞÚÛÙý�";
^
src\org\jfxtras\scene\gadget\ScoreChar.fx:40: warning: unmappable character for encoding Cp1252
def gridIndex = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*:,.\"!>(<-+?);'/ @$£%ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜøØáíóúñÑ�ÂÀãÃð�ÊËÈı�Î�ÌÓßÔÒõÕµþÞÚÛÙý�";
^
src\org\jfxtras\scene\gadget\ScoreChar.fx:40: warning: unmappable character for encoding Cp1252
def gridIndex = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*:,.\"!>(<-+?);'/ @$£%ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜøØáíóúñÑ�ÂÀãÃð�ÊËÈı�Î�ÌÓßÔÒõÕµþÞÚÛÙý�";
^
src\org\jfxtras\scene\gadget\ScoreChar.fx:40: warning: unmappable character for encoding Cp1252
def gridIndex = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*:,.\"!>(<-+?);'/ @$£%ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜøØáíóúñÑ�ÂÀãÃð�ÊËÈı�Î�ÌÓßÔÒõÕµþÞÚÛÙý�";
^
src\org\jfxtras\scene\gadget\ScoreChar.fx:161: warning: unmappable character for encoding Cp1252
Image { url: "{__DIR__}scoreboardgrids/Char_181.png" }, // Ã?
^
src\org\jfxtras\scene\gadget\ScoreChar.fx:167: warning: unmappable character for encoding Cp1252
Image { url: "{__DIR__}scoreboardgrids/Char_209.png" }, // Ã?
^
src\org\jfxtras\scene\gadget\ScoreChar.fx:172: warning: unmappable character for encoding Cp1252
Image { url: "{__DIR__}scoreboardgrids/Char_214.png" }, // Ã?
^
src\org\jfxtras\scene\gadget\ScoreChar.fx:174: warning: unmappable character for encoding Cp1252
Image { url: "{__DIR__}scoreboardgrids/Char_216.png" }, // Ã?
^
src\org\jfxtras\scene\gadget\ScoreChar.fx:188: warning: unmappable character for encoding Cp1252
Image { url: "{__DIR__}scoreboardgrids/Char_237.png" }, // Ã?
^

I have not changed ScoreChar. I can understand that the change in my file may have consequences for other errors. Is that the reason why it is recompiling ScoreChar.fx?

Question

  • abratukhin
  • 02/18/10
  • Tue, 04/20/2010 - 08:16

What encoding do you use for JavaFX scripts? I've tried UTF-8 and it works fine.
About why it is recompiling ScoreChar.fx - we didn't fully implement incremental build yet. I think, it will be done in the nearest release.

The ScoreChar is not my code,

  • tbee
  • 04/14/10
  • Tue, 04/20/2010 - 22:49

The ScoreChar is not my code, so I do not know what encoding it uses. It is not relevant to my part of the JFXtras code base, aside from the behavior that it gets recompiled (together with about 10 other classes) everytime I save my code.

Also the "xxx was changed, do you want to save?" keeps popping up when I make a change during a build (and because of autobuild combined with the habbit of pressing ctrl-s every 1/10 of second makes is annoying ;-). Maybe the incremental build will solve both.

All described issues are

  • abratukhin
  • 02/18/10
  • Thu, 06/17/2010 - 14:41

All described issues are fixed in the latest release 1.3.2.