gpt4 book ai didi

dart - 使用 Dart 编辑器让应用程序在 Chromium 中启动

转载 作者:行者123 更新时间:2023-12-02 02:04:51 25 4
gpt4 key购买 nike

我想知道是否有人在让 Cmd-r 启动他们的应用程序时遇到问题?

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

java.net.ConnectException: 连接被拒绝

我使用的是 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)

最佳答案

此预发布版本可能为您修复连接被拒绝的问题:

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

关于dart - 使用 Dart 编辑器让应用程序在 Chromium 中启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15590296/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com