analysis_server_lib 0.1.2+1

  • README.md
  • Installing
  • Versions
  • 30

analysis_server_lib #

A library to access Dart's analysis server API.

Build Status

What is the analysis server? #

The analysis server is a long-running process that provides analysis results to other tools. It is designed to provide on-going analysis of one or more code bases as those code bases are changing.

Using the server #

Clients (typically tools, such as an editor) are expected to run the analysis server in a separate process and communicate with it over a JSON protocol. The protocol is specified here.

Here's a simple example of starting and communicating with the server:

import 'package:analysis_server_lib/analysis_server_lib.dart';

main() async {
  AnalysisServer server = await AnalysisServer.create();
  await server.server.onConnected.first;

  VersionResult version = await server.server.getVersion();
  print(version.version);
  
  server.dispose();
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  analysis_server_lib: ^0.1.2+1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:analysis_server_lib/analysis_server_lib.dart';
  
Version Uploaded Documentation Archive
0.1.6 May 11, 2019 Go to the documentation of analysis_server_lib 0.1.6 Download analysis_server_lib 0.1.6 archive
0.1.4+2 Jul 19, 2018 Go to the documentation of analysis_server_lib 0.1.4+2 Download analysis_server_lib 0.1.4+2 archive
0.1.4+1 Apr 14, 2018 Go to the documentation of analysis_server_lib 0.1.4+1 Download analysis_server_lib 0.1.4+1 archive
0.1.4 Mar 30, 2018 Go to the documentation of analysis_server_lib 0.1.4 Download analysis_server_lib 0.1.4 archive
0.1.3 Mar 1, 2018 Go to the documentation of analysis_server_lib 0.1.3 Download analysis_server_lib 0.1.3 archive
0.1.2+2 Sep 6, 2017 Go to the documentation of analysis_server_lib 0.1.2+2 Download analysis_server_lib 0.1.2+2 archive
0.1.2+1 Jun 13, 2017 Go to the documentation of analysis_server_lib 0.1.2+1 Download analysis_server_lib 0.1.2+1 archive
0.1.2 Jun 13, 2017 Go to the documentation of analysis_server_lib 0.1.2 Download analysis_server_lib 0.1.2 archive
0.1.1+1 Jun 3, 2017 Go to the documentation of analysis_server_lib 0.1.1+1 Download analysis_server_lib 0.1.1+1 archive
0.1.1 Jun 3, 2017 Go to the documentation of analysis_server_lib 0.1.1 Download analysis_server_lib 0.1.1 archive

All 15 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
60
Health:
Code health derived from static analysis. [more]
--
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
--
Overall:
Weighted score of the above. [more]
30
Learn more about scoring.

This package version is not analyzed, because it is more than two years old. Check the latest stable version for its analysis.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://dart.dev/dart-2#migration.

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

Dependencies were not resolved.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.21.0 <2.0.0