Skip to main content

Posts

Showing posts with the label editor

New site for Dart news and articles

For the latest Dart news, visit our new blog at  https://medium.com/dartlang .

Dart plugin for IntelliJ IDEA and WebStorm

The Dart plugin for IntelliJ IDEA-based IDEs, has a new release with important enhancements. Notably, the plugin is now compatible with all versions of IntelliJ IDEA, including IDEA 13.1 Community Edition—the free open-source version of IntelliJ IDEA. This means you can get a version of the IntelliJ IDE with Dart auto-completion, code validation, package management, quick fixes, navigation, and full-featured command-line app debugging for free! Pub Integration The Dart plugin features rich pub integration. The pub tool commands get, upgrade, and build are available by context-clicking the pubspec.yaml file. Configuring the SDK When creating a new Dart project with the project wizard or starting a Dart project in the IDE for the first time, you’re asked to set up the path to Dart SDK. If the SDK was downloaded together with Dart Editor, the path to Dartium is added automatically. You can configure command-line options and a custom user data directory for Dartium. With ...

New Quick Assist Items in Latest Dart Editor Build

A new Dart Editor build is available at  www.dartlang.org/editor .  This build introduces a couple of quick assist items. The first assist item lets you combine an 'if' statement with an inner 'if' statement. Place the cursor over the starting if, press cmd-1, and hit return. That converts the following code:    if (!(object is Person)) {     if (object.name.beginsWith( 'R' )) {       nextItem = object.name;     }   } to this: if (!(object is Person) && object.name.beginsWith( 'R' )) {   nextItem = object.name; } The other quick action converts  (!(item  is A )) to (item is! A)  format: Place cursor over is, press cmd-1, and hit Return to convert to to is! format Eric Clayberg  fills us in on the changes  introduced in this build: Opening type from omni box opens corresponding file. F3 works for URL in impor...

New Dart Editor Build With Enhanced Refactoring Support

A new Dart Editor build is available at  www.dartlang.org/editor . Eric Clayberg  fills us in on the changes : Semantic highlighting enabled for new analysis engine. New “Convert Method to Getter” and “Convert Getter to Method” refactorings. New “Create Class” and “Create part” quick fixes. New “Import Library” quick fixes. Multiple hover text improvements. Fixed several debugger bugs related to not being able to hit breakpoints. Additional warnings and errors enabled in new analysis engine. Many general improvements and fixes to new analysis engine.         Breaking Change List: MirrorSystem.libraries uses Uri instead of library names. LibraryMirror.url changed to LibraryMirror.uri. Rename dart:typeddata to dart:typed_data. As always,view the  changelog  for the full list of changes, and to get started with the Editor see our  tutorial .

New Dart Editor Build with Run Last Launch Option

A new Dart Editor build is available at  www.dartlang.org/editor . Eric Clayberg fills us in on the changes : Run > Always Run Last Launch menu option when enabled will always run the last launch unless user chooses another launch explicitly.  “Refactor” top-level menu Support for inlining getters and setters. “Rename...” proposal in Quick Assist (Cmd+1) Use import prefix for return type in 'Extract Method' refactoring. Several Quick fixes. Several debugger fixes. Additional warnings and errors enabled in new analysis engine. Many general improvements and fixes to new analysis engine. Breaking Change List: Invocation use Symbol instead of String for names. Invocation.invokeOn was moved to InstanceMirror.delegate in dart:mirrors. As always,view the  changelog  for the full list of changes, and to get started with the Editor see our  tutorial .

List of Last Minute M4 Breaking Changes

The M4 release saw the Core, Async, and Collection libraries stabilize. Dan Grove has compiled a list of the   last minute breaking changes : The separator argument in Iterable.join defaults to “” (instead of `null`). All DateTime constants are non-abbreviated. Also changed DAYS_IN_WEEK to DAYS_PER_WEEK. Removed deprecated classes and methods CollectionSink Stream.pipeInto Iterable/Stream . max/min Collection (List, Set and Queue now extend Iterable directly) Datetime.</<=/>/>= IOSink.writeStream (renamed to IOSink.addStream) IOSink.writeBytes (renamed to IOSink.add) StreamSink (renamed to EventSink) Iterable.reduce/Stream.reduce introduced that does not require an initial value. List range functions were refactored: List.getRange takes an endIndex argument and returns an Iterable. List.setRange takes an endIndex and an iterable (plus an optional skipCount). List.removeRange takes an endIndex. List.insertRan...

New Dart Editor Release with Dedicated WebGL Library

Eric Clayberg fills us in on the  release details : A new Dart Editor build is available at  www.dartlang.org/editor .  Ch anges include: New preference to disable auto-activation of code completion. Theme preview works with new analysis engine. Many performance and memory improvements with new analysis engine. Breaking Change List: Existing base64 encoder method CryptoUtils.bytesToBase64( List<int> bytes, [int lineLength]) is changed to CryptoUtils.bytesToBase64( List<int> bytes, {bool urlSafe : false, bool addLineSeparator : false}) Remove the (long deprecated) List.addLast method. Stream subscriptions are now more lenient about calling methods after canceling and resuming when not paused - it's no longer an error, it just doesn't do anything. WebGL types have been moved out of dart:html and into dart:web_gl. All WebGL prefixes have been removed (WebGLRenderingContext is now RenderingContext). dart:html’s WheelEvent.deltaX...

