-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Importing dart:io causes chat-client.dart to stop working #3582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Set owner to @devoncarew. |
I'm not sure if chat-client.dart referes to something we ship. I suspect the issue is that chat-client.dart is a web app, and probably imports dat:html. In which case, importing dart:io will not work. It think the resolution for this issue is to add a warning or an error when we detect incompatible imports. In the simple case, displaying an error if the same library tries to import both dart:io and dart:html. Set owner to @bwilkerson. |
Konstantin just checked in a CL so that importing both dart:html and dart:io will produce a warning. Please re-open this issue if that doesn't satisfy the need. Added Fixed label. |
Changes: ``` > git log --format="%C(auto) %h %s" ec35d46..28a2503 https://dart.googlesource.com/pub.git/+/28a2503d Bump analyzer from 4.7.0 to 5.1.0 (#3582) https://dart.googlesource.com/pub.git/+/8dba9574 Crc32c checksum validation and retry of archive downloads (#3546) https://dart.googlesource.com/pub.git/+/27da43ec Allow `dart pub add` with existing package, update constraint instead of adding (#3570) https://dart.googlesource.com/pub.git/+/2e9338e5 Do resolution before publishing. (#3565) https://dart.googlesource.com/pub.git/+/0a487534 Migrate removed command `pub` to `dart pub` in docs & messages (#3506) https://dart.googlesource.com/pub.git/+/e2720c27 Fail gracefully when run inside the pub-cache (#3471) https://dart.googlesource.com/pub.git/+/a76c1933 Upgrade `package:tar` to 0.5.6 (#3540) https://dart.googlesource.com/pub.git/+/c065e559 Remove unnecessary nullability (#3547) https://dart.googlesource.com/pub.git/+/8e306f33 Use pub.dev in writing (#3528) https://dart.googlesource.com/pub.git/+/08d71024 Use unicode (if available) when drawing file-lists (#3541) https://dart.googlesource.com/pub.git/+/a0ca4226 Don't be conservative in upgrade --major-versions without specific pa… (#3539) https://dart.googlesource.com/pub.git/+/a59d890e Show file size (#3509) https://dart.googlesource.com/pub.git/+/b0ba5cc6 Avoid packageGraph (and therefore getExecutableForCommand) depending on the lock-file (#3533) ``` Diff: https://dart.googlesource.com/pub.git/+/ec35d46261b610e558dfd0d8525ca3fc8387b4b7~..28a2503d7f4806e6854e3ed0d783f065abfd1b5f/ Change-Id: Ia366f75da16982fb9588a0d7aa18e109daea8f8c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/262346 Reviewed-by: Jonas Jensen <[email protected]> Commit-Queue: Sigurd Meldgaard <[email protected]>
importint dart:io causes chat-client.dart to stop working
////////////////////////////////////////////////////////////////////////////////////
Editor Version: 8370
////////////////////////////////////////////////////////////////////////////////////
OS: Mac OS X - x86_64 (10.7.4)
SDK installed = true
Dartium installed = true
AnalysisServer enabled = true
////////////////////////////////////////////////////////////////////////////////////
!SESSION 2012-06-12 09:04:18.710 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_31
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -keyring ${user.home}/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -consoleLog -data ../../../workspace -keyring ${user.home}/.eclipse_keyring -showlocation
!ENTRY com.google.dart.tools.core 4 0 2012-06-12 09:32:20.578
!MESSAGE Failed to resolve import #dart:io in file:${user.home}/Downloads/dartchat/step02/chat-server.dart
!ENTRY com.google.dart.tools.core 4 0 2012-06-12 09:32:20.583
!MESSAGE Failed to resolve import #dart:io in file:${user.home}/Downloads/dartchat/step02/chat-server.dart
!ENTRY com.google.dart.tools.core 4 0 2012-06-12 09:32:24.197
!MESSAGE Failed to resolve import #dart:io in file:${user.home}/Downloads/dartchat/step02/chat-server.dart
!ENTRY com.google.dart.tools.core 4 0 2012-06-12 09:32:24.197
!MESSAGE Failed to resolve import #dart:io in file:${user.home}/Downloads/dartchat/step02/chat-server.dart
!ENTRY com.google.dart.tools.debug.core 4 0 2012-06-12 09:42:07.587
!MESSAGE Connection reset
!STACK 0
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at sun.nio.cs.StreamDecoder.read0(StreamDecoder.java:107)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:93)
at java.io.InputStreamReader.read(InputStreamReader.java:151)
at com.google.dart.tools.debug.core.server.VmConnection.readJson(VmConnection.java:594)
at com.google.dart.tools.debug.core.server.VmConnection.processVmEvents(VmConnection.java:578)
at com.google.dart.tools.debug.core.server.VmConnection.access$1(VmConnection.java:575)
at com.google.dart.tools.debug.core.server.VmConnection$1.run(VmConnection.java:101)
at java.lang.Thread.run(Thread.java:680)
!ENTRY com.google.dart.tools.debug.core 4 0 2012-06-12 09:45:47.073
!MESSAGE Could not launch browser - process terminated while trying to connect:
Dartium stderr: 2012-06-12 16:44:09.316 Chromium Helper[26757:1d03] Connection Invalid error for service com.apple.hiservices-xpcservice.$DateTime: 2012/02/20 07:36:10 $
2012-06-12 16:44:09.317 Chromium Helper[26757:207] Error received in message reply handler: Connection invalid
2012-06-12 16:44:09.318 Chromium Helper[26757:207] Error received in message reply handler: Connection invalid
2012-06-12 16:44:09.320 Chromium Helper[26757:207] Error received in message reply handler: Connection invalid
2012-06-12 16:44:09.321 Chromium Helper[26757:207] Error received in message reply handler: Connection invalid
nssecurity:DynamicRegistrationFunction(): Netscape Security Wrapper Initialized 0.99.10
The text was updated successfully, but these errors were encountered: