analysis_server_lib 0.1.4+2

  • README.md
  • Installing
  • Versions
  • 80

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.4+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 flutter 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.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
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

All 14 versions...

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

We analyzed this package on Aug 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.11.8

Platforms

Detected platforms: Flutter, other

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

Issues and 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 of the 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 >=2.0.0-dev <3.0.0
logging ^0.11.0 0.11.3+2
path ^1.0.0 1.6.2
Dev dependencies
html ^0.13.3
test ^1.0.0