I am new to Dart and want to start developing apps for Dart. Right now, I am simply using dart2js --minify
for this, which works well, but is really slow when I need to debug my mistakes by changing the code, running the code, changing the code, running the code, etc.. This requires lots of compiling, so while dart2js
is, in general, pretty fast, debugging Dart Web apps with dart2js
is really slow.
I would like to use the Dart VM in Dartium and downloaded it per the directions of this video (although admittedly, I didn't watch the whole video because part of it was about Atom which I don't use). However, when I open Dartium (./chrome
and ./chrome-wrapper
), it doesn't look any different front regular Chrome. There is no --no-sandbox
warning and the user agent is the same as in Chromium (no (Dart)
). When I try to run a Dart Web app with <script type="application/dart" [...]>
, it doesn't work.
I also get the following error when running Dartium (the same error occurs on ./chrome
and ./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
However, when I go to the link in the error, the directions refer to a bunch of commands and files I don't recognize.
Can someone please help me figure out how to build Dartium? Thank you so much!
Additional Info:
./chrome
and ./chrome-wrapper
, I had my original Chromium closed.Maybe Dartium is connecting to an existing version of Chromium. Try to launch Dartium with --user-data-dir=/tmp/dartium_dir
. This will make sure that it launches separately from any existing Chromium.