gw.lang.parser.exceptions.ParseResultsException: Errors: Syntax error. [line:1 col:16] in line 1: uses java.util.* line 2: class Greet { Line Number: 1 Column: 16 Unexpected token: class [line:2 col:1] in line 1: uses java.util.* line 2: class Greet { line 3: var name1: String Line Number: 2 Column: 1 Not a statement. [line:2 col:7] in line 1: uses java.util.* line 2: class Greet { line 3: var name1: String Line Number: 2 Column: 7 Could not resolve symbol for : Greet [line:2 col:7] in line 1: uses java.util.* line 2: class Greet { line 3: var name1: String Line Number: 2 Column: 7 Syntax error. [line:3 col:16] in line 2: class Greet { line 3: var name1: String line 4: construct(name2: String){ Line Number: 3 Column: 16 Unexpected token: construct [line:4 col:5] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 5 Could not resolve symbol for : name2 [line:4 col:15] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 15 Expecting ')' to close parenthesized expression. [line:4 col:15] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 15 Unexpected token: '(' [line:4 col:14] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 14 Not a statement. [line:4 col:15] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 15 Could not resolve symbol for : name2 [line:4 col:15] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 15 Unexpected token: ':' [line:4 col:20] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 20 Unexpected token: String [line:4 col:22] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 22 Syntax error. [line:4 col:22] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 22 Unexpected token: ')' [line:4 col:28] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 28 Could not resolve symbol for : name2 [line:5 col:15] in line 4: construct(name2: String){ line 5: name1=name2.capitalize() line 6: } Expected Type: String Line Number: 5 Column: 15 "Greet" is not a valid type. [line:11 col:11] in line 10: } line 11: var g=new Greet("World!") line 12: g.handShake() Line Number: 11 Column: 11


Solutions on the web

Solution icon of googlegroups
via Google Groups by Julian Reyes, 1 year ago
: 2 Column: 1 Not a statement. [line:2 col:7] in line 1: uses java.util.* line 2: class Greet { line 3: var name1: String Line Number: 2 Column: 7 Could not resolve symbol for : Greet [line:2 col:7] in line 1: uses java.util.* line 2: class

Solution icon of googlegroups
via Google Groups by Teja, 3 months ago
Errors: Constructor has internal access [line:3 col:18] in line 2: line 3: var v = new Poll() Line Number: 3 Column: 18

Solution icon of stackoverflow
Gosu Scratchpad.gsp Errors: Could not resolve symbol for : Account [line:3 col:41] in line 2: line 3: var object = gw.api.database.Query.make(Account).select() Expected Type: Type<T> Line Number: 3 Column: 41 Could not resolve symbol for

Solution icon of googlegroups
via Google Groups by Claudio Tasso, 4 months ago
program_.__Program__251 Errors: "example" is not a valid type. [line:3 col:13] in line 2: Line Number: 1 Column: 13 "example" is not a valid type. [line:3 col:13] in line 2: Line Number: 1 Column: 13

Solution icon of googlegroups
via Google Groups by Andrew Myers, 3 months ago
: 45 Variables must have a non-null type. Add an explicit type for this variable. [l ine:4 col:45] in line 3: var f = new File( "c:/javadev/gosu-0.8.6.1-C/README.txt") line 4: var content = f.eachLine( \ s -> print( s ) ) line 5: Line Number: 4

Stack trace

gw.lang.parser.exceptions.ParseResultsException: Errors:

 Syntax error. [line:1 col:16] in
 line 1: uses java.util.*
 line 2: class Greet {
 Line Number: 1  Column: 16

 Unexpected token: class [line:2 col:1] in
 line 1: uses java.util.*
 line 2: class Greet {
 line 3:     var name1: String
 Line Number: 2  Column: 1

 Not a statement. [line:2 col:7] in
 line 1: uses java.util.*
 line 2: class Greet {
 line 3:     var name1: String
 Line Number: 2  Column: 7

 Could not resolve symbol for : Greet [line:2 col:7] in
 line 1: uses java.util.*
 line 2: class Greet {
 line 3:     var name1: String
 Line Number: 2  Column: 7

 Syntax error. [line:3 col:16] in
 line 2: class Greet {
 line 3:     var name1: String
 line 4:     construct(name2: String){
 Line Number: 3  Column: 16

 Unexpected token: construct [line:4 col:5] in
 line 3:     var name1: String
 line 4:     construct(name2: String){
 line 5:         name1=name2.capitalize()
 Line Number: 4  Column: 5

 Could not resolve symbol for : name2 [line:4 col:15] in
 line 3:     var name1: String
 line 4:     construct(name2: String){
 line 5:         name1=name2.capitalize()
 Line Number: 4  Column: 15

 Expecting ')' to close parenthesized expression. [line:4 col:15] in
 line 3:     var name1: String
 line 4:     construct(name2: String){
 line 5:         name1=name2.capitalize()
 Line Number: 4  Column: 15

 Unexpected token: '(' [line:4 col:14] in
 line 3:     var name1: String
 line 4:     construct(name2: String){
 line 5:         name1=name2.capitalize()
 Line Number: 4  Column: 14

 Not a statement. [line:4 col:15] in
 line 3:     var name1: String
 line 4:     construct(name2: String){
 line 5:         name1=name2.capitalize()
 Line Number: 4  Column: 15

 Could not resolve symbol for : name2 [line:4 col:15] in
 line 3:     var name1: String
 line 4:     construct(name2: String){
 line 5:         name1=name2.capitalize()
 Line Number: 4  Column: 15

 Unexpected token: ':' [line:4 col:20] in
 line 3:     var name1: String
 line 4:     construct(name2: String){
 line 5:         name1=name2.capitalize()
 Line Number: 4  Column: 20

 Unexpected token: String [line:4 col:22] in
 line 3:     var name1: String
 line 4:     construct(name2: String){
 line 5:         name1=name2.capitalize()
 Line Number: 4  Column: 22

 Syntax error. [line:4 col:22] in
 line 3:     var name1: String
 line 4:     construct(name2: String){
 line 5:         name1=name2.capitalize()
 Line Number: 4  Column: 22

 Unexpected token: ')' [line:4 col:28] in
 line 3:     var name1: String
 line 4:     construct(name2: String){
 line 5:         name1=name2.capitalize()
 Line Number: 4  Column: 28

 Could not resolve symbol for : name2 [line:5 col:15] in
 line 4:     construct(name2: String){
 line 5:         name1=name2.capitalize()
 line 6:     }

 Expected Type: String
 Line Number: 5  Column: 15

 "Greet" is not a valid type. [line:11 col:11] in
 line 10: }
 line 11: var g=new Greet("World!")
 line 12: g.handShake()
 Line Number: 11  Column: 11
	at gw.internal.gosu.parser.ParserBase.verifyParsedElement(ParserBase.java:250)
	at gw.internal.gosu.parser.GosuParser.parseProgram(GosuParser.java:624)
	at gw.internal.gosu.parser.GosuParser.parseProgram(GosuParser.java:533)
	at gw.lang.shell.Gosu.main(Gosu.java:100)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.