Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot figure out why this script has compiling error #37

Open
wolfdancer opened this issue Aug 24, 2012 · 5 comments
Open

Cannot figure out why this script has compiling error #37

wolfdancer opened this issue Aug 24, 2012 · 5 comments

Comments

@wolfdancer
Copy link

function echo(message:String) {
Ant.echo(message)
}

Error:
program_.__Program__0

Errors:

The type "java.lang.String" cannot be converted to "java.lang.Boolean" [line:-28 col:12] in
line 1:
Expected Type: Boolean
Line Number: 2 Column: 12

@wolfdancer
Copy link
Author

Update: It has something to do with that Ant.echo

@bchang
Copy link
Contributor

bchang commented Aug 24, 2012

In Aardvark, functions based on Ant tasks need named parameters. Try

function echo(message:String) {
Ant.echo(:message = message)
}

@wolfdancer
Copy link
Author

Ah yes. That is right. Is there anyway to make the error message clear? That was the real issue. I know you can say read the document but the error message is not close enough to the error

@bchang
Copy link
Contributor

bchang commented Aug 24, 2012

Hm, yeah that would be a task for Gosu's command line parse error reporting.

@wolfdancer
Copy link
Author

Unfortunately, users of Aardvark will be confused because of this. Maybe in the meanwhile put specific document about how to run ANT target? You need another one for Maven too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants