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 245950

Summary: 'Unused' references in requirejs sample in NB
Product: javascript Reporter: Geertjan Wielenga <geertjan>
Component: RequireJSAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal CC: pjiricka, vriha
Priority: P2    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: 'unused' in requirejs sample

Description Geertjan Wielenga 2014-07-24 10:21:50 UTC
Created attachment 148271 [details]
'unused' in requirejs sample

Look at the basic sample for RequireJS in the latest NetBeans dev build:

https://github.com/volojs/create-template

Get to the above page from here:

http://requirejs.org/docs/start.html#examples

What's the reason for all the grey underline (i.e., unused references) in the attached screenshot?

Seems wrong information, regardless of the reason.
Comment 1 Petr Pisl 2014-07-25 09:41:19 UTC
Fixed in web-main. The problem was in wrong assignment offset, when the RequireJS module adds new assignments to variables.
Comment 2 Quality Engineering 2014-07-26 01:24:22 UTC
Integrated into 'main-silver', will be available in build *201407260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/031d26230908
User: Petr Pisl <ppisl@netbeans.org>
Log: #245950 - 'Unused' references in requirejs sample in NB