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 133215 - Goto Source: cannot find symbol
Summary: Goto Source: cannot find symbol
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-18 16:25 UTC by Lark Fitzgerald
Modified: 2008-04-30 18:29 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2008-04-18 16:25:21 UTC
Product Version: NetBeans IDE 6.1 RC2 (Build 200804170002)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
plugin: CB 92 2008-04-18_14-24-29.zip
Samples: Trunk 2008-04-18_02-01-55.zip
Platform: 200 (Apr 16, 2008 9:49:22 AM) javafx_sdk-1_0-pre1-windows-i586.zip


Steps:
1. create the Bouncy Bubbles sample
2. open BouncyBubbles.fx
3. scroll down to line 52: timer.start();
4. click on timer and press the Ctrl key (it will turn blue)
5. click on the blue timer

Nothing happens in the ide, but the log shows errors.  Note: This project is set to use the sdk and run project works.

Error at [3:1]/17 - package javafx.gui does not exist
Error at [54:29]/1181 - cannot find symbol
symbol  : class CustomNode
location: class motion.BouncyBubbles
Error at [23:32]/462 - foreach not applicable to expression type
Error at [59:30]/1327 - cannot find symbol
symbol  : class Color
location: class motion.BouncyBubbles.Bubble
Error at [59:38]/1335 - cannot find symbol
symbol  : variable Color
location: class motion.BouncyBubbles.Bubble
Error at [35:17]/835 - cannot find symbol
symbol  : variable Color
location: class motion.BouncyBubbles
Error at [35:30]/856 - cannot find symbol
symbol  : variable opacity
location: class motion.BouncyBubbles.Bubble
Error at [39:1]/885 - cannot find symbol
symbol  : class Frame
location: class motion.BouncyBubbles
Error at [40:15]/908 - cannot find symbol
symbol  : class Canvas
location: class motion.BouncyBubbles
Error at [41:22]/937 - cannot find symbol
symbol  : variable Color
location: class motion.BouncyBubbles
Error at [65:24]/1559 - foreach not applicable to expression type
Error at [70:42]/1781 - operator + cannot be applied to <any>.radius,double
Error at [70:50]/1790 - incompatible types
found   : <nulltype>
required: Number
Error at [83:27]/2295 - operator + cannot be applied to <any>.vx,double
Error at [84:27]/2328 - operator + cannot be applied to <any>.vy,double
Error at [110:31]/2933 - cannot find symbol
symbol  : class Node
location: class motion.BouncyBubbles.Bubble
Error at [111:16]/2957 - cannot find symbol
symbol  : class Circle
location: class motion.BouncyBubbles.Bubble
INFO [org.netbeans.lib.javafx.lexer.JFXLexer]: Releasing lexer @line: 116 total
time: 0ms
get tooltip at 1127
Error at [3:1]/17 - package javafx.gui does not exist
Error at [54:29]/1181 - cannot find symbol
symbol  : class CustomNode
location: class motion.BouncyBubbles
Error at [23:32]/462 - foreach not applicable to expression type
Error at [59:30]/1327 - cannot find symbol
symbol  : class Color
location: class motion.BouncyBubbles.Bubble
Error at [59:38]/1335 - cannot find symbol
symbol  : variable Color
location: class motion.BouncyBubbles.Bubble
Error at [35:17]/835 - cannot find symbol
symbol  : variable Color
location: class motion.BouncyBubbles
Error at [35:30]/856 - cannot find symbol
symbol  : variable opacity
location: class motion.BouncyBubbles.Bubble
Error at [39:1]/885 - cannot find symbol
symbol  : class Frame
location: class motion.BouncyBubbles
Error at [40:15]/908 - cannot find symbol
symbol  : class Canvas
location: class motion.BouncyBubbles
Error at [41:22]/937 - cannot find symbol
symbol  : variable Color
location: class motion.BouncyBubbles
Error at [65:24]/1559 - foreach not applicable to expression type
Error at [70:42]/1781 - operator + cannot be applied to <any>.radius,double
Error at [70:50]/1790 - incompatible types
found   : <nulltype>
required: Number
Error at [83:27]/2295 - operator + cannot be applied to <any>.vx,double
Error at [84:27]/2328 - operator + cannot be applied to <any>.vy,double
Error at [110:31]/2933 - cannot find symbol
symbol  : class Node
location: class motion.BouncyBubbles.Bubble
Error at [111:16]/2957 - cannot find symbol
symbol  : class Circle
location: class motion.BouncyBubbles.Bubble
get tooltip at 1127
Error at [3:1]/17 - package javafx.gui does not exist
Error at [54:29]/1181 - cannot find symbol
symbol  : class CustomNode
location: class motion.BouncyBubbles
Error at [23:32]/462 - foreach not applicable to expression type
Error at [59:30]/1327 - cannot find symbol
symbol  : class Color
location: class motion.BouncyBubbles.Bubble
Error at [59:38]/1335 - cannot find symbol
symbol  : variable Color
location: class motion.BouncyBubbles.Bubble
Error at [35:17]/835 - cannot find symbol
symbol  : variable Color
location: class motion.BouncyBubbles
Error at [35:30]/856 - cannot find symbol
symbol  : variable opacity
location: class motion.BouncyBubbles.Bubble
Error at [39:1]/885 - cannot find symbol
symbol  : class Frame
location: class motion.BouncyBubbles
Error at [40:15]/908 - cannot find symbol
symbol  : class Canvas
location: class motion.BouncyBubbles
Error at [41:22]/937 - cannot find symbol
symbol  : variable Color
location: class motion.BouncyBubbles
Error at [65:24]/1559 - foreach not applicable to expression type
Error at [70:42]/1781 - operator + cannot be applied to <any>.radius,double
Error at [70:50]/1790 - incompatible types
found   : <nulltype>
required: Number
Error at [83:27]/2295 - operator + cannot be applied to <any>.vx,double
Error at [84:27]/2328 - operator + cannot be applied to <any>.vy,double
Error at [110:31]/2933 - cannot find symbol
symbol  : class Node
location: class motion.BouncyBubbles.Bubble
Error at [111:16]/2957 - cannot find symbol
symbol  : class Circle
location: class motion.BouncyBubbles.Bubble
go to at 1128
Error at [3:1]/17 - package javafx.gui does not exist
Error at [54:29]/1181 - cannot find symbol
symbol  : class CustomNode
location: class motion.BouncyBubbles
Error at [23:32]/462 - foreach not applicable to expression type
Error at [59:30]/1327 - cannot find symbol
symbol  : class Color
location: class motion.BouncyBubbles.Bubble
Error at [59:38]/1335 - cannot find symbol
symbol  : variable Color
location: class motion.BouncyBubbles.Bubble
Error at [35:17]/835 - cannot find symbol
symbol  : variable Color
location: class motion.BouncyBubbles
Error at [35:30]/856 - cannot find symbol
symbol  : variable opacity
location: class motion.BouncyBubbles.Bubble
Error at [39:1]/885 - cannot find symbol
symbol  : class Frame
location: class motion.BouncyBubbles
Error at [40:15]/908 - cannot find symbol
symbol  : class Canvas
location: class motion.BouncyBubbles
Error at [41:22]/937 - cannot find symbol
symbol  : variable Color
location: class motion.BouncyBubbles
Error at [65:24]/1559 - foreach not applicable to expression type
Error at [70:42]/1781 - operator + cannot be applied to <any>.radius,double
Error at [70:50]/1790 - incompatible types
found   : <nulltype>
required: Number
Error at [83:27]/2295 - operator + cannot be applied to <any>.vx,double
Error at [84:27]/2328 - operator + cannot be applied to <any>.vy,double
Error at [110:31]/2933 - cannot find symbol
symbol  : class Node
location: class motion.BouncyBubbles.Bubble
Error at [111:16]/2957 - cannot find symbol
symbol  : class Circle
location: class motion.BouncyBubbles.Bubble
Comment 1 David Strupl 2008-04-21 08:16:49 UTC
Go To Source --> pnejedly.
Comment 2 Petr Nejedly 2008-04-22 23:23:46 UTC
Ad Cannot find symbol: this is internal debugging message, but generally it means the IDE thinks your source code has
broken dependencies. As you used the build from 04/18, this has the same cause as issue 133076. Any build from 04/21 or
newer should take the dependencies from the associated platform and thus not exhibit this part of the problem.

