radicaled / dart-tools

Various tools for Dart in Atom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dart-tools package

Build Status

NOTE: currently unmaintained. You should use the dartlang package instead.

Various tools for Dart support in Atom.

NOTE: somewhat alpha quality

Features

  • Updated grammar file (no need for the language-dart package; remove it if you have it)
  • Lints the Dart project when a pubspec.yaml file exists at project root (see note section) or when you open a Dart file in the current project.
  • Formats the current Dart file via command palette
  • Can perform "pub get" when pubspec.yaml is saved.
  • Can format Dart files on save.
  • Putting the caret within an analysis error quickly shows the problem text
  • Basic autocomplete, via the autocomplete-plus package.
  • Generate new Dart projects using Stagehand

Available Commands

  • Pub Get
  • Pub Upgrade
  • Sdk Info
  • Format Code

Notes

Formatting will save the current editor buffer first.

Linting requires you to set your dart-sdk location. You can do that from Settings View: Open -> Filter Packages -> Dart Tools.

Linting requires the linter package.

Did you install Dart SDK via homebrew? Use HOMEBREW_INSTALL/opt/dart/libexec as the SDK directory (replace HOMEBREW_INSTALL with the location where homebrew installs software, which is often /usr/local).

If you have a pubspec.yaml file or .packages path in your project, linting will begin immediately. If not, linting will begin once you open a Dart file that exists within your current project scope.

Performance: dart-tools doesn't handle a large number of errors very well - around 300 errors starts slowing things down. Take care with your refactoring until this is resolved!

Credits

dart.cson taken from https://github.com/Daegalus/atom-language-dart (dead?) and modified.

About

Various tools for Dart in Atom

License:MIT License


Languages

Language:HTML 70.7%Language:CoffeeScript 28.1%Language:CSS 1.3%