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 228226 - detect missing javascript file?
Summary: detect missing javascript file?
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks: 235150
  Show dependency tree
 
Reported: 2013-04-04 00:46 UTC by John Jullion-ceccarelli
Modified: 2014-10-06 13:26 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Jullion-ceccarelli 2013-04-04 00:46:13 UTC
If I have  <script src="js/test.js"></script> in my file and the file doesn't exist, shouldn't it be underlined red and maybe give me a hint to create the file?
Comment 1 Petr Pisl 2013-04-04 08:28:56 UTC
Yes it's possible in simple cases like this. Anyway it should be done on html site, javascript doesn't know the script tag.
Comment 2 John Jullion-ceccarelli 2013-04-04 22:43:24 UTC
Same obviously goes for CSS files.
Comment 3 Marek Fukala 2013-08-27 11:18:01 UTC
Sounds like nice feature. Should be enabled for all kinds of situations where one imports(links) an external file like href attribute and similar.

However I'd be bit less intruding in reporting the "errors" as the link target may in fact exist in the deployed app, or can be implied by some framework. I think using INFO level for the error description which creates the light bulb, but doesn't underline the text and doesn't change the file status would be adequate.