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

Issue 1416093007: Experimental `getDiagnostics` request (#24480). (Closed)

Created:
5 years, 1 month ago by pquitslund
Modified:
5 years, 1 month ago
CC:
reviews_dartlang.org, devoncarew, sethladd
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Experimental `getDiagnostics` request (#24480). * Adds `getDiagnostics` request with *very* provisional diagnostics payload (primary goal here is to plumb this fully through and iterate). * Updates codegenerator to skip doc generation for experimental APIs. Additional context here: https://github.com/dart-lang/sdk/issues/24480. BUG=24480 R=brianwilkerson@google.com, scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/82e83bb34d913c1ba171d174e66e60b95bea492a

Patch Set 1 #

Total comments: 6

Patch Set 2 : Removed debug out. #

Total comments: 14

Patch Set 3 : Review fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+863 lines, -121 lines) Patch
M pkg/analysis_server/doc/api.html View 2 chunks +2 lines, -0 lines 0 comments Download
M pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart View 1 2 2 chunks +278 lines, -0 lines 0 comments Download
M pkg/analysis_server/lib/src/domain_experimental.dart View 1 2 2 chunks +66 lines, -22 lines 0 comments Download
A pkg/analysis_server/test/domain_experimental_test.dart View 1 2 1 chunk +76 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/integration/integration_test_methods.dart View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/integration/protocol_matchers.dart View 1 2 2 chunks +37 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/test_all.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M pkg/analysis_server/tool/spec/api.dart View 18 chunks +45 lines, -26 lines 0 comments Download
M pkg/analysis_server/tool/spec/from_html.dart View 1 4 chunks +10 lines, -6 lines 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/AddContentOverlay.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/AnalysisError.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/AnalysisErrorFixes.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/AnalysisErrorSeverity.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/AnalysisErrorType.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/AnalysisOptions.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/AnalysisService.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/AnalysisStatus.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/ChangeContentOverlay.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/CompletionSuggestion.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/CompletionSuggestionKind.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
A pkg/analysis_server/tool/spec/generated/java/types/ContextData.java View 1 2 1 chunk +195 lines, -0 lines 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/Element.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/ElementKind.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/ExecutableFile.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/ExecutableKind.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/ExecutionService.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/ExtractLocalVariableFeedback.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/ExtractLocalVariableOptions.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/ExtractMethodFeedback.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/ExtractMethodOptions.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/FileKind.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/FoldingKind.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/FoldingRegion.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/GeneralAnalysisService.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/HighlightRegion.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/HighlightRegionType.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/HoverInformation.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/ImplementedClass.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/ImplementedMember.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/InlineLocalVariableFeedback.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/InlineMethodFeedback.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/InlineMethodOptions.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/LinkedEditGroup.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/LinkedEditSuggestion.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/LinkedEditSuggestionKind.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/Location.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/MoveFileOptions.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/NavigationRegion.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/NavigationTarget.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/Occurrences.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/Outline.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/OverriddenMember.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/OverrideMember.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/Position.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/PubStatus.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/RefactoringFeedback.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/RefactoringKind.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/RefactoringMethodParameter.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/RefactoringMethodParameterKind.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/RefactoringOptions.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/RefactoringProblem.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/RefactoringProblemSeverity.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/RemoveContentOverlay.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/RenameFeedback.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/RenameOptions.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/RequestError.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/RequestErrorCode.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/SearchResult.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/SearchResultKind.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/ServerService.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/SourceChange.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/SourceEdit.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/SourceFileEdit.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/generated/java/types/TypeHierarchyItem.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/tool/spec/spec_input.html View 1 2 2 chunks +56 lines, -0 lines 0 comments Download
M pkg/analysis_server/tool/spec/to_html.dart View 2 chunks +6 lines, -1 line 0 comments Download
M pkg/analyzer/lib/src/codegen/tools.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
pquitslund
5 years, 1 month ago (2015-11-05 21:02:28 UTC) #2
scheglov
lgtm https://codereview.chromium.org/1416093007/diff/1/pkg/analysis_server/tool/spec/from_html.dart File pkg/analysis_server/tool/spec/from_html.dart (right): https://codereview.chromium.org/1416093007/diff/1/pkg/analysis_server/tool/spec/from_html.dart#newcode529 pkg/analysis_server/tool/spec/from_html.dart:529: print('exp'); Debug code? https://codereview.chromium.org/1416093007/diff/1/pkg/analysis_server/tool/spec/spec_input.html File pkg/analysis_server/tool/spec/spec_input.html (right): https://codereview.chromium.org/1416093007/diff/1/pkg/analysis_server/tool/spec/spec_input.html#newcode2489 ...
5 years, 1 month ago (2015-11-05 21:22:22 UTC) #3
pquitslund
Thanks! https://codereview.chromium.org/1416093007/diff/1/pkg/analysis_server/tool/spec/from_html.dart File pkg/analysis_server/tool/spec/from_html.dart (right): https://codereview.chromium.org/1416093007/diff/1/pkg/analysis_server/tool/spec/from_html.dart#newcode529 pkg/analysis_server/tool/spec/from_html.dart:529: print('exp'); On 2015/11/05 21:22:22, scheglov wrote: > Debug ...
5 years, 1 month ago (2015-11-05 22:28:54 UTC) #4
Brian Wilkerson
LGTM https://codereview.chromium.org/1416093007/diff/20001/pkg/analysis_server/lib/src/domain_experimental.dart File pkg/analysis_server/lib/src/domain_experimental.dart (right): https://codereview.chromium.org/1416093007/diff/20001/pkg/analysis_server/lib/src/domain_experimental.dart#newcode51 pkg/analysis_server/lib/src/domain_experimental.dart:51: exceptions.add(cacheEntry.exception.toString()); Each exception will typically be recorded in ...
5 years, 1 month ago (2015-11-05 22:43:44 UTC) #5
pquitslund
Thank you! https://codereview.chromium.org/1416093007/diff/20001/pkg/analysis_server/lib/src/domain_experimental.dart File pkg/analysis_server/lib/src/domain_experimental.dart (right): https://codereview.chromium.org/1416093007/diff/20001/pkg/analysis_server/lib/src/domain_experimental.dart#newcode51 pkg/analysis_server/lib/src/domain_experimental.dart:51: exceptions.add(cacheEntry.exception.toString()); On 2015/11/05 22:43:43, Brian Wilkerson wrote: ...
5 years, 1 month ago (2015-11-05 22:58:11 UTC) #6
devoncarew
https://codereview.chromium.org/1416093007/diff/20001/pkg/analysis_server/tool/spec/spec_input.html File pkg/analysis_server/tool/spec/spec_input.html (right): https://codereview.chromium.org/1416093007/diff/20001/pkg/analysis_server/tool/spec/spec_input.html#newcode1962 pkg/analysis_server/tool/spec/spec_input.html:1962: <domain name="experimental" experimental="true"> experimental experimental=true seems redundant. I'm hoping ...
5 years, 1 month ago (2015-11-05 23:04:00 UTC) #8
pquitslund
On 2015/11/05 22:58:11, pquitslund wrote: > Thank you! > > https://codereview.chromium.org/1416093007/diff/20001/pkg/analysis_server/lib/src/domain_experimental.dart > File pkg/analysis_server/lib/src/domain_experimental.dart (right): ...
5 years, 1 month ago (2015-11-05 23:04:48 UTC) #9
pquitslund
Committed patchset #3 (id:40001) manually as 82e83bb34d913c1ba171d174e66e60b95bea492a (presubmit successful).
5 years, 1 month ago (2015-11-05 23:05:25 UTC) #10
pquitslund
5 years, 1 month ago (2015-11-05 23:16:49 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/1416093007/diff/20001/pkg/analysis_server/too...
File pkg/analysis_server/tool/spec/spec_input.html (right):

https://codereview.chromium.org/1416093007/diff/20001/pkg/analysis_server/too...
pkg/analysis_server/tool/spec/spec_input.html:1962: <domain name="experimental"
experimental="true">
On 2015/11/05 23:04:00, devoncarew wrote:
> experimental experimental=true seems redundant. I'm hoping this API or
something
> like it graduates to stable at some point so we can consume it w/o guarding
> against it not existing.

Absolutely.  When we're done iterating, we should talk about promoting.

> Perhaps move the API to a 'diagnostics' domain? Assuming we think there will
be
> enough content to justify its own domain.

Let's see how this goes.  Totally open to that.

https://codereview.chromium.org/1416093007/diff/20001/pkg/analysis_server/too...
pkg/analysis_server/tool/spec/spec_input.html:1971: <request
method="getDiagnostics">
On 2015/11/05 23:04:00, devoncarew wrote:
> I assume experimental=true is implied here, based on the parent domain? I
wonder
> if there's value in declaring it here as well, for in case the parent is
> refactored.

Right.  Experimentalness passes down.

Powered by Google App Engine
This is Rietveld 408576698