Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Issue 1486663003: Ensure that a complete library element has constants evaluated (issue 24890) (Closed)

Created:
5 years ago by Brian Wilkerson
Modified:
5 years ago
CC:
reviews_dartlang.org, danrubel
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 6

Patch Set 2 : Updated after breaking changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -20 lines) Patch
M pkg/analysis_server/lib/src/analysis_server.dart View 1 2 chunks +2 lines, -1 line 0 comments Download
M pkg/analysis_server/lib/src/services/completion/dart/completion_manager.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/lib/src/services/completion/dart_completion_cache.dart View 1 4 chunks +4 lines, -3 lines 0 comments Download
M pkg/analysis_server/lib/src/services/correction/fix_internal.dart View 1 3 chunks +3 lines, -2 lines 0 comments Download
M pkg/analyzer/lib/src/context/context.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/incremental_resolver.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analyzer/lib/src/plugin/engine_plugin.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analyzer/lib/src/task/dart.dart View 1 8 chunks +84 lines, -7 lines 0 comments Download
M pkg/analyzer/test/src/context/context_test.dart View 1 3 chunks +0 lines, -3 lines 0 comments Download
M pkg/analyzer/test/src/task/dart_test.dart View 1 3 chunks +28 lines, -0 lines 0 comments Download
M pkg/analyzer/tool/task_dependency_graph/tasks.dot View 4 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
Brian Wilkerson
This is the second attempt at this fix. (Last time I forgot to run tests ...
5 years ago (2015-11-30 19:42:48 UTC) #2
scheglov
On 2015/11/30 19:42:48, Brian Wilkerson wrote: > This is the second attempt at this fix. ...
5 years ago (2015-11-30 19:57:09 UTC) #3
Paul Berry
lgtm https://codereview.chromium.org/1486663003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/1486663003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode1325 pkg/analysis_server/lib/src/analysis_server.dart:1325: if (context.getResult(librarySource, LIBRARY_ELEMENT8) == null) { I'm also ...
5 years ago (2015-11-30 20:44:35 UTC) #4
danrubel
LGTM
5 years ago (2015-11-30 20:56:10 UTC) #6
Brian Wilkerson
https://codereview.chromium.org/1486663003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/1486663003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode1325 pkg/analysis_server/lib/src/analysis_server.dart:1325: if (context.getResult(librarySource, LIBRARY_ELEMENT8) == null) { > I'm also ...
5 years ago (2015-11-30 21:35:39 UTC) #7
Brian Wilkerson
PTAL. Not much has changed, but it has been updated some as a result of ...
5 years ago (2015-12-11 19:50:10 UTC) #8
scheglov
LGTM
5 years ago (2015-12-11 19:52:39 UTC) #9
danrubel
LGTM
5 years ago (2015-12-11 20:05:56 UTC) #10
eernst
LGTM - just adding a drive by comment. https://codereview.chromium.org/1486663003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/1486663003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode1325 pkg/analysis_server/lib/src/analysis_server.dart:1325: if ...
5 years ago (2015-12-14 10:01:39 UTC) #12
Brian Wilkerson
https://codereview.chromium.org/1486663003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/1486663003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode1325 pkg/analysis_server/lib/src/analysis_server.dart:1325: if (context.getResult(librarySource, LIBRARY_ELEMENT8) == null) { > ... it ...
5 years ago (2015-12-14 15:38:27 UTC) #13
eernst
On 2015/12/14 15:38:27, Brian Wilkerson wrote: > https://codereview.chromium.org/1486663003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart > File pkg/analysis_server/lib/src/analysis_server.dart (right): > > https://codereview.chromium.org/1486663003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode1325 ...
5 years ago (2015-12-14 15:43:53 UTC) #14
Brian Wilkerson
Committed patchset #2 (id:20001) manually as 1f3dabd9c7ef391c468d2697294695194a67c569 (presubmit successful).
5 years ago (2015-12-14 15:51:11 UTC) #16
eernst
5 years ago (2015-12-16 17:33:44 UTC) #17
Message was sent while issue was closed.
On 2015/12/14 15:51:11, Brian Wilkerson wrote:
> Committed patchset #2 (id:20001) manually as
> 1f3dabd9c7ef391c468d2697294695194a67c569 (presubmit successful).

I tried this:

  $ git clone 'https://github.com/dart-lang/sdk'
  $ cd sdk
  $ git co 1f3dabd9c7ef391c468d2697294695194a67c569
  $ srcdir=`pwd`

Then I used the output from `echo "path: $srcdir"` in a 
'dependency_overrides:' section in 'pubspec.yaml'.

This still produces a failure in almost all transformed-code tests, and they all
fail with a 'The null object does not have a method ..' (typically the method is
`classMirrorForInstance` or `classMirrorForType`).

Focusing on some individual test cases, we still have the `final _data = {};`,
which means that there is no reflectable data available (so all operations will
fail), and this is still caused by evaluation of constants in the transformer
which yields null (where analyzer 0.26.1+14 provided the expected, non-null
values).

Powered by Google App Engine
This is Rietveld 408576698