Discussion:
[dart-misc] dart2dart (or similar)
Istvan Soos
2016-08-24 21:42:59 UTC
Permalink
As dart2dart (and dart2js --output-type=dart) is no longer supported (and
the version in 1.18 does generate buggy dart output), is there a tool in
the SDK that could validate the consistency of a Dart server app? With
dart2dart it was possible to 'compile' it together, and if there was an
obvious mistake, the compiler caught it.

The next candidate would be along the lines of:
find . |grep dart$ | xargs -n 1 dartanalyzer

However, it won't fly well with 'part of' files, and filtering for those is
not straightforward.
Any thoughts?

Regards,
Istvan
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Filip Hracek' via Dart Misc
2016-08-24 21:46:49 UTC
Permalink
I'm probably missing something, but why don't you just run:
dartanalyzer .


Filip Hráček
https://google.com/+filiphracek
Post by Istvan Soos
As dart2dart (and dart2js --output-type=dart) is no longer supported (and
the version in 1.18 does generate buggy dart output), is there a tool in
the SDK that could validate the consistency of a Dart server app? With
dart2dart it was possible to 'compile' it together, and if there was an
obvious mistake, the compiler caught it.
find . |grep dart$ | xargs -n 1 dartanalyzer
However, it won't fly well with 'part of' files, and filtering for those
is not straightforward.
Any thoughts?
Regards,
Istvan
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'William Hesse' via Dart Misc
2016-08-24 21:47:57 UTC
Permalink
Running Dart analyzer on the main file of your application follows all the
import statements and includes, to check the entire application as it would
be loaded by the standalone Dart VM. You don't need to process all the
files separately.
Post by Istvan Soos
As dart2dart (and dart2js --output-type=dart) is no longer supported (and
the version in 1.18 does generate buggy dart output), is there a tool in
the SDK that could validate the consistency of a Dart server app? With
dart2dart it was possible to 'compile' it together, and if there was an
obvious mistake, the compiler caught it.
find . |grep dart$ | xargs -n 1 dartanalyzer
However, it won't fly well with 'part of' files, and filtering for those
is not straightforward.
Any thoughts?
Regards,
Istvan
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Istvan Soos
2016-08-24 21:57:34 UTC
Permalink
Running 'dartanalyzer bin/main.dart' didn't traverse to all of my imports.
'dartanalyzer .' worked, thanks, I was not aware of that.

Istvan

On Wed, Aug 24, 2016 at 11:47 PM, 'William Hesse' via Dart Misc
Post by 'William Hesse' via Dart Misc
Running Dart analyzer on the main file of your application follows all the
import statements and includes, to check the entire application as it would
be loaded by the standalone Dart VM. You don't need to process all the
files separately.
Post by Istvan Soos
As dart2dart (and dart2js --output-type=dart) is no longer supported (and
the version in 1.18 does generate buggy dart output), is there a tool in the
SDK that could validate the consistency of a Dart server app? With dart2dart
it was possible to 'compile' it together, and if there was an obvious
mistake, the compiler caught it.
find . |grep dart$ | xargs -n 1 dartanalyzer
However, it won't fly well with 'part of' files, and filtering for those
is not straightforward.
Any thoughts?
Regards,
Istvan
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to a topic in the
Google Groups "Dart Misc" group.
To unsubscribe from this topic, visit
https://groups.google.com/a/dartlang.org/d/topic/misc/NlQEtjaXzw0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Harry Terkelsen' via Dart Misc
2016-08-24 21:59:31 UTC
Permalink
In order to show warnings from package imports you need to do:

dartanalyzer --package-warnings bin/main.dart
Post by Istvan Soos
Running 'dartanalyzer bin/main.dart' didn't traverse to all of my imports.
'dartanalyzer .' worked, thanks, I was not aware of that.
Istvan
On Wed, Aug 24, 2016 at 11:47 PM, 'William Hesse' via Dart Misc
Post by 'William Hesse' via Dart Misc
Running Dart analyzer on the main file of your application follows all
the
Post by 'William Hesse' via Dart Misc
import statements and includes, to check the entire application as it
would
Post by 'William Hesse' via Dart Misc
be loaded by the standalone Dart VM. You don't need to process all the
files separately.
Post by Istvan Soos
As dart2dart (and dart2js --output-type=dart) is no longer supported
(and
Post by 'William Hesse' via Dart Misc
Post by Istvan Soos
the version in 1.18 does generate buggy dart output), is there a tool
in the
Post by 'William Hesse' via Dart Misc
Post by Istvan Soos
SDK that could validate the consistency of a Dart server app? With
dart2dart
Post by 'William Hesse' via Dart Misc
Post by Istvan Soos
it was possible to 'compile' it together, and if there was an obvious
mistake, the compiler caught it.
find . |grep dart$ | xargs -n 1 dartanalyzer
However, it won't fly well with 'part of' files, and filtering for those
is not straightforward.
Any thoughts?
Regards,
Istvan
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
Post by 'William Hesse' via Dart Misc
Post by Istvan Soos
---
You received this message because you are subscribed to the Google
Groups
Post by 'William Hesse' via Dart Misc
Post by Istvan Soos
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
an
Post by 'William Hesse' via Dart Misc
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
Post by 'William Hesse' via Dart Misc
---
You received this message because you are subscribed to a topic in the
Google Groups "Dart Misc" group.
To unsubscribe from this topic, visit
https://groups.google.com/a/dartlang.org/d/topic/misc/NlQEtjaXzw0/unsubscribe
.
Post by 'William Hesse' via Dart Misc
To unsubscribe from this group and all its topics, send an email to
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...