2017-07-18 22:57:33 +00:00
|
|
|
===============================================================================
|
|
|
|
ALE Dart Integration *ale-dart-options*
|
|
|
|
|
|
|
|
|
2020-03-22 21:02:47 +00:00
|
|
|
===============================================================================
|
|
|
|
analysis_server *ale-dart-analysis_server*
|
|
|
|
|
|
|
|
Installation
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Install Dart via whatever means. `analysis_server` will be included in the SDK.
|
|
|
|
|
|
|
|
In case that `dart` is no in your path, try to set the executable option to
|
|
|
|
its absolute path. : >
|
|
|
|
" Set the executable path for dart to the absolute path to it.
|
|
|
|
let g:ale_dart_analysis_server_executable = '/usr/local/bin/dart'
|
|
|
|
<
|
|
|
|
|
|
|
|
Options
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
g:ale_dart_analysis_server_executable *g:ale_dart_analysis_server_executable*
|
|
|
|
*b:ale_dart_analysis_server_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'dart'`
|
|
|
|
|
|
|
|
This variable can be set to change the path to dart.
|
|
|
|
|
|
|
|
|
2017-07-18 22:57:33 +00:00
|
|
|
===============================================================================
|
|
|
|
dartanalyzer *ale-dart-dartanalyzer*
|
|
|
|
|
|
|
|
Installation
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Install Dart via whatever means. `dartanalyzer` will be included in the SDK.
|
|
|
|
|
|
|
|
You can add the SDK to `$PATH`, as described here:
|
|
|
|
https://www.dartlang.org/tools/sdk
|
|
|
|
|
|
|
|
If you have installed Dart on Linux, you can also try the following: >
|
|
|
|
" Set the executable path for dartanalyzer to the absolute path to it.
|
|
|
|
let g:ale_dart_dartanalyzer_executable = '/usr/lib/dart/bin/dartanalyzer'
|
|
|
|
<
|
|
|
|
... or similarly for wherever your Dart SDK lives. This should work without
|
|
|
|
having to modify `$PATH`.
|
|
|
|
|
2017-10-26 22:31:07 +00:00
|
|
|
ALE can only check for problems with `dartanalyzer` with the file on disk.
|
|
|
|
See |ale-lint-file-linters|
|
2017-07-18 22:57:33 +00:00
|
|
|
|
|
|
|
Options
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
g:ale_dart_dartanalyzer_executable *g:ale_dart_dartanalyzer_executable*
|
|
|
|
*b:ale_dart_dartanalyzer_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'dartanalyzer'`
|
|
|
|
|
|
|
|
This variable can be set to change the path to dartanalyzer.
|
|
|
|
|
|
|
|
|
|
|
|
===============================================================================
|
2018-07-01 12:55:41 +00:00
|
|
|
dartfmt *ale-dart-dartfmt*
|
|
|
|
|
|
|
|
Installation
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Installing Dart should probably ensure that `dartfmt` is in your `$PATH`.
|
|
|
|
|
|
|
|
In case it is not, try to set the executable option to its absolute path. : >
|
|
|
|
" Set the executable path for dartfmt to the absolute path to it.
|
|
|
|
let g:ale_dart_dartfmt_executable = '/usr/lib/dart/bin/dartfmt'
|
|
|
|
>
|
|
|
|
|
|
|
|
Options
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
g:ale_dart_dartfmt_executable *g:ale_dart_dartfmt_executable*
|
|
|
|
*b:ale_dart_dartfmt_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be set to specify an absolute path to the
|
|
|
|
dartfmt executable (or to specify an alternate executable).
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_dart_dartfmt_options *g:ale_dart_dartfmt_options*
|
|
|
|
*b:ale_dart_dartfmt_options*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be set to pass additional options to the dartfmt fixer.
|
|
|
|
|
|
|
|
===============================================================================
|
|
|
|
|
2017-07-18 22:57:33 +00:00
|
|
|
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|