Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apidocs no longer working #1830

Closed
sethladd opened this issue Feb 23, 2012 · 3 comments
Closed

apidocs no longer working #1830

sethladd opened this issue Feb 23, 2012 · 3 comments
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.

Comments

@sethladd
Copy link
Contributor

Running ./apidocs from a recent update results in a fatal error:

~/Code/Dart-git/dart/utils/apidoc (master)> ./apidoc
../../client/html/release/htmlimpl.dart:18155:12: warning: type "dom.FileReader" is not assignable to "html.FileReader"
    return new dom.FileReader();
           ^^^^^^^^^^^^^^^^^^^^
Compilation succeded. Code generated in: ../dartdoc/static/client-static.js
Compiled client-static.dart.
../../client/html/release/htmlimpl.dart:18155:12: warning: type "dom.FileReader" is not assignable to "html.FileReader"
    return new dom.FileReader();
           ^^^^^^^^^^^^^^^^^^^^
Compilation succeded. Code generated in: ../dartdoc/static/client-live-nav.js
Compiled client-live-nav.dart.
../apidoc/html_diff.dart:306:20: warning: cannot find "body" on "Statement"
      final body = stmt.body.filter((s) => !_ignorableStatement(s));
                   ^^^^^^^^^
../apidoc/html_diff.dart:308:29: warning: cannot find "body" on "Statement"
      return _getDomMembers(stmt.body[0], domTypes);
                            ^^^^^^^^^
../apidoc/html_diff.dart:310:40: warning: cannot find "value" on "Statement"
      return _domMembersFromExpression(stmt.value, domTypes);
                                       ^^^^^^^^^^
../apidoc/html_diff.dart:312:40: warning: cannot find "body" on "Statement"
      return _domMembersFromExpression(stmt.body, domTypes);
                                       ^^^^^^^^^
../apidoc/html_diff.dart:314:29: warning: cannot find "body" on "Statement"
      return _getDomMembers(stmt.body, domTypes);
                            ^^^^^^^^^
../apidoc/html_diff.dart:316:38: warning: cannot find "trueBranch" on "Statement"
      final members = _getDomMembers(stmt.trueBranch, domTypes);
                                     ^^^^^^^^^^^^^^^
../apidoc/html_diff.dart:317:37: warning: cannot find "falseBranch" on "Statement"
      members.addAll(_getDomMembers(stmt.falseBranch, domTypes));
                                    ^^^^^^^^^^^^^^^^
