【发布时间】:2015-08-29 20:50:58
【问题描述】:
我是 Dart 新手,想开始为 Dart 开发应用程序。现在,我只是为此使用dart2js --minify,效果很好,但是当我需要通过更改代码、运行代码、更改代码、运行代码等来调试我的错误时,速度真的很慢。这需要大量的编译,所以虽然dart2js 通常相当快,但使用dart2js 调试 Dart Web 应用程序真的很慢。
我想在 Dartium 中使用 Dart VM,并按照this video 的指示下载了它(虽然我承认我没有观看整个视频,因为其中一部分是关于我不使用的 Atom)。但是,当我打开 Dartium(./chrome 和 ./chrome-wrapper)时,它看起来与前面的常规 Chrome 没有任何不同。没有--no-sandbox 警告,用户代理与Chromium 中的相同(没有(Dart))。当我尝试使用<script type="application/dart" [...]> 运行 Dart Web 应用程序时,它不起作用。
我在运行 Dartium 时也遇到以下错误(./chrome 和 ./chrome-wrapper 上出现同样的错误):
[18997:18997:0829/163445:ERROR:browser_main_loop.cc(163)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
Created new window in existing browser session.
[19044:19044:0829/163446:ERROR:zygote_linux.cc(587)] write: Broken pipe
[0829/163446:ERROR:nacl_helper_linux.cc(282)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly
但是,当我转到the link in the error 时,指示指的是一堆我不认识的命令和文件。
有人可以帮我弄清楚如何构建 Dartium 吗?非常感谢!
附加信息:
- 我运行的是 Ubuntu 15.04,我的默认浏览器是 Chromium。
- 当我同时运行
./chrome和./chrome-wrapper时,我关闭了原来的 Chromium。 - 我已经上传了我的项目to GitHub。
【问题讨论】:
-
当我从没有参数的命令行启动 Dartium 时,我得到了同样的错误信息。我通常从 WebStorm 启动 Dartium,这样的消息是不可见的,但我也从未遇到过与此错误相关的问题。有关更多信息,请参阅我的答案。如果还是不行,请提供更多项目信息(
pubspec.yaml,目录结构,源文件内容) -
如果你想看我的项目,你可以去here。
-
我看了一眼,一切似乎都很好。看到你接受了我的项目,我假设你已经成功了。不要犹豫,问你是否又被卡住了。