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 257642 - Netbeans doesn't recognize js files with 'Conf' part in names
Summary: Netbeans doesn't recognize js files with 'Conf' part in names
Status: RESOLVED DUPLICATE of bug 257190
Alias: None
Product: javascript
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-20 11:27 UTC by Sergey Petrov
Modified: 2016-08-11 10:16 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 Sergey Petrov 2016-01-20 11:27:47 UTC
Create html5 project and add javascript file like
'ConfirmDeletion.js'
or
'AndConfMe.js'
create also a file with 
'sdfsfdfg.js' (any name without conf) and add smth to the file, 
open Navigator to be sure smth from sdfsfdfg.js is shown.
Select the file with '..Conf..' in the project,
-------
nothing is changed in Navigator window
----------
Try to add a breakpoint to the file with '...Conf..'
-----
Can't add a breakpoint
Comment 1 Vladimir Riha 2016-01-20 14:02:30 UTC
I don't know about the debugging part, but Navigator issue is filed as #257617
Comment 2 Sergey Petrov 2016-01-20 14:08:43 UTC
yes, looks like a duplicate, and debug part may has the same root reason, but nice to check when 257617 is fixed
Comment 3 Petr Pisl 2016-08-11 09:53:36 UTC
IMHO this is cased by catching configuration files in the project. Partially it can be solved by issue #257190, but probably the algorithm of finding configuration files is not good. According to this issue it looks like it claims that a configuration file is every file that contains conf in its name.
Comment 4 Tomas Mysik 2016-08-11 10:16:00 UTC
IMHO duplicate of issue #257190. The cause here is the Karma config file MIME resolver [1] which tries to specify the name precisely. But unfortunately these conditions are OR-ed and not AND-ed - right, Sváťo? Issue for AND support is submitted as issue #267415. Also, we cannot now specify MIME resolver for these files using a Java class - see issue #267419.

So, the only thing we can do right now - to kind of work around all those issues - is to keep only element with "karma" substring (see [1]). Then, all the files with "karma" in their names will be treated as Karma config files.

@sdedic: Sváťo, does it make sense to you? If it does, please reassign this issue back to me.

Thanks.
[1]
<MIME-resolver>
    <file>
        <ext name="js"/>
        <name name="karma" substring="true"/>
        <name name="conf" substring="true"/>
        <resolver mime="text/karmaconf+javascript"/>
    </file>
</MIME-resolver>

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