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.
I can confirm that the issue of the garbage files (originally reported here https://netbeans.org/bugzilla/show_bug.cgi?id=242545#c12 ) is due to the files not being gzip decompressed. To reproduce: * start a clean NetBeans dev (in my case: netbeans-trunk-nightly-201411050002.zip) * create a HTML5/JS Application with all default settings * right-click the project -> Properties -> JavaScript Files & add the latest version of jqueryui (currently: 1.10.4) -> OK * NetBeans downloads the files, but there are many files that occur as garbage Why I'm saying it's due to the files not being gzip decompressed: I wrote a simple Java program, which reads a garbage file & prints it out after gzip decompression. The result is the original expected file. Of course, the weird thing is that some files are downloaded just fine, while others aren't, even though they all are returned with the HTTP header Content-Encoding: "gzip". Version info (note: I made sure the User/Cache directories did not exist on startup, so I started from a clean NetBeans): Product Version: NetBeans IDE Dev (Build 201411050002) Updates: Updates available Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b18 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) User directory: C:\Users\vanelvan\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\vanelvan\AppData\Local\NetBeans\Cache\dev Source code of the Java program: import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; import java.nio.CharBuffer; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.zip.GZIPInputStream; public class JavaApplication1 { public static void main(String[] args) throws IOException { Path p = Paths.get("C:\\Users\\me\\Documents\\NetBeansProjects\\HTML5Application\\public_html\\js\\libs\\jqueryui\\css\\jquery.ui.autocomplete.css"); CharBuffer buf = CharBuffer.allocate(8 * 1024); try (Reader in = new InputStreamReader(new GZIPInputStream(Files.newInputStream(p)))) { while (in.read(buf) != -1) { System.out.println(buf.flip().toString()); buf.clear(); } } } }
Taking over.
I just tried it (the same version 1.10.4) and it works for me without any problem. What file for example is gzipped? BTW this could be perhaps a CDNJ issue, NetBeans simply downloads files that CDNJS server provides in its APIs. Simply reopen this issue, thanks. Product Version: NetBeans IDE Dev (Build 20160721-f437370035b5) Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b14 Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b14 System: Linux version 4.2.0-42-generic running on amd64; UTF-8; cs_CZ (nb)