RubyMine 7.1.0 Help

Dart Support

RubyMine supports developing, running, and debugging Dart code. RubyMine recognizes *.dart files, and allows you to edit them providing full range of coding assistance. Dart files are marked with the icon_dart.png icon.

Dart is intended for developing client-side and server-side applications. RubyMine supports both workflows.

  • For running and debugging the server-side code, RubyMine provides a dedicated run/debug configuration of the type Dart Command Line Application.
  • To run and debug the client-side code in a browser, you either need to use the Dartium browser or have the Dart code translated into JavaScript.

    Most browsers that work with JavaScript code do not natively process Dart code. The only exception is Dartium. This dart-oriented version of Chromium contains a built-in Dart VM and therefore can run Dart code directly. For details, see http://www.dartlang.org/tools/dartium/.

    To be executed in any other browser, Dart code has to be translated into JavaScript. This operation is referred to as transpilation and the tools that perform it are called transpilers.

    If you are using the pub tool, transpilation is performed during pub build using the built-in dart2js transpiler.

    RubyMine also supports integration with the dart2js transpiler. In RubyMine, transpiler configurations are called File Watchers. For each supported transpiler, RubyMine provides a predefined File Watcher template. Predefined File Watcher templates are available at the RubyMine level. To run a transpiler against your project files, you need to create a project-specific File Watcher based on the relevant template, at least, specify the path to the transpiler to use on your machine.

When the Dart development support is enabled, see Preparing for Dart Development, RubyMine provides full coding assistance, which involves:

In this section:

See Also

Language and Framework-Specific Guidelines:

External Links:

Web Resources:

Last modified: 17 April 2015