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 258776 - Navigator pane does not reflect change in selection of javascript file nor does it reflect changes within selected javascript file
Summary: Navigator pane does not reflect change in selection of javascript file nor do...
Status: RESOLVED DUPLICATE of bug 257190
Alias: None
Product: javascript
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P1 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-11 16:51 UTC by capey0
Modified: 2016-07-19 12:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (100.30 KB, text/plain)
2016-04-11 16:52 UTC, capey0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description capey0 2016-04-11 16:51:55 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_66
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.66-b18

Reproducibility: Happens every time

STEPS:
Create new JS file
Save file (File is opened and selected in Projects pane)
Added new function fooBar()
Saved file
Note: there is nothing in this file except the following code:
function fooBar() {
	alert("fooBar called!");
}
There is NO workaround - clicking somewhere to force the Navigation pane to update does NOT make it update for the file in question.
Copying a JS file where the Navigator does work and renaming it does NOT make the Navigator work either.

ACTUAL:
No change in Navigation pane

EXPECTED:
Navigation pane should updat
Comment 1 capey0 2016-04-11 16:52:00 UTC
Created attachment 159213 [details]
IDE log
Comment 2 capey0 2016-04-13 16:00:25 UTC
As an update to this issue ...

I a have a file called "renewConf.js".

This file WILL NOT show up in the Navigator pane.

If I change the name to "renewCon.js" or "renewConx.js" it magically shows up!!! WT*??!!!

If I rename it back to the original name it disappears again. 

Also, I have other file types with the SAME name (ie .jsp and .css). These files show up in the Navigator without issue.

It seems to be related to .js files only.
Comment 3 capey0 2016-05-02 22:40:02 UTC
Has anybody seen / taken a look at this issue yet?
Comment 4 Petr Pisl 2016-07-18 14:13:21 UTC
This is problem of introducing configuration files with their mimetypes. In your case the name of file is a name of conf file in karma and it gets mimetype text/karmaconf+javascript. And this is the reason. Is known issue. 

It has to be fixed somewhere in CSL.
Comment 5 Petr Pisl 2016-07-19 12:38:57 UTC

*** This bug has been marked as a duplicate of bug 257190 ***