Discussion:
[dart-misc] [dart-announce] Dart 1.16 is now available
'Kevin Moore' via Dart Announcements
2016-04-26 19:41:08 UTC
Permalink
The release announcement
<http://news.dartlang.org/2016/04/dart-116-faster-tools-updated-html-apis.html>
and the changelog
<https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md> have all of the
details!

Core library changes

-

dart:convert
-

Added BASE64URL codec and corresponding Base64Codec.urlSafe
constructor.
-

Introduce ChunkedConverter and deprecate chunked methods on Converter.
-

dart:html

There have been a number of BREAKING changes to align APIs with recent
changes in Chrome. These include:
-

Chrome's ShadowRoot interface no longer has the methods getElementById
, getElementsByClassName, andgetElementsByTagName, e.g.,

elem.shadowRoot.getElementsByClassName('clazz')

should become:

elem.shadowRoot.querySelectorAll('.clazz')

-

The clipboardData property has been removed from KeyEvent and Event.
It has been moved to the newClipboardEvent class, which is now used
by copy, cut, and paste events.
-

The layer property has been removed from KeyEvent and UIEvent. It has
been moved to MouseEvent.
-

The Point get page property has been removed from UIEvent. It still
exists on MouseEvent and Touch.

There have also been a number of other additions and removals to
dart:html, dart:indexed_db, dart:svg,dart:web_audio, and dart:web_gl that
correspond to changes to Chrome APIs between v39 and v45. Many of the
breaking changes represent APIs that would have caused runtime exceptions
when compiled to Javascript and run on recent Chrome releases.
-

dart:io
- Added SecurityContext.alpnSupported, which is true if a platform
supports ALPN, and false otherwise.

<https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md#javascript-interop>JavaScript
interop

For performance reasons, a potentially BREAKING change was added for
libraries that use JS interop. Any Dart file that uses @JS annotations on
declarations (top-level functions, classes or class members) to interop
with JavaScript code will require that the file have the annotation @JS() on
a library directive.

@JS()library my_library;

The analyzer will enforce this by generating the error:

The @JS() annotation can only be used if it is also declared on the library
directive.

If part file uses the @JS() annotation, the library that uses the part
should have the @JS() annotation e.g.,

// ***@JS()library library_1;
import 'package:js/js.dart';
part 'part_1.dart';

// part_1.dartpart of library_1;
@JS("frameworkStabilizers")external List<FrameworkStabilizer> get frameworkStabilizers;

If your library already has a JS module e.g.,

@JS('array.utils')library my_library;

Then your library will work without any additional changes.
<https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md#analyzer>Analyzer

-

Static checking of for in statements. These will now produce static
warnings:

// Not Iterable.for (var i in 1234) { ... }
// String cannot be assigned to int.for (int n in <String>["a", "b"]) { ... }


<https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md#tool-changes>Tool
Changes

-

Pub
-

pub serve now provides caching headers that should improve the
performance of requesting large files multiple times.
-

Both pub get and pub upgrade now have a --no-precompile flag that
disables precompilation of executables and transformed dependencies.
-

pub publish now resolves symlinks when publishing from a Git
repository. This matches the behavior it always had when publishing a
package that wasn't in a Git repository.
-

Dart Dev Compiler
-

The experimental dartdevc executable has been added to the SDK.
-

It will help early adopters validate the implementation and provide
feedback. dartdevc is not yet ready for production usage.
-

Read more about the Dart Dev Compiler here
<https://github.com/dart-lang/dev_compiler>.
--
For more news and information, visit https://plus.google.com/+dartlang

To join the conversation, visit https://groups.google.com/a/dartlang.org/
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Monty Rasmussen
2016-04-27 03:48:14 UTC
Permalink
We Windows 10 users are having a hard time with this release. Many projects fail to load with the new Dartium. Pub Serve just keeps spitting out messages about loading cached assets, and the projects never completely load in Dartium. A number of users, all on Win10, have complained about this problem on the dartlang Slack channel.
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Dan Grove' via Dart Misc
2016-04-27 03:49:37 UTC
Permalink
Adding a few relevant people to this thread.

