3

我想知道是否有人无法让 Cmd-r 启动他们的应用程序?

它确实带来了铬,但我必须手动输入 localhost:3030 然后导航到我的实际应用程序。此外,即使在导航到应用程序后,服务器连接最终也会超时

java.net.ConnectException: Connection refused

我使用的是 OS X 10.7.5,Dart 编辑器版本 0.4.2_r20259。谢谢你。

2013 年 4 月 25 日:只是添加有关不起作用的详细信息,这是我尝试使用 Devon Carew 提到的预发布 dartEditor 进行编译时遇到的错误:

--- Mar 25, 2013 11:13:59 AM build.dart --machine --changed=web/quizry3.html ---
file:/Users/stephen/silly2/quizry-client/build.dart
build.dart returned error code 255

Uncaught Error: Class '_File' has no instance method 'open' with matching arguments.

NoSuchMethodError: incorrect number of arguments passed to method named 'open'
Receiver: Instance of '_File@0x1da10ec4'
Tried calling: open(Instance of 'FileMode')
Found: open(mode)
Stack Trace:
#0      Object.noSuchMethod (dart:core-patch:1884:25)
#1      ConsoleFileSystem.writeString (package:web_ui/src/file_system/console.dart:22:43)
#2      writeFile (package:web_ui/dwc.dart:104:27)
#3      emitFiles.<anonymous closure> (package:web_ui/dwc.dart:92:35)
#4      List.forEach (dart:core-patch:1219:8)
#5      emitFiles (package:web_ui/dwc.dart:92:18)
#6      run.<anonymous closure>.<anonymous closure> (package:web_ui/dwc.dart:86:29)
#7      _ThenFuture._sendValue (dart:async:463:24)
#8      _FutureImpl._setValue (dart:async:361:26)
#9      _FutureImpl._chain (dart:async:418:23)
#10     _FutureImpl._setOrChainValue (dart:async:429:27)
#11     _ThenFuture._sendValue (dart:async:473:21)
#12     _FutureImpl._setValue (dart:async:361:26)
#13     _FutureImpl._setOrChainValue (dart:async:437:16)
#14     _ThenFuture._sendValue (dart:async:473:21)
#15     _FutureImpl._setValue (dart:async:361:26)
#16     _FutureImpl._setOrChainValue (dart:async:437:16)
#17     _ThenFuture._sendValue (dart:async:473:21)
#18     _FutureImpl._setValue (dart:async:361:26)
#19     _CompleterImpl.complete (dart:async:190:21)
#20     FutureGroup.add.<anonymous closure> (package:web_ui/src/utils.dart:139:28)
#21     _ThenFuture._sendValue (dart:async:463:24)
#22     _FutureImpl._setValue (dart:async:361:26)
#23     _FutureImpl._setOrChainValue (dart:async:437:16)
#24     _ThenFuture._sendValue (dart:async:473:21)
#25     _FutureImpl._setValue (dart:async:361:26)
#26     _CatchErrorFuture._sendValue (dart:async:485:14)
#27     _FutureImpl._setValue (dart:async:361:26)
#28     _FutureImpl._setOrChainValue (dart:async:437:16)
#29     _ThenFuture._sendValue (dart:async:473:21)
#30     _FutureImpl._setValue (dart:async:361:26)
#31     _FutureImpl._setOrChainValue (dart:async:437:16)
#32     _ThenFuture._sendValue (dart:async:473:21)
#33     _FutureImpl._setValue (dart:async:361:26)
#34     _FutureListenerWrapper._sendValue (dart:async:221:21)
#35     _FutureImpl._setValue (dart:async:361:26)
#36     _FutureListenerWrapper._sendValue (dart:async:221:21)
#37     _FutureImpl._setValue (dart:async:361:26)
#38     _FutureImpl._setOrChainValue (dart:async:437:16)
#39     _ThenFuture._sendValue (dart:async:473:21)
#40     _FutureImpl._setValue (dart:async:361:26)
#41     _FutureListenerWrapper._sendValue (dart:async:221:21)
#42     _FutureImpl._setValue (dart:async:361:26)
#43     _FutureImpl._setOrChainValue (dart:async:437:16)
#44     _ThenFuture._sendValue (dart:async:473:21)
#45     _FutureImpl._setValue (dart:async:361:26)
#46     _CompleterImpl.complete (dart:async:190:21)
#47     _SendPortImpl.call.<anonymous closure> (dart:isolate-patch:106:27)
#48     _ReceivePortImpl._handleMessage (dart:isolate-patch:81:92)


Unhandled exception:
Class '_File' has no instance method 'open' with matching arguments.

NoSuchMethodError: incorrect number of arguments passed to method named 'open'
Receiver: Instance of '_File@0x1da10ec4'
Tried calling: open(Instance of 'FileMode')
Found: open(mode)
#0      _FutureImpl._scheduleUnhandledError.<anonymous closure> (dart:async:391:9)
#1      Timer.run.<anonymous closure> (dart:async:2362:21)
#2      Timer.run.<anonymous closure> (dart:async:2370:13)
#3      Timer.Timer.<anonymous closure> (dart:async-patch:15:15)
#4      _Timer._createTimerHandler._handleTimeout (dart:io:6385:28)
#5      _Timer._createTimerHandler._handleTimeout (dart:io:6393:7)
#6      _Timer._createTimerHandler.<anonymous closure> (dart:io:6401:23)
#7      _ReceivePortImpl._handleMessage (dart:isolate-patch:81:92)
4

1 回答 1

2

此预发布版本可能会为您解决连接被拒绝的问题:

http://gsdview.appspot.com/dart-editor-archive-trunk/20424/

于 2013-03-24T09:54:40.673 回答