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.
Summary: | Strange semantic code reading eroor. Depends on parts of javascript comment. You can delete diffrent parts of them and semantics highlighting gets back. Parts have no html tags, only spaces, commas, dots and russian letters. | ||
---|---|---|---|
Product: | javascript | Reporter: | Zon |
Component: | Editor | Assignee: | Petr Pisl <ppisl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0.2 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
IDE log
Code Editor Screenshot when it doesn't work. Screenshot when it works. |
Description
Zon
2015-12-23 04:54:00 UTC
Created attachment 157895 [details]
IDE log
Created attachment 157896 [details]
Code
Somehow it depends on comment length and separating the comment from previous object property with whitespace. Deleting any 2-3 lines from comment also helps. I can not somehow resolve what is wrong. When I try the attached source in NB8.1 and NB 8.0.2 I can not notice, what is wrong. Could you please be more specific. What error do you see? Thanks This is not an error, but a bug that reduces functionality. The code is usually sematically evaluated by IDE (blue operators, violet global variables, highlighting selected variable across the code etc.) When comments before functions are long and functions are given separated with commas, then code evaluation breaks and you see plain text only. If you try formatting - it fails also and spoils code layout. The solution is to put an empty line before function comment. Evaluation then recovers. But I still can't make my formatting settings leave such an empty line. So when you ask to format - these lines are removed and code layout is spoilt again. Created attachment 157983 [details]
Editor
The screenshot from my 8.1.
I probably get it. I attached a screenshot with your source from my NB 8.1. It seems that everything is ok. Did you install a third party plugin? Created attachment 158040 [details]
Screenshot when it doesn't work.
Here's a screenshot when it doesn't work. Singleton not green, maskText not thick, Stream.gui.helper.Format not is String.
Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: Updates available to version NetBeans 8.0.2 Patch 2
Java: 1.7.0_60; Java HotSpot(TM) 64-Bit Server VM 24.60-b09
Runtime: Java(TM) SE Runtime Environment 1.7.0_60-b19
System: Linux version 3.5.0-51-generic running on amd64; UTF-8; en_US (nb)
User directory: /home/zon/.netbeans/8.0
Cache directory: /home/zon/.cache/netbeans/8.0
Created attachment 158041 [details]
Screenshot when it works.
Added a line after "singleton: true," and it's recognized now. Semantics are analyzed, colors appear.
As for plugins - only standard ones are installed. The problem is fixed in dev build. |