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.

Bug 228823 - failed JavaScript library download creates empty JS file
Summary: failed JavaScript library download creates empty JS file
Status: RESOLVED DUPLICATE of bug 228566
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-21 22:51 UTC by David Konecny
Modified: 2013-04-23 06:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2013-04-21 22:51:43 UTC
It should not if download failed.
Comment 1 David Konecny 2013-04-21 23:06:02 UTC
I do have often connection problems when it comes to CDN servers. Sometimes IDE looks like JS library was downloaded without problems but file is marked red exclamation icon and tooltip says "error parsing file" and if I open the file the content is "<HTML></HTML>" and there is nothing relevant in the log.

From UI perspective it is also strange that closing Project Properties results into "Saving Project Data" dialog being displayed and "Downloading selected JS Files" task is running on the background.
Comment 2 Vladimir Riha 2013-04-22 05:48:13 UTC
Sounds similar to issue 228566, except of the "<HTML></HTML>"
Comment 3 Tomas Mysik 2013-04-22 07:54:23 UTC
(In reply to comment #1)
> From UI perspective it is also strange that closing Project Properties results
> into "Saving Project Data" dialog being displayed and "Downloading selected JS
> Files" task is running on the background.

What do you suggest?

Thanks.
Comment 4 Petr Jiricka 2013-04-22 08:33:11 UTC
I agree this sounds like issue 228566.
Comment 5 David Konecny 2013-04-22 22:11:12 UTC
(In reply to comment #3)
> > From UI perspective it is also strange that closing Project Properties results
> > into "Saving Project Data" dialog being displayed and "Downloading selected JS
> > Files" task is running on the background.
> 
> What do you suggest?

In my case download failed and I had to wait minute or two and UI saying "Saving Project Data" just did not make sense. If it said "downloading JS files..." it would be OK but I'm not sure what we can do during closing of project properties. Probably not much ay? Perhaps background download should not block closing of project properties?? What do you think?

*** This bug has been marked as a duplicate of bug 228566 ***
Comment 6 Tomas Mysik 2013-04-23 06:34:01 UTC
I don't think we can change the text in the dialog so downloading in a background thread is the only option. I will look at it.

Thanks.