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 227185 - Error badges in project window.
Summary: Error badges in project window.
Status: RESOLVED DUPLICATE of bug 225442
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-07 21:13 UTC by len13
Modified: 2013-03-10 10:55 UTC (History)
0 users

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 len13 2013-03-07 21:13:23 UTC
I can't work with Netbeans 7.3 becouse of it bad errors intertpretation.

There are situations like this in Twig files:

<script type="text/javascript">
	var jsonCategories = {{ categories }};	
</script>

"{{ categories }}" This is the place where Twig put proper jSon object, after you run your code it will look like this, so it has no syntax error: 

var jsonCategories = {cat: 'data1', cat2: 'data2'};

The editor cannot predict everything and cannot predict what will be substituted for {{ categories }} twig variable. You need to respect that.

Netbeans mark this line as error and what is terrible it is propagating this error in whole Project window.

Many people beg you to make this feutore optional but almost any time You sad that this is a feauture or there must be an error - you fix it. Please, this is serious problem, I need ti uninstal Netbeans 7.3 and back to 7.2.1. 
Please this is only one chceckbox in options to make this functionality optional.
Comment 1 Ondrej Brejla 2013-03-07 22:29:14 UTC
This JS module embedding issue has already been fixed in the dev build and I think that it will be included in 7.3 patch 1.
Comment 2 Petr Pisl 2013-03-08 08:49:38 UTC
Petre, are the fixes suitable for the patch? If yes could you please mark them as patch candidate? Thanks
Comment 3 Petr Hejl 2013-03-08 11:55:24 UTC
(In reply to comment #2)
> Petre, are the fixes suitable for the patch? If yes could you please mark them
> as patch candidate? Thanks

Already done. And even transplanted. See issue #225442.

*** This bug has been marked as a duplicate of bug 225442 ***
Comment 4 len13 2013-03-10 10:55:06 UTC
It dosnt work good:

error are still in sympfony sources. A i said:

The editor cannot predict everything and cannot predict what are the programmer intetnion.

But you dont care. Error badges must by optional.

Examples:

namespace {{ namespace }}\Controller{{ entity_namespace ? '\\' ~ entity_namespace : '' }};

                           (function() {
                                var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
                                dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
                                (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
                            })();
                        </script>
 
I need to back to 7.2.1