I've been eying Dart for a while and want to give it a shot developing a new web-app at work. Unfortunately both me and my coworker have run into several set-backs.
Firstly, none of the samples work out of the box. Opening a sample will immediately show this in the "Output" tab:
--- 07-Nov-2013 16:50:02 Running pub get ... --- Pub get failed, [1] Resolving dependencies...Failed NSS_Init call.
This is an unexpected error. Please run
pub --trace 'get'
and include the results in a bug report on http://dartbug.com/new.
** Warning: Application may fail to run since packages did not get installed.Try running pub get again. **
Attempting to launch any of the simpler samples (without Polymer) will fail with this message:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:3030/solar/web/packages/browser/dart.js
Adding the dart.js
file manually to the project and altering the path will correct the issue.
But anything that requires the use of the Pub package manager will fail with the message Failed NSS_Init call.
as shown above.
Has anyone else experienced these problems when staring out with Dart? Any tips or suggestions?
EDIT: I'm using Windows 8 and downloaded the 64bit Dart Editor archive.
EDIT 2:
This is the output from the --trace
flag (which is run with pub get --trace
and not pub --trace 'get'
as shown in the error message above...):
> pub get --trace
Failed NSS_Init call.
---- Log transcript ----
FINE: Pub 0.8.10+3.r29803
IO : Spawning cmd /c ver
IO : Finished ver. Exit code 0.stdout:Microsoft Windows [Version 6.2.9200]Nothi
ng output on stderr.
SLVR: Solving dependencies:
| - browser any from hosted (browser)
IO : Get versions from https://pub.dartlang.org/api/packages/browser.
SLVR: BacktrackingSolver took 0:00:00.047007 seconds.
| - Requested 1 version lists
| - Looked up 0 cached version lists
| - Requested 0 pubspecs
| - Looked up 1 cached pubspecs
|
MSG : Resolving dependencies...
FINE: Clean up system cache temp directory C:\Users\myusername\AppData\Roaming\Pub\
Cache\_temp.
ERR : Failed NSS_Init call.
---- End log transcript ----