../apidoc/html_diff.dart:259:27: warning: cannot find "body" on "Definition"
    return _getDomMembers(htmlMember.definition.body, domTypes);
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^
../apidoc/html_diff.dart:353:37: warning: cannot find "op" on "Expression"
    if (expr is BinaryExpression && expr.op.kind == TokenKind.ASSIGN) {
                                    ^^^^^^^
../apidoc/html_diff.dart:354:40: warning: cannot find "x" on "Expression"
      return _domMembersFromExpression(expr.x, domTypes);
                                       ^^^^^^
../apidoc/html_diff.dart:356:11: warning: cannot find "target" on "Expression"
      if (expr.target is DotExpression && expr.target.self is VarExpression &&
          ^^^^^^^^^^^
../apidoc/html_diff.dart:356:43: warning: cannot find "target" on "Expression"
      if (expr.target is DotExpression && expr.target.self is VarExpression &&
                                          ^^^^^^^^^^^
../apidoc/html_diff.dart:357:11: warning: cannot find "target" on "Expression"
          expr.target.self.name.name == 'LevelDom' &&
          ^^^^^^^^^^^
../apidoc/html_diff.dart:358:12: warning: cannot find "target" on "Expression"
          (expr.target.name.name.startsWith('wrap') ||
           ^^^^^^^^^^^
../apidoc/html_diff.dart:359:12: warning: cannot find "target" on "Expression"
           expr.target.name.name == 'unwrap')) {
           ^^^^^^^^^^^
../apidoc/html_diff.dart:360:42: warning: cannot find "arguments" on "Expression"
        return _domMembersFromExpression(expr.arguments[0].value, domTypes);
                                         ^^^^^^^^^^^^^^
../apidoc/html_diff.dart:362:40: warning: cannot find "target" on "Expression"
      return _domMembersFromExpression(expr.target, domTypes);
                                       ^^^^^^^^^^^
../apidoc/html_diff.dart:364:11: warning: cannot find "self" on "Expression"
      if (expr.self is NewExpression && expr.name.name == '_wrap' &&
          ^^^^^^^^^
../apidoc/html_diff.dart:364:41: warning: cannot find "name" on "Expression"
      if (expr.self is NewExpression && expr.name.name == '_wrap' &&
                                        ^^^^^^^^^
../apidoc/html_diff.dart:365:11: warning: cannot find "self" on "Expression"
          expr.self.arguments.length == 1) {
          ^^^^^^^^^
../apidoc/html_diff.dart:366:42: warning: cannot find "self" on "Expression"
        return _domMembersFromExpression(expr.self.arguments[0].value,
                                         ^^^^^^^^^
../apidoc/html_diff.dart:368:18: warning: cannot find "self" on "Expression"
      } else if (expr.self is VarExpression && expr.self.name.name == '_ptr') {
                 ^^^^^^^^^
../apidoc/html_diff.dart:368:48: warning: cannot find "self" on "Expression"
      } else if (expr.self is VarExpression && expr.self.name.name == '_ptr') {
                                               ^^^^^^^^^
../apidoc/html_diff.dart:369:33: warning: cannot find "name" on "Expression"
        return _membersFromName(expr.name.name, domTypes);
                                ^^^^^^^^^
../apidoc/html_diff.dart:371:47: warning: cannot find "self" on "Expression"
      final bases = _domMembersFromExpression(expr.self, domTypes);
                                              ^^^^^^^^^
../apidoc/html_diff.dart:374:42: warning: cannot find "name" on "Expression"
          return base.returnType.members[expr.name.name];
                                         ^^^^^^^^^
../apidoc/html_diff.dart:376:41: warning: cannot find "arguments" on "Expression"
    } else if (expr is NewExpression && expr.arguments.length == 1) {
                                        ^^^^^^^^^^^^^^
../apidoc/html_diff.dart:377:40: warning: cannot find "arguments" on "Expression"
      return _domMembersFromExpression(expr.arguments[0].value, domTypes);
                                       ^^^^^^^^^^^^^^
../apidoc/html_diff.dart:125:45: warning: cannot find "getter" on "Member"
      if (implMember.canGet) _addMemberDiff(implMember.getter, domTypes);
                                            ^^^^^^^^^^^^^^^^^
../apidoc/html_diff.dart:126:45: warning: cannot find "setter" on "Member"
      if (implMember.canSet) _addMemberDiff(implMember.setter, domTypes);
                                            ^^^^^^^^^^^^^^^^^
../apidoc/html_diff.dart:331:32: warning: cannot find "body" on "Statement"
      return Collections.every(stmt.body, (s) => _ignorableStatement(s));
                               ^^^^^^^^^
../apidoc/html_diff.dart:333:34: warning: cannot find "body" on "Statement"
      return _ignorableStatement(stmt.body);
                                 ^^^^^^^^^
../apidoc/html_diff.dart:335:34: warning: cannot find "trueBranch" on "Statement"
      return _ignorableStatement(stmt.trueBranch) &&
                                 ^^^^^^^^^^^^^^^
../apidoc/html_diff.dart:336:29: warning: cannot find "falseBranch" on "Statement"
        _ignorableStatement(stmt.falseBranch);
                            ^^^^^^^^^^^^^^^^
../apidoc/html_diff.dart:338:14: warning: cannot find "value" on "Statement"
      return stmt.value == null || stmt.value is ThisExpression;
             ^^^^^^^^^^
../apidoc/html_diff.dart:338:36: warning: cannot find "value" on "Statement"
      return stmt.value == null || stmt.value is ThisExpression;
                                   ^^^^^^^^^^
Parsing MDN data...
Cross-referencing dart:dom and dart:html...

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
NoSuchMethodException : method not found: 'operator []'
Receiver: [object Object]
Arguments: [AnchorElementWrappingImplementation]
    at FactoryMap.<anonymous> (evalmachine.<anonymous>:34:3)
    at HtmlDiff.htmlImplToHtmlMember (evalmachine.<anonymous>:10355:37)
    at HtmlDiff._addMemberDiff (evalmachine.<anonymous>:10328:25)
    at evalmachine.<anonymous>:10316:20
    at native
    at Array.forEach (native)
    at HtmlDiff.run (evalmachine.<anonymous>:10315:13)
    at main (evalmachine.<anonymous>:10710:18)
    at evalmachine.<anonymous>:10748:1
    at main (/Users/sethladd/Code/Dart-git/dart/frog/minfrog:14786:10)

@sethladd
Copy link
Contributor Author

Adding to Area-Build as best guess.

@munificent
Copy link
Member

Should be fixed now.


Added Fixed label.

@anders-sandholm
Copy link
Contributor

Removed Area-Build label.
Added Area-Infrastructure label.

@sethladd sethladd added Type-Defect area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes. labels Nov 20, 2013
copybara-service bot pushed a commit that referenced this issue Jan 10, 2023
…_server, http_parser, logging, mockito, path, pool, shelf, source_map_stack_trace, sse, stream_channel, term_glyph, test, typed_data, watcher, web_socket_channel, webdev, webkit_inspection_protocol, yaml

Revisions updated by `dart tools/rev_sdk_deps.dart`.

cli_util (https://github.com/dart-lang/cli_util/compare/5a8e8ee..32bc077):
  32bc077  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#73)

clock (https://github.com/dart-lang/clock/compare/6b8b7bf..65e8a13):
  65e8a13  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#42)

csslib (https://github.com/dart-lang/csslib/compare/d776535..7054945):
  7054945  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#157)

dartdoc (https://github.com/dart-lang/dartdoc/compare/29a1bbf..c4ab682):
  c4ab6824  2023-01-10  Sam Rawlins  Regenerate so latest analyzer is happy (#3293)

fixnum (https://github.com/dart-lang/fixnum/compare/714381c..71f0d4d):
  71f0d4d  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#103)

glob (https://github.com/dart-lang/glob/compare/7adf833..4579281):
  4579281  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#68)

http_multi_server (https://github.com/dart-lang/http_multi_server/compare/beb40a7..cce5080):
  cce5080  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#48)

http_parser (https://github.com/dart-lang/http_parser/compare/16a4f34..6f73e4a):
  6f73e4a  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#66)

logging (https://github.com/dart-lang/logging/compare/b525d5c..34ed68f):
  34ed68f  2023-01-09  Kevin Moore  Move to new analyzer language settings (#126)

mockito (https://github.com/dart-lang/mockito/compare/942dd03..9cc958a):
  9cc958a  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts

path (https://github.com/dart-lang/path/compare/1299791..9768908):
  9768908  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#133)

pool (https://github.com/dart-lang/pool/compare/713e631..ad4e2a7):
  ad4e2a7  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#60)

shelf (https://github.com/dart-lang/shelf/compare/32e342d..a44e95e):
  a44e95e  2023-01-10  Kevin Moore  Fix doc comment references (#323)

source_map_stack_trace (https://github.com/dart-lang/source_map_stack_trace/compare/e5f9564..adea3e5):
  adea3e5  2023-01-09  Sam Rawlins  Migrate no-implicit-casts to strict-casts (#32)

sse (https://github.com/dart-lang/sse/compare/3c37edb..be426a2):
  be426a2  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#74)

stream_channel (https://github.com/dart-lang/stream_channel/compare/0a7800a..3b99268):
  3b99268  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#84)

term_glyph (https://github.com/dart-lang/term_glyph/compare/2bf4594..8cd9318):
  8cd9318  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#31)

test (https://github.com/dart-lang/test/compare/3415089..932a652):
  932a652b  2023-01-09  Nate Bosch  Add a Map operator[] extension (#1830)
  1f2e963e  2023-01-09  Nate Bosch  Add Future.doesNotComplete condition (#1827)

typed_data (https://github.com/dart-lang/typed_data/compare/dbf81a7..9c209b9):
  9c209b9  2023-01-09  Sam Rawlins  Migrate no-implicit-casts to strict-casts (#58)

watcher (https://github.com/dart-lang/watcher/compare/2e0db71..3b49c7e):
  3b49c7e  2023-01-09  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#134)

web_socket_channel (https://github.com/dart-lang/web_socket_channel/compare/ebd0fe9..28d7b82):
  28d7b82  2023-01-10  Kevin Moore  Fix CI link in readme (#248)
  c6ce895  2023-01-09  Sam Rawlins  Update analysis_options.yaml (#247)

webdev (https://github.com/dart-lang/webdev/compare/49f97b8..094ee97):
  094ee97  2023-01-10  Anna Gringauze  Add back setExceptionPauseMode (#1871)
  2e65ddf  2023-01-10  Anna Gringauze  Prepare for dart 3.0 alpha breaking changes (#1880)
  2e2587a  2023-01-10  Elliott Brooks (she/her)  Add hotfix instructions to DWDS (#1876)
  fe39123  2023-01-10  Elliott Brooks (she/her)  Re-enable `reload_tests` (#1877)
  e71c0e3  2023-01-09  Anna Gringauze  Fix crash on processing devtools event (#1875)

webkit_inspection_protocol (https://github.com/google/webkit_inspection_protocol.dart/compare/ddb624c..15244ff):
  15244ff  2023-01-09  Kevin Moore  Add cron to CI (#97)

yaml (https://github.com/dart-lang/yaml/compare/02be51e..b2fce6c):
  b2fce6c  2023-01-10  Sam Rawlins  Migrate from no-implicit-casts to strict-casts (#134)

Change-Id: I4fb257fe7c697fab562f4d18e4ea50c5903b4cd8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/278807
Auto-Submit: Devon Carew <devoncarew@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.
Projects
None yet
Development

No branches or pull requests

3 participants