Go to source is currently only implemented for types, not variables, and currently only inside a single file. It is
possible to implement slightly more, but without support from the compiler, it would be unnecessaily complicated
(basically writing part of the compiler again in the IDE). What currently works is:
1. Tooltip with resolved type over most type specifiers
2. Go to type if the type is defined in the same source file

So in this example:
import javafx.gui.Color;

class A {
    attribute color : Color;
    attribute b : B;
}

class B {}

you should see tooltip over Color (containing javafx.gui.Color) and even be able to jump (Ctrl+Shift+B, or Ctrl+click)
from "attribute b : [B];" to "class B {}"
Comment 3 Lark Fitzgerald 2008-04-23 16:05:04 UTC
Thankyou for the information.  Using the newer build does clear up most of the errors.  I checked around BouncyBubbles 
for missing dependencies, and it has a closeAction defined:

closeAction : function() { java.lang.System.exit( 0 ); }

there is no import, just a direct declaration.  If I add a import then the rest of my errors clear up and I just see:

go to at XXX

Granted it still doesn't work because timer is a variable but it is helpful to understand why.

I will convert this to an RFE for variable support in a future milestone.
Comment 4 Petr Nejedly 2008-04-29 08:25:35 UTC
Both go to source and go to declaration hould work inside single file now.
It can jump to attributes, variables, types and methods, the tooltip should describe what the underlined entity represent. 
Comment 5 Lark Fitzgerald 2008-04-30 18:29:59 UTC
Verified using:
Product Version: NetBeans IDE 6.1 RC2 (Build 200804170002)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Plugin & Samples: Milestone 2 RC2