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 224471 - Changing hint from Warning to Warning on current line not reflected in editor
Summary: Changing hint from Warning to Warning on current line not reflected in editor
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-04 11:23 UTC by Vladimir Riha
Modified: 2013-01-31 11:14 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 Vladimir Riha 2013-01-04 11:23:09 UTC
In PHP this doesn't happen (hints are not visible at all like in issue 224413). Please try following:

file.js:
var a = 1;
var b = 1

if (a == b) {

}

// file end


- change settings of these 2 hints to "Warning on current line":
  - missing semicolon
  - "Using === or !== instead..."

- confirm changes
- back in editor, place cursor to line "var a = 1;"
=> both hints are still visible



Product Version: NetBeans IDE Dev (Build web-main-9627-on-20130103)
Java: 1.7.0_10; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Linux version 3.2.0-34-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 markuszeller 2013-01-30 12:24:57 UTC
Same happens for me on PHP

<?php

if ($value = getValue())
{
    echo "value ist $value", PHP_EOL;
}

function getValue()
{
    return true;
}

?>

The IF warns for accidentional assignment which is totally ok, but I do this as intention. In PHP this expression is true, if the content of the assignment is true.
I don't like this to be displayed as warning, so I set it to "warning on current line", but then I do not see anything as warning - either at the scroll pane or when beeing on the line itself. Using the "display as info" works best for me, BUT that is not included in the action items!
Comment 2 Vladimir Riha 2013-01-30 12:32:34 UTC
I think your problem is more likely issue 143677 as you don't see the hint at all.