This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In the version 7.2.1 our code was running fine, after updating to 7.4 the shadow files stopped working. In our layer xml we have the following Shadow File by example: <folder name="Conversion to BCD.shadow"> <attr name="originalFile" stringvalue="Device/PLC300/Firmware/120/FunctionBlocks/Program/Conversion to BCD"/> </folder> Any possible solution? If i coulnd fix that i will need to return to 7.2.1. Thanks
Please, what exactly does not work? > <folder name="Conversion to BCD.shadow"> [...] I tried to create this shadow file, and it worked correctly (at least DataShadow.findOriginal(shadowFile)). Data shadows are used quite intensively in the IDE, so if there were some serious bug, it would be probably discovered very quickly. I'm decreasing the priority for now. Please, provide a test case, or detailed explanation of the problem, or preferably both. Thank you.
Lets go in details: I have take screenshots of all that doesn´t work. 1. Comparing the files layerxml-nb721-working.png and layerxml-nb74.png you will see that the layer.xml shadown files are not loading on NB 7.4 but are loading on NB 7.2.1, the layer.xml files are the same. (Both xml files are also attached) 2. Comparing the files application-nb74.png and application-nb721-working.png you will see that the palette on my application is not loading on the platform 7.4 but its loading on 7.2.1. On the creation of the palete we use the default constructor of the platform, same code on 7.4 and 7.2.1 see the image creating-palette-code.png Please inform if you need more info.
Created attachment 144304 [details] application-nb74
Created attachment 144305 [details] application-nb721-working
Created attachment 144306 [details] creating-palette-code
Created attachment 144307 [details] layer-nb74
Created attachment 144308 [details] layer-nb721-working
Created attachment 144309 [details] layerxml-nb74
Created attachment 144310 [details] layerxml-nb721-working
Please, try to start NetBeans (or your platform application) with this command line argument: -J-Dorg.openide.loaders.FolderChildren.delayedCreation=false Does it help? (Many thanks to Ondrej Vrabec for help with evaluation.)
Hello Jaroslav, Same problem.
This seems to be a result of a fix of bug #214664. Shadow *files* are recognized only as *files* not folders (the fact that it worked with <folder></folder> was merely a bug). And because your shadow layer entries are folder (not files) they stopped working correctly. Rewrite your layer shadows to <file></file> and they'll start working again. For more information see https://netbeans.org/bugzilla/show_bug.cgi?id=214664.
I will try this solution and post results. But if you look into the schema http://www.netbeans.org/dtds/filesystem-1_2.dtd , you will find the folder there. <!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd"> <!-- -//NetBeans//DTD Filesystem 1.2//EN --> <!-- XML representation of a fixed filesystem --> <!-- as for example a module layer. --> <!-- See: org.openide.filesystems.XMLFileSystem --> <!ELEMENT filesystem (file|folder|attr)* > <!ELEMENT folder (folder|file|attr)* > <!ELEMENT file (#PCDATA|attr)*> <!ELEMENT attr EMPTY > <!ATTLIST filesystem > <!ATTLIST folder name CDATA #REQUIRED > <!ATTLIST file name CDATA #REQUIRED url CDATA #IMPLIED > <!ATTLIST attr name CDATA #REQUIRED bytevalue CDATA #IMPLIED shortvalue CDATA #IMPLIED intvalue CDATA #IMPLIED longvalue CDATA #IMPLIED floatvalue CDATA #IMPLIED doublevalue CDATA #IMPLIED boolvalue CDATA #IMPLIED charvalue CDATA #IMPLIED stringvalue CDATA #IMPLIED urlvalue CDATA #IMPLIED methodvalue CDATA #IMPLIED newvalue CDATA #IMPLIED serialvalue CDATA #IMPLIED bundlevalue CDATA #IMPLIED >
Its working now. The only difference i see its that on the tree of layer.xml when i use the tag <file> on a folder, i can´t expand them. But that is not a big issue. Thanks for your help.