Frogc in DartEditor

378 views
Skip to first unread message

Lars Tackmann

unread,
Jan 9, 2012, 8:12:25 AM1/9/12
to General Dart Discussion
Any ETA on being able to use frogc as the default JavaScript compiler
from the DartEditor ?

As my program grows (close to 20.000 lines of Dart now) this is
getting increasingly a pain (slow compilation, bad error
messages, ...) so I am suffering a bit here (although not as much as I
would have done with a equal amount of JavaScript). Also simple
refactoring support would be nice (although I know its hard implement
and probably not a priority now).

Keep up the good work.

John Evans

unread,
Jan 9, 2012, 9:28:03 AM1/9/12
to General Dart Discussion
+1000

domrein

unread,
Jan 9, 2012, 1:46:36 PM1/9/12
to General Dart Discussion
+1001

Ross Smith

unread,
Jan 9, 2012, 9:43:23 PM1/9/12
to General Dart Discussion
+5 for the refactoring also - for now i'd settle for being able to
delete a file though :)

Daniel Rubel

unread,
Jan 9, 2012, 9:45:25 PM1/9/12
to Lars Tackmann, General Dart Discussion
You can try using Frog in Dart Editor build 3101...

* Download continuous 3101, 
* unzip an SDK into it

    dart/
        configuration/
        dart-sdk/
            ... sdk dirs and files
        DartEditor.app
        features/
        ... etc ...

* create a .options file in the editor directory with the "frog" options set true

    com.google.dart.tools.core/build/frog = true
    com.google.dart.tools.core/deploy/frog = true
    ### and optionally ...
    com.google.dart.tools.core/debug/frog = true

* launch Dart Editor from the command line with the debug flag and path to the options file

    DartEditor -debug /path/to/.options

Its still a bit rough, but ...

Lars Tackmann

unread,
Jan 10, 2012, 6:35:05 AM1/10/12
to General Dart Discussion


On Jan 10, 3:45 am, Daniel Rubel <danru...@google.com> wrote:
> You can try using Frog in Dart Editor build 3101...
>
> * Download continuous 3101,
> * unzip an SDK into it
>
>     dart/
>         configuration/
>         dart-sdk/
>             ... sdk dirs and files
>         DartEditor.app
>         features/
>         ... etc ...
>
> * create a .options file in the editor directory with the "frog" options
> set true
>     seehttp://code.google.com/p/dart/source/browse/branches/bleeding_edge/da...
>
>     com.google.dart.tools.core/build/frog = true
>     com.google.dart.tools.core/deploy/frog = true
>     ### and optionally ...
>     com.google.dart.tools.core/debug/frog = true
>
> * launch Dart Editor from the command line with the debug flag and path to
> the options file
>
>     DartEditor -debug /path/to/.options
>
> Its still a bit rough, but ...
>

Fantastic - Thanks for the tip

Lars Tackmann

unread,
Jan 10, 2012, 6:38:25 AM1/10/12
to General Dart Discussion


On Jan 10, 3:43 am, Ross Smith <ross.m.sm...@googlemail.com> wrote:
> +5 for the refactoring also - for now i'd settle for being able to
> delete a file though :)
>

Agreed - if I could just delete and move a file I would be happy (its
ok for now if moving/renaming a file does not actually update the
references in the code, its still way better than the current
procedure of doing it in a terminal and reloading the DartEditor).

John Evans

unread,
Jan 12, 2012, 9:20:19 AM1/12/12
to mi...@dartlang.org, Lars Tackmann
This is working like a champ.  Thanks!

Ross Smith

unread,
Jan 14, 2012, 3:48:06 PM1/14/12
to General Dart Discussion
Has anyone succeeded to get this working on Windows?

I'm using:

dart-sdk (win32) : revision 3325
Dart Editor (win32_x86_64) build 3325

I've followed the instructions and put a frog.options file in my Dart
Editor directory (next to the .exe) w/ the following content:

com.google.dart.tools.core/build/frog = true
com.google.dart.tools.core/deploy/frog = true
com.google.dart.tools.core/debug/frog = true

com.google.dart.tools.core/platform/name = frog
com.google.dart.tools.core/libraries/embedded =
com.google.dart.tools.core/libraries/path = dart-sdk/lib

When I launch the Dart Editor (with -debug frog.options command line)
and open the Sunflower sample, for instance, I get a compile error:

File not found: lib/html/html.dart

any ideas?

Calamitous

unread,
Jan 16, 2012, 2:21:46 PM1/16/12
to General Dart Discussion
same problem here.

I tried
#import('dart:json');
and it says:
- File not found: lib/json/json_frog.dart

(even with the new build 3331)

Ross Smith

unread,
Jan 16, 2012, 2:31:46 PM1/16/12
to General Dart Discussion
I also got a reply from Vadim saying he encountered the same problem
on Windows.  I'll try out 3331 myself tonight but it sounds like i'll
run into the same problem as you...

Is anyone smoke testing these editor builds on Windows?

With 3101 (last announced release) I could not even compile w/ the
built in compiler - that is why I went to 3325, which works with the
built in compiler but which produces ginormous JS :)

thx!

Emily Fortuna

unread,
Jan 19, 2012, 4:42:26 PM1/19/12
to Dan Grove, General Dart Discussion
Yes. The change at http://code.google.com/p/dart/source/detail?r=3418
should fix the "file not found" errors on Windows. Let me know if you
encounter other errors with this, since I'm not yet testing in
combination with the dart editor. I'm actively working on addressing
the Windows build issues.
Emily

On Wed, Jan 18, 2012 at 9:52 PM, Dan Grove <dgr...@google.com> wrote:
> Hi Emily - does http://code.google.com/p/dart/source/detail?r=3418 address this?

Calamitous

unread,
Jan 20, 2012, 7:30:36 AM1/20/12
to General Dart Discussion
tried it with a build from "latest", the red "point" is gone, but when
executing it states the following error:

Error: line 1 pos 1: library handler failed: Do not know how to load
'dart:html'
#import ('dart:html');
^

(same with "dart:json",...)
additionally any further try to start the script is prevented by the
disabled "launch in dart server" button.

Manuel

On Jan 19, 10:42 pm, Emily Fortuna <efort...@google.com> wrote:
> Yes. The change athttp://code.google.com/p/dart/source/detail?r=3418
> should fix the "file not found" errors on Windows. Let me know if you
> encounter other errors with this, since I'm not yet testing in
> combination with the dart editor. I'm actively working on addressing
> the Windows build issues.
> Emily
>
>
>
>
>
>
>
> On Wed, Jan 18, 2012 at 9:52 PM, Dan Grove <dgr...@google.com> wrote:
> > Hi Emily - doeshttp://code.google.com/p/dart/source/detail?r=3418address this?

Ross Smith

unread,
Jan 20, 2012, 11:39:56 AM1/20/12
to General Dart Discussion
Hi Emily,

This is working for me in build 3456! I get 'no main method
specified' for my libraries (I don't get that w/ the other compiler?)
but it still compiles my js and it runs nicely in the browser.

Thank you for the support,

-Ross

Devon Carew

unread,
Jan 20, 2012, 11:51:48 AM1/20/12
to Ross Smith, General Dart Discussion
This is working for me in build 3456!  I get 'no main method
specified' for my libraries (I don't get that w/ the other compiler?)

You're running into http://code.google.com/p/dart/issues/detail?id=1203. It's on our radar, and we should have a fix out in the near future. Cheers!

Devon



--
Devon Carew
Software Engineer
Google, Inc.

Reply all
Reply to author
Forward
0 new messages