{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/33279","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/33279/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/33279/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/33279/events","html_url":"https://github.com/dart-lang/sdk/issues/33279","id":327839834,"node_id":"MDU6SXNzdWUzMjc4Mzk4MzQ=","number":33279,"title":"Exception from analysis server (running from VSCode / Dart Code)","user":{"login":"a14n","id":1206632,"node_id":"MDQ6VXNlcjEyMDY2MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/1206632?v=4","gravatar_id":"","url":"https://api.github.com/users/a14n","html_url":"https://github.com/a14n","followers_url":"https://api.github.com/users/a14n/followers","following_url":"https://api.github.com/users/a14n/following{/other_user}","gists_url":"https://api.github.com/users/a14n/gists{/gist_id}","starred_url":"https://api.github.com/users/a14n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a14n/subscriptions","organizations_url":"https://api.github.com/users/a14n/orgs","repos_url":"https://api.github.com/users/a14n/repos","events_url":"https://api.github.com/users/a14n/events{/privacy}","received_events_url":"https://api.github.com/users/a14n/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-30T18:04:58Z","updated_at":"2018-05-30T18:30:27Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### What I was doing\r\n\r\nI was opening flutter in vscode\r\n\r\n### Request\r\n\r\nWhile responding to request: `analysis.setAnalysisRoots`\r\n\r\n### Versions\r\n\r\n- Dart SDK 2.0.0-edge.fe606f890b0a311da802c78b0af414a3c2087a79\r\n- Flutter SDK 0.5.1-pre.19\r\n- Visual Studio Code 1.23.1\r\n- Dart Code 2.12.1\r\n\r\n### Analyzer Info\r\n\r\nThe analyzer was launched using the arguments:\r\n\r\n```text\r\n~/flutter/bin/cache/dart-sdk/bin/snapshots/analysis_server.dart.snapshot\r\n--client-id=Dart-Code.dart-code\r\n--client-version=2.12.1\r\n```\r\n\r\n### Exception\r\n\r\nNoSuchMethodError: The getter 'fullName' was called on null.\r\nReceiver: null\r\nTried calling: fullName\r\n\r\n```text\r\n#0      Object.noSuchMethod (dart:core-patch/dart:core/object_patch.dart:46)\r\n#1      PluginWatcher._getSdkPath (package:analysis_server/src/plugin/plugin_watcher.dart:101)\r\n#2      PluginWatcher.addedDriver (package:analysis_server/src/plugin/plugin_watcher.dart:53)\r\n#3      AnalysisDriverScheduler.add (package:analyzer/src/dart/analysis/driver.dart:1883)\r\n#4      new AnalysisDriver (package:analyzer/src/dart/analysis/driver.dart:369)\r\n#5      ContextBuilder.buildDriver (package:analyzer/src/context/builder.dart:194)\r\n#6      ServerContextManagerCallbacks.addAnalysisDriver (package:analysis_server/src/analysis_server.dart:1194)\r\n#7      ContextManagerImpl._createContext (package:analysis_server/src/context_manager.dart:1139)\r\n#8      ContextManagerImpl._createContexts (package:analysis_server/src/context_manager.dart:1179)\r\n#9      ContextManagerImpl.setRoots (package:analysis_server/src/context_manager.dart:757)\r\n#10     AnalysisServer.setAnalysisRoots (package:analysis_server/src/analysis_server.dart:894)\r\n#11     AnalysisDomainHandler.setAnalysisRoots (package:analysis_server/src/domain_analysis.dart:340)\r\n#12     AnalysisDomainHandler.handleRequest (package:analysis_server/src/domain_analysis.dart:265)\r\n#13     AnalysisServer.handleRequest.<anonymous closure>.<anonymous closure> (package:analysis_server/src/analysis_server.dart:722)\r\n#14     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:210)\r\n#15     AnalysisServer.handleRequest.<anonymous closure> (package:analysis_server/src/analysis_server.dart:718)\r\n#16     _rootRun (dart:async/zone.dart:1126)\r\n#17     _CustomZone.run (dart:async/zone.dart:1023)\r\n#18     runZoned (dart:async/zone.dart:1490)\r\n#19     AnalysisServer.handleRequest (package:analysis_server/src/analysis_server.dart:717)\r\n#20     ByteStreamServerChannel._readRequest.<anonymous closure> (package:analysis_server/src/channel/byte_stream_channel.dart:172)\r\n#21     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:210)\r\n#22     ByteStreamServerChannel._readRequest (package:analysis_server/src/channel/byte_stream_channel.dart:163)\r\n#23     ByteStreamServerChannel.listen.<anonymous closure> (package:analysis_server/src/channel/byte_stream_channel.dart:108)\r\n#24     _rootRunUnary (dart:async/zone.dart:1134)\r\n#25     _CustomZone.runUnary (dart:async/zone.dart:1031)\r\n#26     _CustomZone.runUnaryGuarded (dart:async/zone.dart:933)\r\n#27     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330)\r\n#28     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:257)\r\n#29     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68)\r\n#30     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15)\r\n#31     _StringAdapterSink.add (dart:convert/string_conversion.dart:268)\r\n#32     _LineSplitterSink._addLines (dart:convert/line_splitter.dart:154)\r\n#33     _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:129)\r\n#34     StringConversionSinkMixin.add (dart:convert/string_conversion.dart:189)\r\n#35     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120)\r\n#36     _rootRunUnary (dart:async/zone.dart:1134)\r\n#37     _CustomZone.runUnary (dart:async/zone.dart:1031)\r\n#38     _CustomZone.runUnaryGuarded (dart:async/zone.dart:933)\r\n#39     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330)\r\n#40     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:257)\r\n#41     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68)\r\n#42     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15)\r\n#43     _StringAdapterSink.add (dart:convert/string_conversion.dart:268)\r\n#44     _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:273)\r\n#45     _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:348)\r\n#46     _Utf8ConversionSink.add (dart:convert/string_conversion.dart:341)\r\n#47     _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:86)\r\n#48     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120)\r\n#49     _rootRunUnary (dart:async/zone.dart:1134)\r\n#50     _CustomZone.runUnary (dart:async/zone.dart:1031)\r\n#51     _CustomZone.runUnaryGuarded (dart:async/zone.dart:933)\r\n#52     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330)\r\n#53     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:257)\r\n#54     _StreamController&&_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:763)\r\n#55     _StreamController._add (dart:async/stream_controller.dart:639)\r\n#56     _StreamController.add (dart:async/stream_controller.dart:585)\r\n#57     _Socket._onData (dart:io-patch/socket_patch.dart:1672)\r\n#58     _rootRunUnary (dart:async/zone.dart:1138)\r\n#59     _CustomZone.runUnary (dart:async/zone.dart:1031)\r\n#60     _CustomZone.runUnaryGuarded (dart:async/zone.dart:933)\r\n#61     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330)\r\n#62     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:257)\r\n#63     _StreamController&&_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:763)\r\n#64     _StreamController._add (dart:async/stream_controller.dart:639)\r\n#65     _StreamController.add (dart:async/stream_controller.dart:585)\r\n#66     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1245)\r\n#67     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:797)\r\n#68     _microtaskLoop (dart:async/schedule_microtask.dart:41)\r\n#69     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)\r\n#70     _runPendingImmediateCallback (dart:isolate-patch/dart:isolate/isolate_patch.dart:113)\r\n#71     _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:166)\r\n```\r\n\r\nDiagnostics requested after the error occurred are:\r\n\r\n```js\r\n[]\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/393269314","html_url":"https://github.com/dart-lang/sdk/issues/33279#issuecomment-393269314","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/33279","id":393269314,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzI2OTMxNA==","user":{"login":"bwilkerson","id":5840555,"node_id":"MDQ6VXNlcjU4NDA1NTU=","avatar_url":"https://avatars1.githubusercontent.com/u/5840555?v=4","gravatar_id":"","url":"https://api.github.com/users/bwilkerson","html_url":"https://github.com/bwilkerson","followers_url":"https://api.github.com/users/bwilkerson/followers","following_url":"https://api.github.com/users/bwilkerson/following{/other_user}","gists_url":"https://api.github.com/users/bwilkerson/gists{/gist_id}","starred_url":"https://api.github.com/users/bwilkerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwilkerson/subscriptions","organizations_url":"https://api.github.com/users/bwilkerson/orgs","repos_url":"https://api.github.com/users/bwilkerson/repos","events_url":"https://api.github.com/users/bwilkerson/events{/privacy}","received_events_url":"https://api.github.com/users/bwilkerson/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T18:30:27Z","updated_at":"2018-05-30T18:30:27Z","author_association":"MEMBER","body":"@scheglov The code where the exception is being thrown is:\r\n```\r\nString _getSdkPath(AnalysisDriver driver) {\r\n  String sdkRoot = driver.sourceFactory.forUri('dart:core').fullName;\r\n  ...\r\n}\r\n```\r\nwhich means that the problem is a driver whose source factory cannot resolve the location of `dart:core`. Is there a reasonable situation in which that would be expected?"}}
{"actor":{"display_login":"bwilkerson"}}