Significant Dart Editor Release Brings Back String Plus Operator

Dart Editor has a new build. This is a significant release with a long list of breaking changes. You are urged to update your Dart code accordingly.  Due to popular demand, the Dart team brought back the plus operator for string concatenation. That change has now landed in the Editor. Before this release, using + to concatenate strings produced this error: Now, you can use + for concatenation. The concat() method has been deprecated: There are numerous other changes in the core libraries, the dart:html library, and the dart:io library.  Eric Clayberg  fills us in on the details  of this release : A new Dart Editor build is available at  www.dartlang.org/editor .  Ch a nges  include: New analyzer available via experimental preference. (work in progress, all features not enabled yet). Package root preferences removed in favor of --package-root cmd line option. Reduced heap usage by ~25%. Fixed a memory leak ...

New Dart Editor Release WIth Substantial Performance Improvement

Dart Editor has a new build. Daniel Rubel  fills us in on the details : A  new Dart Editor build  is a va ilable at  www.dartlang.org/ editor .  Ch a nges  include: Fixed a notable Editor performance issue related to Pub and symlinks. Breaking Change  List: Deprecated List.addLast. Use List.add instead. dart:indexed_db - Remainder of APIs have been converted over to Futures (this was a continuation of work from the conversions done in M3). *** Note that as a result this version does not include support for developing Chrome Applications. If you're using that feature, you should stick with the M3 release for now. *** And as always, view the  changelog  for the full list of changes, and to get started with the Editor, see our tutorial . (Photo credit:  http://www.flickr.com/photos/thetomer/2910480487/ )

New Dart Editor Build with Pub Publish Available

Dart Editor has a new build. Daniel Rubel  fills us in on the details : A new Dart Editor build is available at  www.dartlang.org/editor .  Ch a nges include: Pub publish command More cleanups including:   on.click.add => onClick.listen   migrate Future.delayed()   migrate Uri.isAbsolute/hasAuthority() to getter   migrate Timer Minor fixes to Samples Breaking Chan ge  List: dart:html A number of Indexed DB APIs have been updated to return Futures, more will be updated. Deprecated events syntax has been removed. Element.dataAttributes has been removed, use Element.dataset instead. libraries: deprecated Collections-methods removed. New StringBuffer API, implementing StringSink interface. For more, see  the latest news . And as alway s, view the  changelog  for the full list of changes, and to get started with the Editor see our  tutorial .

New Dart Editor Build With Expanded Exception Debugging and Autocompletion in Import Statements

Dart Editor has new build. Eric Clayberg  fills us in on the details : A new Dart Editor build is available at  www.dartlang.org/editor .  Ch ang es include: Added a new launch configuration for Chrome packaged apps. Add the ability to specify the break-on-exceptions behavior in the debugger (break on all exceptions, uncaught, or no breaking). The editor now supports autocompletion in import statements! Improved labeling on empty Dart search results More navigation menu enhancements Fix for resolving package: imports in dart scripts in HTML files Various analysis and editor fixes Breaking Change List: Window.requestLayoutFrame is being renamed to window.setImmediate- it's functionally equivalent. The API is essentially a microtask API for executing callbacks after the current stack has unwound but before the next event and the rename is intended to be clearer about that. We've also improved the underlying behavior on IE (to use window.setImmed...

Important New Dart Editor Build with Support for New Dart Libraries

Dart Editor has a very significant new build that integrates support for many of the new v2 libraries. Eric Clayberg fills us in on the details  and warns that this build is likely to break existing code : A new Dart Editor build is available at  www.dartlang.org/editor .  Ch anges include: Mixin support in code completion and refactoring. Revised navigation menu items on editor context menu. Items only appear when applicable New “Find all” item to search for all declarations of a method In the command-line debugger, selecting a running isolate will display all the libraries for that isolate, and all the top-level variables for those libraries.  For both debuggers, break-on-exceptions is now enabled by default (Issue 4765). Added a new wizard for creating Chrome apps. Thanks to Adam Singer for the template for this wizard! Added a new wizard for creating a web-ui application. Thanks to Chris Buckett for the CL to make this happen! Editor ...

New Dart Editor Build with Expanded Windows and Chrome Apps Support

Dart Editor has new build. Eric Clayberg   fills us in on the details : A new Dart Editor build is available at  www.dartlang.org/editor .  Ch anges include: Windows love! You can now debug command-line applications from the editor! This was a long-awaited feature. The command-line dart_analyzer tool is now available in the Windows SDK (dart-sdk/bin/dart_analyzer. bat). Various Windows bug fixes and UX cleanup. Several changes in support of building Chrome Apps: Add a setting to allow the user to pass custom flags to dart2js (like --disallow-unsafe-eval). To configure this, right-click on a project and choose 'Properties'. Added a manifest.json editor. Improved support for Dart code in html files Syntax highlighting Analysis for inline scripts. Package version information is now shown in the Files View The Problems view can now optionally just show problems for the currently selected project. Improved css and yaml editors Filter log ...