Can you file a bug with repro instructions?
Post by Monty Rasmussen
We Windows 10 users are having a hard time with this release. Many
projects fail to load with the new Dartium. Pub Serve just keeps spitting
out messages about loading cached assets, and the projects never completely
load in Dartium. A number of users, all on Win10, have complained about
this problem on the dartlang Slack channel.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Dennis Kaselow
2016-04-27 04:25:26 UTC
Permalink
It's this issue:
https://youtrack.jetbrains.com/oauth?state=%2Fissue%2FWEB-21355
https://github.com/dart-lang/sdk/issues/26260#issuecomment-213425536

A new version of WebStorm should be released this week where this bug is
fixed. As a workaround you can use the port that is used when pub serve is
started instead of the proxy port that WebStorm uses, e.g. http://localhost
:<pubServePort> instead of http://localhost:63342/<your
project>/web/index.html

On Wed, Apr 27, 2016 at 5:49 AM, 'Dan Grove' via Dart Misc <
Post by 'Dan Grove' via Dart Misc
Adding a few relevant people to this thread.
Can you file a bug with repro instructions?
Post by Monty Rasmussen
We Windows 10 users are having a hard time with this release. Many
projects fail to load with the new Dartium. Pub Serve just keeps spitting
out messages about loading cached assets, and the projects never completely
load in Dartium. A number of users, all on Win10, have complained about
this problem on the dartlang Slack channel.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Monty Rasmussen
2016-04-27 04:33:16 UTC
Permalink
Good to know. Thank you for the quick response!
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Alexander Doroshko
2016-04-27 09:44:16 UTC
Permalink
The problem is reproducible on all OSes and it is at WebStorm / IntelliJ
IDEA side, they don't play nice with new 'caching' feature of Pub Serve
from Dart SDK 1.16.
Workaround is to use Pub Serve directly.

It is already fixed and the fix is already available for IntelliJ IDEA
users: you need to download 2016.1.2 RC from
https://confluence.jetbrains.com/display/IDEADEV/IDEA+2016.1+EAP and
update Dart plugin.

WebStorm 2016.1.2 RC with the fix will appear in few hours in
https://confluence.jetbrains.com/display/WI/WebStorm+EAP

Official 2016.1.2 releases are expected in few days.
Post by Monty Rasmussen
We Windows 10 users are having a hard time with this release. Many projects fail to load with the new Dartium. Pub Serve just keeps spitting out messages about loading cached assets, and the projects never completely load in Dartium. A number of users, all on Win10, have complained about this problem on the dartlang Slack channel.
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Günter Zöchbauer
2016-04-27 15:10:15 UTC
Permalink
Interesting. This works fine for me since a few days in bleeding edge on
Linux.
Post by Alexander Doroshko
The problem is reproducible on all OSes and it is at WebStorm / IntelliJ
IDEA side, they don't play nice with new 'caching' feature of Pub Serve
from Dart SDK 1.16.
Workaround is to use Pub Serve directly.
It is already fixed and the fix is already available for IntelliJ IDEA
users: you need to download 2016.1.2 RC from
https://confluence.jetbrains.com/display/IDEADEV/IDEA+2016.1+EAP and
update Dart plugin.
WebStorm 2016.1.2 RC with the fix will appear in few hours in
https://confluence.jetbrains.com/display/WI/WebStorm+EAP
Official 2016.1.2 releases are expected in few days.
Post by Monty Rasmussen
We Windows 10 users are having a hard time with this release. Many
projects fail to load with the new Dartium. Pub Serve just keeps spitting
out messages about loading cached assets, and the projects never completely
load in Dartium. A number of users, all on Win10, have complained about
this problem on the dartlang Slack channel.
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Alexander Doroshko
2016-05-11 13:44:12 UTC
Permalink
Those who use WebStorm or IntelliJ IDEA for Dart development, please
update to the recently released 2016.1.2 version, it contains some fixes
related to Dart SDK 1.16.
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Continue reading on narkive:
Loading...