analysis_server_lib 0.1.2+2

  • README.md
  • Installing
  • Versions
  • 53

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();
}

1. Depend on it

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


dependencies:
  analysis_server_lib: "^0.1.2+2"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages 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.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
0.1.0+3 May 26, 2017 Go to the documentation of analysis_server_lib 0.1.0+3 Download analysis_server_lib 0.1.0+3 archive
0.1.0+2 May 20, 2017 Go to the documentation of analysis_server_lib 0.1.0+2 Download analysis_server_lib 0.1.0+2 archive
0.1.0+1 May 19, 2017 Go to the documentation of analysis_server_lib 0.1.0+1 Download analysis_server_lib 0.1.0+1 archive
0.1.0 May 13, 2017 Go to the documentation of analysis_server_lib 0.1.0 Download analysis_server_lib 0.1.0 archive
0.0.1 May 10, 2017 Go to the documentation of analysis_server_lib 0.0.1 Download analysis_server_lib 0.0.1 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
74 / 100
Health:
Code health derived from static analysis. [more]
0 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80 / 100
Overall score:
Weighted score of the above. [more]
53

Platforms

Detected platforms: Flutter, other

Primary library: package:analysis_server_lib/analysis_server_lib.dart with components: io.

Suggestions

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use analysis_server_lib.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.21.0 <2.0.0
logging ^0.11.0 0.11.3+1
path ^1.0.0 1.5.1
Dev dependencies
html ^0.13.0
test ^0.12.0