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 148476 - Whole code is marked as error when only one word is incorrect
Summary: Whole code is marked as error when only one word is incorrect
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-26 12:39 UTC by Alexandr Scherbatiy
Modified: 2009-04-28 13:22 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 Alexandr Scherbatiy 2008-09-26 12:39:30 UTC
- Copy the JavaFX Script code to the editor:
----------------------------------------------------------
import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.shape.*;
import javafx.scene.paint.*;

Frame1 {
    title: "MyApplication"
    width: 200
    height: 200
    closeAction: function() {
        java.lang.System.exit( 0 );
    }
    visible: true

    scene: Scene {
        content: [Circle {
                centerX: 100, centerY: 100
                radius: 40
                fill: Color.BLACK
            },Ellipse {
                centerX: 100, centerY: 100
                radiusX: 40, radiusY: 15
                fill: Color.GREEN
            }]
    }
}
----------------------------------------------------------


The whole code is marked as error but there is only one error in
'Frame' word.
Comment 1 David Strupl 2008-10-02 09:22:26 UTC
This is in fact correct behaviour. Closing as invalid.
Comment 2 Alexandr Scherbatiy 2008-10-09 11:35:50 UTC
Just compare it with Java:
-------------  A.java  ----------------
public class A {

    public void a() {};
    public void b() {};
    
    public abstract void c();

}
------------------------------------------
Only 'public class A {' line is marked as error.


-------------  A.fx  ----------------
public class A {

    public function a() {};
    public function b() {};

    public abstract function c() ;

}
------------------------------------------

All code, even a and b functions are marked as error.

Comment 3 David Strupl 2008-10-09 12:45:50 UTC
This is low priority now compared to the other problems we have. Feel free to bump up the priority after we release 1.0.
Comment 4 J Bachorik 2009-04-21 09:46:55 UTC
This is the way the javafxc reports errors. The only way to fix this would be getting the javafx compiler guys to fix
the compiler.
Comment 5 Alexandr Scherbatiy 2009-04-21 10:03:50 UTC
Please, create the compiler issue. 
Comment 6 J Bachorik 2009-04-23 12:45:41 UTC
Ok. It seems that it's not completely compiler's fault. After consulting the sources of java error highlighting I
"adopted" the technique used there for checking the error highlighting position.

Now the error marking is compatible with the one in java editor to a great extent.

http://hg.netbeans.org/javafx/rev/50a203705f93
Comment 7 Alexandr Scherbatiy 2009-04-28 13:22:48 UTC
verified in marina-netbeans-plugin ยป #113