{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/25049","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/25049/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/25049/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/25049/events","html_url":"https://github.com/dart-lang/sdk/issues/25049","id":119034364,"number":25049,"title":"Analysis Server throws an error when analyzing deferred_load.dart file","user":{"login":"alexander-doroshko","id":4499789,"avatar_url":"https://avatars.githubusercontent.com/u/4499789?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander-doroshko","html_url":"https://github.com/alexander-doroshko","followers_url":"https://api.github.com/users/alexander-doroshko/followers","following_url":"https://api.github.com/users/alexander-doroshko/following{/other_user}","gists_url":"https://api.github.com/users/alexander-doroshko/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-doroshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-doroshko/subscriptions","organizations_url":"https://api.github.com/users/alexander-doroshko/orgs","repos_url":"https://api.github.com/users/alexander-doroshko/repos","events_url":"https://api.github.com/users/alexander-doroshko/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-doroshko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/analyzer-server","name":"analyzer-server","color":"d4c5f9"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-analyzer","name":"area-analyzer","color":"c7def8"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"scheglov","id":384794,"avatar_url":"https://avatars.githubusercontent.com/u/384794?v=3","gravatar_id":"","url":"https://api.github.com/users/scheglov","html_url":"https://github.com/scheglov","followers_url":"https://api.github.com/users/scheglov/followers","following_url":"https://api.github.com/users/scheglov/following{/other_user}","gists_url":"https://api.github.com/users/scheglov/gists{/gist_id}","starred_url":"https://api.github.com/users/scheglov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheglov/subscriptions","organizations_url":"https://api.github.com/users/scheglov/orgs","repos_url":"https://api.github.com/users/scheglov/repos","events_url":"https://api.github.com/users/scheglov/events{/privacy}","received_events_url":"https://api.github.com/users/scheglov/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-26T12:18:01Z","updated_at":"2015-11-30T06:49:56Z","closed_at":"2015-11-30T06:49:56Z","body":"`Dart VM version: 1.14.0-edge.e3457758ed7e2b24263bcbd9831cd764ce9fd110 (Tue Nov 24 16:05:37 2015) on \"windows_x64\"`\r\nPresence of [this file](https://github.com/dart-lang/sdk/blob/1590970ccc03989923629ad590fd850dd7d85e6d/pkg/compiler/lib/src/deferred_load.dart) in the project (exactly in this revision) makes DAS to throw an error. Errors may be different, 2 examples pasted below:\r\n```\r\nDart analysis server, SDK version 1.14.0-edge.e3457758ed7e2b24263bcbd9831cd764ce9fd110, server version 1.12.0, error: Task failed: ComputePropagableVariableDependenciesTask for element Map<_DeferredImport, ImportDescription> _deferredImportDescriptions in source C:\\dart_projects\\untitled1\\bin\\main.dart\r\nNodeLocator failed to find a variable's declaration\r\n#0      ComputePropagableVariableDependenciesTask.internalPerform (package:analyzer/src/task/dart.dart:2064)\r\n#1      AnalysisTask._safelyPerform (package:analyzer/task/model.dart:310)\r\n#2      AnalysisTask.perform (package:analyzer/task/model.dart:210)\r\n#3      AnalysisDriver.performWorkItem (package:analyzer/src/task/driver.dart:272)\r\n#4      AnalysisDriver.performAnalysisTask (package:analyzer/src/task/driver.dart:247)\r\n#5      AnalysisContextImpl.performAnalysisTask.<anonymous closure> (package:analyzer/src/context/context.dart:1116)\r\n#6      _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:188)\r\n#7      AnalysisContextImpl.performAnalysisTask (package:analyzer/src/context/context.dart:1114)\r\n#8      PerformAnalysisOperation.perform (package:analysis_server/src/operation/operation_analysis.dart:367)\r\n#9      AnalysisServer.performOperation (package:analysis_server/src/analysis_server.dart:797)\r\n#10     Future.Future.<anonymous closure> (dart:async/future.dart:118)\r\n#11     _rootRun (dart:async/zone.dart:903)\r\n#12     _CustomZone.run (dart:async/zone.dart:802)\r\n#13     _CustomZone.runGuarded (dart:async/zone.dart:708)\r\n#14     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:733)\r\n#15     _rootRun (dart:async/zone.dart:907)\r\n#16     _CustomZone.run (dart:async/zone.dart:802)\r\n#17     _CustomZone.runGuarded (dart:async/zone.dart:708)\r\n#18     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:733)\r\n#19     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:16)\r\n#20     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:385)\r\n#21     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:414)\r\n#22     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)\r\n\r\n\r\n#0      ComputePropagableVariableDependenciesTask.internalPerform (package:analyzer/src/task/dart.dart:2064)\r\n#1      AnalysisTask._safelyPerform (package:analyzer/task/model.dart:310)\r\n#2      AnalysisTask.perform (package:analyzer/task/model.dart:210)\r\n#3      AnalysisDriver.performWorkItem (package:analyzer/src/task/driver.dart:272)\r\n#4      AnalysisDriver.performAnalysisTask (package:analyzer/src/task/driver.dart:247)\r\n#5      AnalysisContextImpl.performAnalysisTask.<anonymous closure> (package:analyzer/src/context/context.dart:1116)\r\n#6      _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:188)\r\n#7      AnalysisContextImpl.performAnalysisTask (package:analyzer/src/context/context.dart:1114)\r\n#8      PerformAnalysisOperation.perform (package:analysis_server/src/operation/operation_analysis.dart:367)\r\n#9      AnalysisServer.performOperation (package:analysis_server/src/analysis_server.dart:797)\r\n#10     Future.Future.<anonymous closure> (dart:async/future.dart:118)\r\n#11     _rootRun (dart:async/zone.dart:903)\r\n#12     _CustomZone.run (dart:async/zone.dart:802)\r\n#13     _CustomZone.runGuarded (dart:async/zone.dart:708)\r\n#14     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:733)\r\n#15     _rootRun (dart:async/zone.dart:907)\r\n#16     _CustomZone.run (dart:async/zone.dart:802)\r\n#17     _CustomZone.runGuarded (dart:async/zone.dart:708)\r\n#18     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:733)\r\n#19     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:16)\r\n#20     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:385)\r\n#21     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:414)\r\n#22     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)\r\n\r\njava.lang.Throwable\r\n\tat com.intellij.openapi.diagnostic.Logger.error(Logger.java:127)\r\n\tat com.jetbrains.lang.dart.analyzer.DartAnalysisServerService$1.serverError(DartAnalysisServerService.java:198)\r\n\tat com.google.dart.server.internal.BroadcastAnalysisServerListener.serverError(BroadcastAnalysisServerListener.java:180)\r\n\tat com.google.dart.server.internal.remote.processor.NotificationServerErrorProcessor.process(NotificationServerErrorProcessor.java:37)\r\n\tat com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.processNotification(RemoteAnalysisServerImpl.java:660)\r\n\tat com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.processResponse(RemoteAnalysisServerImpl.java:673)\r\n\tat com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.access$100(RemoteAnalysisServerImpl.java:109)\r\n\tat com.google.dart.server.internal.remote.RemoteAnalysisServerImpl$ServerResponseReaderThread.run(RemoteAnalysisServerImpl.java:152)\r\n```\r\n```\r\nDart analysis server, SDK version 1.14.0-edge.e3457758ed7e2b24263bcbd9831cd764ce9fd110, server version 1.12.0, error: Exception from assist contributor: DefaultAssistContributor\r\nCannot compute RESOLVED_UNIT for C:\\dart_projects\\untitled1\\bin\\main.dart in C:\\dart_projects\\untitled1\\bin\\main.dart\r\n#0      AnalysisContextImpl.computeResult (package:analyzer/src/context/context.dart:679)\r\n#1      AnalysisContextImpl.resolveCompilationUnit2 (package:analyzer/src/context/context.dart:1217)\r\n#2      DartAssistContributor.computeAssists.<computeAssists_async_body> (package:analysis_server/plugin/edit/assist/assist_dart.dart:64)\r\n#3      Future.Future.microtask.<anonymous closure> (dart:async/future.dart:144)\r\n#4      _rootRun (dart:async/zone.dart:903)\r\n#5      _CustomZone.run (dart:async/zone.dart:802)\r\n#6      _CustomZone.runGuarded (dart:async/zone.dart:708)\r\n#7      _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:733)\r\n#8      _rootRun (dart:async/zone.dart:907)\r\n#9      _CustomZone.run (dart:async/zone.dart:802)\r\n#10     _CustomZone.runGuarded (dart:async/zone.dart:708)\r\n#11     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:733)\r\n#12     _microtaskLoop (dart:async/schedule_microtask.dart:43)\r\n#13     _microtaskLoopEntry (dart:async/schedule_microtask.dart:52)\r\n#14     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)\r\n#15     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)\r\n\r\nCaused by NodeLocator failed to find a variable's declaration\r\n#0      ComputePropagableVariableDependenciesTask.internalPerform (package:analyzer/src/task/dart.dart:2064)\r\n#1      AnalysisTask._safelyPerform (package:analyzer/task/model.dart:310)\r\n#2      AnalysisTask.perform (package:analyzer/task/model.dart:210)\r\n#3      AnalysisDriver.performWorkItem (package:analyzer/src/task/driver.dart:272)\r\n#4      AnalysisDriver.performAnalysisTask (package:analyzer/src/task/driver.dart:247)\r\n#5      AnalysisContextImpl.performAnalysisTask.<anonymous closure> (package:analyzer/src/context/context.dart:1116)\r\n#6      _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:188)\r\n#7      AnalysisContextImpl.performAnalysisTask (package:analyzer/src/context/context.dart:1114)\r\n#8      PerformAnalysisOperation.perform (package:analysis_server/src/operation/operation_analysis.dart:367)\r\n#9      AnalysisServer.performOperation (package:analysis_server/src/analysis_server.dart:797)\r\n#10     Future.Future.<anonymous closure> (dart:async/future.dart:118)\r\n#11     _rootRun (dart:async/zone.dart:903)\r\n#12     _CustomZone.run (dart:async/zone.dart:802)\r\n#13     _CustomZone.runGuarded (dart:async/zone.dart:708)\r\n#14     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:733)\r\n#15     _rootRun (dart:async/zone.dart:907)\r\n#16     _CustomZone.run (dart:async/zone.dart:802)\r\n#17     _CustomZone.runGuarded (dart:async/zone.dart:708)\r\n#18     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:733)\r\n#19     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:16)\r\n#20     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:385)\r\n#21     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:414)\r\n#22     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)\r\n\r\n\r\n#0      AnalysisContextImpl.computeResult (package:analyzer/src/context/context.dart:679)\r\n#1      AnalysisContextImpl.resolveCompilationUnit2 (package:analyzer/src/context/context.dart:1217)\r\n#2      DartAssistContributor.computeAssists.<computeAssists_async_body> (package:analysis_server/plugin/edit/assist/assist_dart.dart:64)\r\n#3      Future.Future.microtask.<anonymous closure> (dart:async/future.dart:144)\r\n#4      _rootRun (dart:async/zone.dart:903)\r\n#5      _CustomZone.run (dart:async/zone.dart:802)\r\n#6      _CustomZone.runGuarded (dart:async/zone.dart:708)\r\n#7      _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:733)\r\n#8      _rootRun (dart:async/zone.dart:907)\r\n#9      _CustomZone.run (dart:async/zone.dart:802)\r\n#10     _CustomZone.runGuarded (dart:async/zone.dart:708)\r\n#11     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:733)\r\n#12     _microtaskLoop (dart:async/schedule_microtask.dart:43)\r\n#13     _microtaskLoopEntry (dart:async/schedule_microtask.dart:52)\r\n#14     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)\r\n#15     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)\r\n\r\njava.lang.Throwable\r\n\tat com.intellij.openapi.diagnostic.Logger.error(Logger.java:127)\r\n\tat com.jetbrains.lang.dart.analyzer.DartAnalysisServerService$1.serverError(DartAnalysisServerService.java:198)\r\n\tat com.google.dart.server.internal.BroadcastAnalysisServerListener.serverError(BroadcastAnalysisServerListener.java:180)\r\n\tat com.google.dart.server.internal.remote.processor.NotificationServerErrorProcessor.process(NotificationServerErrorProcessor.java:37)\r\n\tat com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.processNotification(RemoteAnalysisServerImpl.java:660)\r\n\tat com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.processResponse(RemoteAnalysisServerImpl.java:673)\r\n\tat com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.access$100(RemoteAnalysisServerImpl.java:109)\r\n\tat com.google.dart.server.internal.remote.RemoteAnalysisServerImpl$ServerResponseReaderThread.run(RemoteAnalysisServerImpl.java:152)\r\n```"}}