adam-singer / dart-carte-du-jour

Pub documentation generation system
www.dartdocs.org
Other
25 stars 8 forks source link

It is not possible to tell if this is caused by a problem in your program or not. #101

Open mezoni opened 8 years ago

mezoni commented 8 years ago

Here is an example of output of this software. The same log entries can be found in buildlogs failures on http://www.dartdocs.org

packages/unsafe_extension/src/unsafe_extension.dart:889:14:
Internal Error: The compiler crashed when compiling this element.
static int _getPageSize() native 'Unsafe_GetPageSize';
           ^^^^^^^^^^^^
The compiler is broken.
When compiling the above element, the compiler crashed. It is not
possible to tell if this is caused by a problem in your program or
not. Regardless, the compiler should not crash.

Author of this software (dart-carte-du-jour) really think that It is not possible to tell if this is caused by a problem in your program or not?

I think that this is obvious that exist only one problem:

mezoni commented 8 years ago

Too many packages on the official Google Dart website not a have documentation only because the software which used for generating this documentation has a lot of failures in builds only because uses incorrect approach to implementing such software.

I would not touch this question, if the problem does not touch official Google Dart website for documenation of Google Dart packages (which is actually broken).

whesse commented 8 years ago

The error message is coming from the Dart compiler, not from the authors of this package. Many tools use the Dart compiler, not just dart2js compilation. So dartdocgen may be hitting this error.

mezoni commented 8 years ago

@whesse

In your place, I would first read the text of the issue before giving an answer.

Author of this software uses a compiler which not intended for using in this software because you can understand this from that issue

Why need use dart2js if this compiler are limited in features and does not support all language features?