Giter VIP home page Giter VIP logo

Comments (6)

christopherfujino avatar christopherfujino commented on May 25, 2024

From the tool, the exception is being thrown from https://github.com/flutter/flutter/blob/beta/packages/flutter_tools/lib/src/commands/analyze_once.dart#L100

Earlier, we spawn the analysis server here: https://github.com/flutter/flutter/blob/beta/packages/flutter_tools/lib/src/dart/analysis.dart#L57

    final String snapshot = _fileSystem.path.join(
      sdkPath,
      'bin',
      'snapshots',
      'analysis_server.dart.snapshot',
    );
    final List<String> command = <String>[
      _fileSystem.path.join(sdkPath, 'bin', 'dart'),
      '--disable-dart-dev',
      snapshot,
      '--disable-server-feature-completion',
      '--disable-server-feature-search',
      '--sdk',
      sdkPath,
      if (suppressAnalytics) '--suppress-analytics',
      if (_protocolTrafficLog != null)
        '--protocol-traffic-log=$_protocolTrafficLog',
    ];

from flutter.

srawlins avatar srawlins commented on May 25, 2024

Did this just start with beta/3.19.0-0.4.pre?

from flutter.

bwilkerson avatar bwilkerson commented on May 25, 2024

It's not much help, but the only explicit invocations of exit that I can find that could have a value of -2 are during the "training" used while building the snapshot in order to improve performance. They shouldn't occur while using the snapshot.

from flutter.

christopherfujino avatar christopherfujino commented on May 25, 2024

It's not much help, but the only explicit invocations of exit that I can find that could have a value of -2 are during the "training" used while building the snapshot in order to improve performance. They shouldn't occur while using the snapshot.

I wonder if -2 means killed by an operating system signal?

from flutter.

bwilkerson avatar bwilkerson commented on May 25, 2024

It might. As far as I can tell there's no standard for what even a subset of exit codes mean, other than 0 appears to always mean "success" (though I did find one resource that claimed that non-zero doesn't always mean failure).

In any case, an integer encoding is a pretty poor way for any system to communicate with humans. 😦

from flutter.

christopherfujino avatar christopherfujino commented on May 25, 2024

In any case, an integer encoding is a pretty poor way for any system to communicate with humans. 😦

You don't need to convince me, but such is my life...

from flutter.

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.