V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
WayneLyn
V2EX  ›  程序员

求助 dart 在 webstorm 上开发出现的问题

  •  
  •   WayneLyn · 2019-04-12 17:45:13 +08:00 · 2096 次点击
    这是一个创建于 1842 天前的主题,其中的信息可能已经有所发展或是发生改变。
    今天搭建好环境在 webstorm 上点击 run 运行的时候提示
    Observatory server failed to start after 1 tries。。重试几次后报错
    Could not start Observatory HTTP server:
    SocketException: Failed host lookup: 'localhost' (OS Error: nodename nor servname provided, or not known, errno = 8)
    #0 _NativeSocket.lookup.<anonymous closure> (dart:io/runtime/binsocket_patch.dart:386:9)
    #1 _RootZone.runUnary (dart:async/zone.dart:1379:54)
    #2 _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
    #3 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)

    环境是 dart2.2 webstorm 是最新版。。代码基本没啥东西,就一个 hello world,点 run 的时候我看运行的是 /usr/local/opt/dart/libexec/bin/dart --enable-vm-service:64289 main.dart... 感觉是这个 vm-service 没启动成功,不知道怎么解决啊
    1 条回复    2020-07-25 22:47:57 +08:00
    zhonghanwen
        1
    zhonghanwen  
       2020-07-25 22:47:57 +08:00
    flutter run -d chrome --web-port=8080 --web-hostname=127.0.0.1
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1256 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:51 · PVG 07:51 · LAX 16:51 · JFK 19:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.