{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/34646","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/34646/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/34646/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/34646/events","html_url":"https://github.com/dart-lang/sdk/issues/34646","id":366016316,"node_id":"MDU6SXNzdWUzNjYwMTYzMTY=","number":34646,"title":"Evaluating an expression @ a breakpoint causes analysis to fall down.","user":{"login":"pq","id":67586,"node_id":"MDQ6VXNlcjY3NTg2","avatar_url":"https://avatars3.githubusercontent.com/u/67586?v=4","gravatar_id":"","url":"https://api.github.com/users/pq","html_url":"https://github.com/pq","followers_url":"https://api.github.com/users/pq/followers","following_url":"https://api.github.com/users/pq/following{/other_user}","gists_url":"https://api.github.com/users/pq/gists{/gist_id}","starred_url":"https://api.github.com/users/pq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pq/subscriptions","organizations_url":"https://api.github.com/users/pq/orgs","repos_url":"https://api.github.com/users/pq/repos","events_url":"https://api.github.com/users/pq/events{/privacy}","received_events_url":"https://api.github.com/users/pq/received_events","type":"User","site_admin":false},"labels":[{"id":1077099133,"node_id":"MDU6TGFiZWwxMDc3MDk5MTMz","url":"https://api.github.com/repos/dart-lang/sdk/labels/bug","name":"bug","color":"ededed","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-02T18:08:47Z","updated_at":"2018-10-02T18:08:49Z","closed_at":null,"author_association":"MEMBER","body":"_From @pq on October 1, 2018 23:16_\n\nWhen visiting apptree, this one came up.  Easy to repro.\r\n\r\n1. Set a breakpoint.\r\n2. When paused, evaluate an expression.\r\n3. Exception is thrown.\r\n\r\nTo get back to a happy state we need to restart the analysis server.\r\n\r\n\r\n\r\nAnalyzer Feedback from IntelliJ\r\n\r\n# Version information\r\n\r\n- `IDEA 183.2940.10`\r\n- `2.1.0-edge.4cf2d3990bac1f1df2f524899e1560a3683f3133`\r\n- `IU-183.2940.10, JRE 1.8.0_151-b12x64 Oracle Corporation, OS Mac OS X(x86_64) v10.13.6, screens 1680x1050  Retina`\r\n\r\n# Exception\r\n\r\n```\r\nDart analysis server, SDK version 2.1.0-edge.4cf2d3990bac1f1df2f524899e1560a3683f3133, server version 1.20.5, FATAL error: Failed to handle request: {id: 2622, method: execution.getSuggestions, params: {code: con, offset: 3, contextFile: /Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart, contextOffset: 2154, variables: [], expressions: []}, clientRequestTime: 1538435427635}\r\nInconsistentAnalysisException: Requested result might be inconsistent with previously returned results\r\n\r\n#0      AnalysisSessionImpl._checkConsistency (package:analyzer/src/dart/analysis/session.dart:156:7)\r\n#1      AnalysisSessionImpl.getResolvedAst (package:analyzer/src/dart/analysis/session.dart:121:5)\r\n#2      DartChangeBuilderImpl.createFileEditBuilder (package:analyzer_plugin/src/utilities/change_builder/change_builder_dart.dart:58:42)\r\n<asynchronous suspension>\r\n#3      ChangeBuilderImpl.addFileEdit (package:analyzer_plugin/src/utilities/change_builder/change_builder_core.dart:68:41)\r\n<asynchronous suspension>\r\n#4      DartChangeBuilderImpl.addFileEdit (package:analyzer_plugin/src/utilities/change_builder/change_builder_dart.dart:47:18)\r\n#5      RuntimeCompletionComputer.compute (package:analysis_server/src/domains/execution/completion.dart:59:25)\r\n<asynchronous suspension>\r\n#6      ExecutionDomainHandler.getSuggestions (package:analysis_server/src/domain_execution.dart:79:63)\r\n<asynchronous suspension>\r\n#7      ExecutionDomainHandler.handleRequest (package:analysis_server/src/domain_execution.dart:97:9)\r\n#8      AnalysisServer.handleRequest.<anonymous closure>.<anonymous closure> (package:analysis_server/src/analysis_server.dart:750:45)\r\n#9      _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:210:15)\r\n#10     AnalysisServer.handleRequest.<anonymous closure> (package:analysis_server/src/analysis_server.dart:746:50)\r\n#11     _rootRun (dart:async/zone.dart:1124:13)\r\n#12     _CustomZone.run (dart:async/zone.dart:1021:19)\r\n#13     _runZoned (dart:async/zone.dart:1516:10)\r\n#14     runZoned (dart:async/zone.dart:1500:12)\r\n#15     AnalysisServer.handleRequest (package:analysis_server/src/analysis_server.dart:745:5)\r\n#16     ByteStreamServerChannel._readRequest.<anonymous closure> (package:analysis_server/src/channel/byte_stream_channel.dart:174:16)\r\n#17     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:210:15)\r\n#18     ByteStreamServerChannel._readRequest (package:analysis_server/src/channel/byte_stream_channel.dart:165:47)\r\n#19     ByteStreamServerChannel.listen.<anonymous closure> (package:analysis_server/src/channel/byte_stream_channel.dart:110:26)\r\n#20     _rootRunUnary (dart:async/zone.dart:1132:38)\r\n#21     _CustomZone.runUnary (dart:async/zone.dart:1029:19)\r\n#22     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)\r\n#23     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)\r\n#24     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)\r\n#25     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)\r\n#26     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)\r\n#27     _StringAdapterSink.add (dart:convert/string_conversion.dart:268:11)\r\n#28     _LineSplitterSink._addLines (dart:convert/line_splitter.dart:154:13)\r\n#29     _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:129:5)\r\n#30     StringConversionSinkMixin.add (dart:convert/string_conversion.dart:189:5)\r\n#31     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)\r\n#32     _rootRunUnary (dart:async/zone.dart:1132:38)\r\n#33     _CustomZone.runUnary (dart:async/zone.dart:1029:19)\r\n#34     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)\r\n#35     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)\r\n#36     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)\r\n#37     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)\r\n#38     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)\r\n#39     _StringAdapterSink.add (dart:convert/string_conversion.dart:268:11)\r\n#40     _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:273:7)\r\n#41     _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:348:20)\r\n#42     _Utf8ConversionSink.add (dart:convert/string_conversion.dart:341:5)\r\n#43     _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:86:18)\r\n#44     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)\r\n#45     _rootRunUnary (dart:async/zone.dart:1132:38)\r\n#46     _CustomZone.runUnary (dart:async/zone.dart:1029:19)\r\n#47     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)\r\n#48     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)\r\n#49     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)\r\n#50     _SyncStreamController._sendData (dart:async/stream_controller.dart:763:19)\r\n#51     _StreamController._add (dart:async/stream_controller.dart:639:7)\r\n#52     _StreamController.add (dart:async/stream_controller.dart:585:5)\r\n#53     _Socket._onData (dart:io/runtime/binsocket_patch.dart:1714:41)\r\n#54     _rootRunUnary (dart:async/zone.dart:1136:13)\r\n#55     _CustomZone.runUnary (dart:async/zone.dart:1029:19)\r\n#56     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)\r\n#57     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)\r\n#58     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)\r\n#59     _SyncStreamController._sendData (dart:async/stream_controller.dart:763:19)\r\n#60     _StreamController._add (dart:async/stream_controller.dart:639:7)\r\n#61     _StreamController.add (dart:async/stream_controller.dart:585:5)\r\n#62     new _RawSocket.<anonymous closure> (dart:io/runtime/binsocket_patch.dart:1276:33)\r\n#63     _NativeSocket.issueReadEvent.issue (dart:io/runtime/binsocket_patch.dart:819:14)\r\n#64     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)\r\n#65     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)\r\n#66     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)\r\n#67     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)\r\n```\r\n\r\n```\r\n1538435427461 => {\"id\":\"2621\",\"method\":\"execution.getSuggestions\",\"params\":{\"code\":\"co\",\"offset\":2,\"contextFile\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"contextOffset\":2154,\"varia\r\n1538435427629 <= {\"id\":\"2620\",\"result\":{\"suggestions\":[{\"kind\":\"INVOCATION\",\"relevance\":1000,\"completion\":\"Codec\",\"selectionOffset\":5,\"selectionLength\":0,\"isDeprecated\":false,\"isPotential\":false,\"docS\r\n1538435427632 <= {\"event\":\"analysis.highlights\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"regions\":[{\"type\":\"DIRECTIVE\",\"offset\":0,\"length\":22},{\"type\":\"BUILT_IN\",\"\r\n1538435427632 <= {\"event\":\"analysis.navigation\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"regions\":[{\"offset\":7,\"length\":14,\"targets\":[0]},{\"offset\":31,\"length\":31,\r\n1538435427632 <= {\"event\":\"analysis.closingLabels\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"labels\":[{\"offset\":1292,\"length\":52,\"label\":\"MaterialApp\"},{\"offset\":22\r\n1538435427632 <= {\"event\":\"analysis.outline\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"kind\":\"LIBRARY\",\"outline\":{\"element\":{\"kind\":\"COMPILATION_UNIT\",\"name\":\"<unit\r\n1538435427632 <= {\"event\":\"analysis.overrides\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"overrides\":[{\"offset\":1220,\"length\":5,\"superclassMember\":{\"element\":{\"kind\"\r\n1538435427635 => {\"id\":\"2622\",\"method\":\"execution.getSuggestions\",\"params\":{\"code\":\"con\",\"offset\":3,\"contextFile\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"contextOffset\":2154,\"vari\r\n1538435427660 <= {\"event\":\"analysis.errors\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"errors\":[{\"severity\":\"INFO\",\"type\":\"LINT\",\"location\":{\"file\":\"/Users/pquitslun\r\n1538435427661 <= {\"event\":\"analysis.highlights\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"regions\":[{\"type\":\"DIRECTIVE\",\"offset\":0,\"length\":22},{\"type\":\"BUILT_IN\",\"\r\n1538435427662 <= {\"event\":\"analysis.navigation\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"regions\":[{\"offset\":7,\"length\":14,\"targets\":[0]},{\"offset\":31,\"length\":31,\r\n1538435427662 <= {\"event\":\"analysis.closingLabels\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"labels\":[{\"offset\":1292,\"length\":52,\"label\":\"MaterialApp\"},{\"offset\":22\r\n1538435427663 <= {\"event\":\"analysis.outline\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"kind\":\"LIBRARY\",\"outline\":{\"element\":{\"kind\":\"COMPILATION_UNIT\",\"name\":\"<unit\r\n1538435427663 <= {\"event\":\"analysis.overrides\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"overrides\":[{\"offset\":1220,\"length\":5,\"superclassMember\":{\"element\":{\"kind\"\r\n1538435427702 <= {\"event\":\"analysis.errors\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"errors\":[{\"severity\":\"INFO\",\"type\":\"LINT\",\"location\":{\"file\":\"/Users/pquitslun\r\n1538435427709 <= {\"event\":\"server.error\",\"params\":{\"isFatal\":true,\"message\":\"Failed to handle request: {id: 2622, method: execution.getSuggestions, params: {code: con, offset: 3, contextFile: /Users/p\r\n1538435427895 <= {\"id\":\"2621\",\"result\":{\"suggestions\":[{\"kind\":\"INVOCATION\",\"relevance\":1000,\"completion\":\"Codec\",\"selectionOffset\":5,\"selectionLength\":0,\"isDeprecated\":false,\"isPotential\":false,\"docS\r\n1538435427897 <= {\"event\":\"analysis.highlights\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"regions\":[{\"type\":\"DIRECTIVE\",\"offset\":0,\"length\":22},{\"type\":\"BUILT_IN\",\"\r\n1538435427897 <= {\"event\":\"analysis.navigation\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"regions\":[{\"offset\":7,\"length\":14,\"targets\":[0]},{\"offset\":31,\"length\":31,\r\n1538435427898 <= {\"event\":\"analysis.closingLabels\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"labels\":[{\"offset\":1292,\"length\":52,\"label\":\"MaterialApp\"},{\"offset\":22\r\n1538435427898 <= {\"event\":\"analysis.outline\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"kind\":\"LIBRARY\",\"outline\":{\"element\":{\"kind\":\"COMPILATION_UNIT\",\"name\":\"<unit\r\n1538435427899 <= {\"event\":\"analysis.overrides\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"overrides\":[{\"offset\":1220,\"length\":5,\"superclassMember\":{\"element\":{\"kind\"\r\n1538435427942 <= {\"event\":\"analysis.errors\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"errors\":[{\"severity\":\"INFO\",\"type\":\"LINT\",\"location\":{\"file\":\"/Users/pquitslun\r\n1538435427943 <= {\"event\":\"analysis.highlights\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"regions\":[{\"type\":\"DIRECTIVE\",\"offset\":0,\"length\":22},{\"type\":\"BUILT_IN\",\"\r\n1538435427944 <= {\"event\":\"analysis.navigation\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"regions\":[{\"offset\":7,\"length\":14,\"targets\":[0]},{\"offset\":31,\"length\":31,\r\n1538435427944 <= {\"event\":\"analysis.closingLabels\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"labels\":[{\"offset\":1292,\"length\":52,\"label\":\"MaterialApp\"},{\"offset\":22\r\n1538435427944 <= {\"event\":\"analysis.outline\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"kind\":\"LIBRARY\",\"outline\":{\"element\":{\"kind\":\"COMPILATION_UNIT\",\"name\":\"<unit\r\n1538435427945 <= {\"event\":\"analysis.overrides\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"overrides\":[{\"offset\":1220,\"length\":5,\"superclassMember\":{\"element\":{\"kind\"\r\n1538435427946 <= {\"event\":\"server.status\",\"params\":{\"analysis\":{\"isAnalyzing\":false}}}\r\n1538435427947 <= {\"event\":\"analysis.implemented\",\"params\":{\"file\":\"/Users/pquitslund/IdeaProjects/fplugin_proj/lib/main.dart\",\"classes\":[],\"members\":[]}}\r\n```\r\n\r\n/cc @jacob314 @bwilkerson @devoncarew \n\n_Copied from original issue: flutter/flutter-intellij#2647_"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/426374941","html_url":"https://github.com/dart-lang/sdk/issues/34646#issuecomment-426374941","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/34646","id":426374941,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjM3NDk0MQ==","user":{"login":"pq","id":67586,"node_id":"MDQ6VXNlcjY3NTg2","avatar_url":"https://avatars3.githubusercontent.com/u/67586?v=4","gravatar_id":"","url":"https://api.github.com/users/pq","html_url":"https://github.com/pq","followers_url":"https://api.github.com/users/pq/followers","following_url":"https://api.github.com/users/pq/following{/other_user}","gists_url":"https://api.github.com/users/pq/gists{/gist_id}","starred_url":"https://api.github.com/users/pq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pq/subscriptions","organizations_url":"https://api.github.com/users/pq/orgs","repos_url":"https://api.github.com/users/pq/repos","events_url":"https://api.github.com/users/pq/events{/privacy}","received_events_url":"https://api.github.com/users/pq/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T18:08:49Z","updated_at":"2018-10-02T18:08:49Z","author_association":"MEMBER","body":"_From @scheglov on October 2, 2018 1:58_\n\nI've seen this myself a couple times.\r\nUnfortunately I didn't have time to implement a proper fix yet."}}
{"actor":{"display_login":"pq"}}