New Dart Editor build 6442

119 views
Skip to first unread message

Daniel Rubel

unread,
Apr 12, 2012, 11:13:42 AM4/12/12
to General Dart Discussion
New Dart Editor build available...


Highlights ... build 6442
  • full debugging turned on by default
  • initial cut of new html + css editors (work in progress)
  • live css editing... 
  •    your css edits get pushed up to Dartium live, 
  •    without you having to refresh or relaunch the browser
  • new Callers view
  • debugging field inspection and Dartium stability improvements
  • rename local variable (work in progress)
  • parser recovery and code completion improvements
  • dartdoc hover text improvements

Full change log ...


Tutorial ...

Eric J. Smith

unread,
Apr 12, 2012, 11:34:27 AM4/12/12
to mi...@dartlang.org
This build isn't working for me on my Windows 64bit box.  I am getting these errors when trying to run the app:

java.net.ConnectException: Connection refused: connect
Connection refused: connect

Could not launch browser - process terminated while trying to connect:
Dartium stderr: [0412/103227:FATAL:content_main_runner.cc(448)] Check failed: icu_util::Initialize(). 

Jay Young

unread,
Apr 12, 2012, 12:58:00 PM4/12/12
to mi...@dartlang.org
On Thursday, April 12, 2012 11:13:42 AM UTC-4, Daniel Rubel wrote:
  • live css editing... 
  •    your css edits get pushed up to Dartium live, 
  •    without you having to refresh or relaunch the browser
I love you. 

Devon Carew

unread,
Apr 12, 2012, 1:03:03 PM4/12/12
to Eric J. Smith, mi...@dartlang.org
Hmm, we're able to launch and debug on Windows here. Can you:
  • see if there are any copies of Dartium already running, and close them?
  • see if Dartium (in dart/dart-sdk/chromium) starts up normally for you?
There's the off chance that your log has some useful information for us - can you file some Feedback w/ your log included? Thanks!

Devon
--
Devon Carew
Software Engineer
Google, Inc.

Eric J. Smith

unread,
Apr 12, 2012, 2:07:02 PM4/12/12
to mi...@dartlang.org
Hrmm... looks like it was a false alarm.  I'm thinking the zip didn't extract completely because I re-downloaded and extracted it again and it worked.  Sorry.

One thing I did notice though is that sometimes it seems like the SDK gets out of sync with the browser API.  The specific code in question is this:

html.window.webkitRequestAnimationFrame(loop, ctx.canvas);

Up until downloading this build, this code worked.  After downloading the build it complains only when I run it that there is only a method taking a callback parameter and no element parameter, so I remove the canvas parameter and it works fine in the browser, but gives an error in the editor saying it can't find the method.

Is this expected behavior while the platform is in such active development?

Also, how would I go about making this code cross platform and conditionally call mozRequestAnimationFrame or msRequestAnimationFrame?

Thanks,
Eric J. Smith

Stephen Adams

unread,
Apr 12, 2012, 2:23:18 PM4/12/12
to Eric J. Smith, mi...@dartlang.org
We are tracking browser compatibly for requestAnimationFrame at http://code.google.com/p/dart/issues/detail?id=2185

On Thu, Apr 12, 2012 at 11:07 AM, Eric J. Smith <er...@codesmithtools.com> wrote:
Hrmm... looks like it was a false alarm.  I'm thinking the zip didn't extract completely because I re-downloaded and extracted it again and it worked.  Sorry.

One thing I did notice though is that sometimes it seems like the SDK gets out of sync with the browser API.  The specific code in question is this:

html.window.webkitRequestAnimationFrame(loop, ctx.canvas);

Up until downloading this build, this code worked.  After downloading the build it complains only when I run it that there is only a method taking a callback parameter and no element parameter, so I remove the canvas parameter and it works fine in the browser, but gives an error in the editor saying it can't find the method.

Is this expected behavior while the platform is in such active development?

At this point APIs will come and go, but it should at least be consistent between the editor and codegen.  I'm not familiar enough with how the editor is built to know why they might be different.

Eric J. Smith

unread,
Apr 12, 2012, 2:34:24 PM4/12/12
to mi...@dartlang.org, Eric J. Smith
Alright.  Thanks, I'm following that issue now.

Ross Smith

unread,
Apr 12, 2012, 9:29:39 PM4/12/12
to General Dart Discussion
> html.window.webkitRequestAnimationFrame(loop, ctx.canvas);

> Up until downloading this build, this code worked.  After downloading the
> build it complains only when I run it that there is only a method taking a
> callback parameter and no element paramete

See this issue for an explanation regarding the 2nd argument (and its
removal!):
http://code.google.com/p/dart/issues/detail?id=2481

Eric J. Smith

unread,
Apr 12, 2012, 11:18:15 PM4/12/12
to mi...@dartlang.org
I'm totally cool with the argument being removed.  I just wish that removing the argument wasn't causing errors in the editor.

Michael Chean

unread,
Apr 13, 2012, 12:05:22 PM4/13/12
to mi...@dartlang.org
Just want to say that each release of the Editor has gotten more and more responsive for me.

sulliva...@gmail.com

unread,
Apr 25, 2012, 5:29:21 PM4/25/12
to mi...@dartlang.org
I'm teaching a class of new CS students using Dart. I have one student (only) who's having the problem (including when using Dartium downloaded today): No programs will launch:  java.net.connectException connection refused. She's got Norton running, which we tried to disable. We also allowed DartEditor and Chrome through her Windows firewall, to no avail. If anyone has any ideas, I welcome them.


On Thursday, April 12, 2012 11:13:42 AM UTC-4, Daniel Rubel wrote:
On Thursday, April 12, 2012 11:13:42 AM UTC-4, Daniel Rubel wrote:

Daniel Rubel

unread,
Apr 25, 2012, 6:07:44 PM4/25/12
to sulliva...@gmail.com, mi...@dartlang.org
If you load the Sunflower sample that ships with Dart Editor (click on the sunflower example in the Welcome page) does it run?

I'm curious, because the html files in those samples reference a local "../dart.js" file
where as the html files created when you use the "New Application" command reference an "http://......./dart.js" file.

Chris Buckett

unread,
Apr 25, 2012, 6:08:57 PM4/25/12
to sulliva...@gmail.com, mi...@dartlang.org
Have you tried allowing java.exe through the windows firewall?
An experiment could be to try and disable the windows firewall and/or norton to see if that allows it.

Cheers,
Chris.
Reply all
Reply to author
Forward
0 new messages