Giter Club home page Giter Club logo

Comments (2)

pq avatar pq commented on September 18, 2024

To wit, here's a stackdump from a project that is not using the right SDK:

[ 226252]  ERROR - yzer.DartAnalysisServerService - Dart analysis server, SDK version 1.19.0-edge.43fef756ae79b614ad6ff87995430d5059d51626, server version 1.15.0, FATAL error: Failed to perform operation: Instance of 'PerformAnalysisOperation'
Bad state: Unable to find linked summary: dart:ui
#0      SummaryResynthesizer._getLinkedSummaryOrThrow (package:analyzer/src/summary/resynthesize.dart:258)
#1      SummaryResynthesizer.getLibraryElement.<anonymous closure> (package:analyzer/src/summary/resynthesize.dart:207)
#2      _HashVMBase&MapMixin&&_LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:259)
#3      SummaryResynthesizer.getLibraryElement (package:analyzer/src/summary/resynthesize.dart:206)
#4      ResynthesizerResultProvider.compute (package:analyzer/src/summary/package_bundle_reader.dart:170)
#5      SdkSummaryResultProvider.compute (package:analyzer/src/summary/summary_sdk.dart:45)
#6      AnalysisContextImpl.aboutToComputeResult.<anonymous closure> (package:analyzer/src/context/context.dart:566)
#7      _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:212)
#8      AnalysisContextImpl.aboutToComputeResult (package:analyzer/src/context/context.dart:564)
#9      AnalysisContextImpl.aboutToComputeResult.<anonymous closure> (package:analyzer/src/context/context.dart:575)
#10     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:212)
#11     AnalysisContextImpl.aboutToComputeResult (package:analyzer/src/context/context.dart:564)
#12     WorkItem.gatherInputs (package:analyzer/src/task/driver.dart:746)
#13     _WorkOrderDependencyWalker.getNextInput (package:analyzer/src/task/driver.dart:879)
#14     CycleAwareDependencyWalker.getNextStronglyConnectedComponent (package:analyzer/src/task/driver.dart:414)
#15     WorkOrder.moveNext.<anonymous closure> (package:analyzer/src/task/driver.dart:845)
#16     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:212)
#17     WorkOrder.moveNext (package:analyzer/src/task/driver.dart:837)
#18     AnalysisDriver.performAnalysisTask (package:analyzer/src/task/driver.dart:253)
#19     AnalysisContextImpl.performAnalysisTask.<anonymous closure> (package:analyzer/src/context/context.dart:1231)
#20     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:212)
#21     AnalysisContextImpl.performAnalysisTask (package:analyzer/src/context/context.dart:1229)
#22     PerformAnalysisOperation.perform (package:analysis_server/src/operation/operation_analysis.dart:371)
#23     AnalysisServer.performOperation (package:analysis_server/src/analysis_server.dart:888)
#24     Future.Future.<anonymous closure> (dart:async/future.dart:118)
#25     _rootRun (dart:async/zone.dart:1146)
#26     _CustomZone.run (dart:async/zone.dart:1026)
#27     _CustomZone.runGuarded (dart:async/zone.dart:924)
#28     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:951)
#29     _rootRun (dart:async/zone.dart:1150)
#30     _CustomZone.run (dart:async/zone.dart:1026)
#31     _CustomZone.runGuarded (dart:async/zone.dart:924)
#32     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:951)
#33     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:16)
#34     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:385)
#35     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:414)
#36     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)

java.lang.Throwable
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)
    at com.jetbrains.lang.dart.analyzer.DartAnalysisServerService$1.serverError(DartAnalysisServerService.java:216)
    at com.google.dart.server.internal.BroadcastAnalysisServerListener.serverError(BroadcastAnalysisServerListener.java:180)
    at com.google.dart.server.internal.remote.processor.NotificationServerErrorProcessor.process(NotificationServerErrorProcessor.java:37)
    at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.processNotification(RemoteAnalysisServerImpl.java:502)
    at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.processResponse(RemoteAnalysisServerImpl.java:517)
    at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl.access$600(RemoteAnalysisServerImpl.java:49)
    at com.google.dart.server.internal.remote.RemoteAnalysisServerImpl$ServerResponseReaderThread.run(RemoteAnalysisServerImpl.java:868)

from flutter-intellij.

pq avatar pq commented on September 18, 2024

This is tracked by a few other bugs.

from flutter-intellij.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.