frog can't find html_frog.dart, work around?

10 views
Skip to first unread message

Seth Ladd

unread,
Mar 14, 2012, 4:48:28 PM3/14/12
to General Dart Discussion
Hi,

I *just* updated my repo, and tried to compile a simple test script:

#import('dart:html');

main() {
  var button = document.query('#button');
}

And I get this error:

error: File not found: /Users/sethladd/Code/Dart-git/dart/xcodebuild/Release_ia32/dart-sdk/lib/html/frog/html_frog.dart
test.dart:4:16: warning: cannot find "document"
  var button = document.query('#button');
               ^^^^^^^^
test.dart:4:16: error: member lookup failed for "get:document"
  var button = document.query('#button');
               ^^^^^^^^
compilation failed with 2 errors

I've filed a bug, but in the meantime is there a work around?

(Note: this works in the Editor build 5437.)

Thanks,
Seth

Daniel Rubel

unread,
Mar 14, 2012, 4:57:26 PM3/14/12
to Seth Ladd, General Dart Discussion
There is an earlier bug as well...

Workaround is to copy the html_frog.dart file from the parent directory.

Seth Ladd

unread,
Mar 14, 2012, 5:01:33 PM3/14/12
to Daniel Rubel, General Dart Discussion
Thanks Dan. I merged the issues.

Emily Fortuna

unread,
Mar 14, 2012, 5:03:10 PM3/14/12
to Seth Ladd, Daniel Rubel, General Dart Discussion
I'm working on a fix right now.

Emily Fortuna

unread,
Mar 14, 2012, 5:22:13 PM3/14/12
to Seth Ladd, Daniel Rubel, General Dart Discussion
The fix has been checked in to bleeding_edge!

Seth Ladd

unread,
Mar 14, 2012, 5:26:56 PM3/14/12
to Emily Fortuna, Daniel Rubel, General Dart Discussion
Thanks Emily!
Reply all
Reply to author
Forward
0 new messages