Dartium not executing Dart

240 views
Skip to first unread message

Chris Strom

unread,
Feb 5, 2012, 9:04:01 PM2/5/12
to mi...@dartlang.org
Heya,

I know that must be doing something wrong here, but I rebuilt Dartium
and now it won't execute Dart code anymore.

I had a working build from back in January. I did a `gclient sync` to
get updates, then `./dartium_tools/build.py --mode=Release`.
Everything seemed OK, but simple pages won't Dart :(

Running strings against the generated binary shows a lot of Dart is in
there (I see dart VM strings, all of the libraries, etc). But I cannot
get even simple Dart to run, let alone complex Dart.

Any help would be much appreciated!

FWIW I am trying the following page:

<script type="text/javascript">
console.log("javascript is working");
</script>
<script type="application/dart">
void main() {
print("dart is working");
}
</script>
<script type="text/javascript">
console.log("javascript is working");
</script>

The two JS statements work, but there is no output from the dart statement.

-Chris

Vijay Menon

unread,
Feb 5, 2012, 9:36:09 PM2/5/12
to Chris Strom, mi...@dartlang.org
Hi Chris,

We just modified this.  For now, you need a bit of JS on the page to bootstrap Dart support.  This is what we're using in our samples:

<script src="http://dart.googlecode.com/svn/branches/bleeding_edge/dart/client/dart.js"></script>

You can see the specifics inside that js file.  We'll keep that up to date.  Long term, this need will go away.

- Vijay

Chris Strom

unread,
Feb 5, 2012, 9:40:35 PM2/5/12
to Vijay Menon, mi...@dartlang.org
Vijay,

Awesome. Just saw the BuildingDartium wiki edit go through on commits.
That fixed it. Greatly appreciate the quick response!

-Chris

Reply all
Reply to author
Forward
0 new messages