Closed DartBot closed 9 years ago
Comment by munificent
I can help you understand what's going on here:
some diagnostics, whjich LOOK like install diagnostics but did not appear until I ran the create project and are time stamped later than the creation time of the project files.
These are errors coming from installing the dependencies for your project, not from installing the Editor itself.
When you create a new web project, it sets up some default stuff for you. One thing Dart web apps need is to get wired up to the HTML page hosting the app. This works by including a special Javascript file. This file comes from pub package called "browser".
So when you create a new web app, one of the first things its does is install the latest version of the "browser" package from pub.dartlang.org so your app can use it. That's what this is doing:
Downloading browser 0.6.14 from hosted...
It downloads a compressed file containing the contents of the package and then uncompresses it using tar. It seems that failed on your machine:
tar: could not chdir to '/Users/terry/.pub-cache/_temp/dirjsdMGt'
I'm not sure why it failed. It could be a permissions error, or maybe your hard drive is close to being full and there isn't enough room, or it could be something else.
I cannot find the subdirectory .pub-cache
It will be in your main user directory. In the Finder, that's the little home icon. However, because the name starts with ".", it's hidden in Finder. You can see it in the terminal but (by design) it's normally hidden in the Finder. There are actually a bunch of other files and directories in your home directory that you never know about because they start with ".".
I don't ever use command line operation (I'm such an innocent!)
We all start out as innocents! :)
Oberon:~ terry$ pub --trace 'install' -bash: pub: command not found
When you run a command in the terminal like "pub", all that means is "run the executable named pub". It has to know where that executable is. By default, there are a couple of directories it looks in, which is called your "search path", or just "PATH". The Editor's "bin" directory, which is where pub lives, isn't on your PATH, so it can't find it. (The Editor doesn't have this problem when it runs pub because it specifies the full path to pub instead of just its name.)
In this case, don't bother worrying about this. pub --trace won't help here.
I DON'T KNOW IF THE EDITOR UPDATE WORKED OR NOT, OR HOW TO DOWNLOAD A KNOWN-TO-BE-WORKING VERSION
The good news: your Editor updated just fine. You don't need to download anything.
The problem you ran into is only in your new app. You can try running pub install (from within the Editor) and see if it goes through. If so, it may have just been a transient networking issue preventing the package from downloading.
I'll close this bug for now because your Editor is working fine, but if you still can't get pub install to run on your new app, reply here and I'll open it back up.
Cheers!
Added CannotReproduce label.
This comment was originally written by t.j.cleat...@gmail.com
Thank you for your excellent response - I had worked around the problem of course but nevertheless I feel much better armed now :) I have since moved on to build 25822 with no problems - cheers!
Originally opened as dart-lang/sdk#12225
This issue was originally filed by t.j.cle...@gmail.com
What steps will reproduce the problem?
What is the expected output? New project with sample <app>.dart/css/html files
What do you see instead? Sample <app> as expected PLUS .....
some diagnostics, whjich LOOK like install diagnostics but did not appear until I ran the create project and are time stamped later than the creation time of the project files.
+++++++++++++++++++++++++++++++++++++++++++++++
--- Aug 4, 2013 9:32:52 AM Running pub install ... --- Pub install failed, [1] Resolving dependencies....... Downloading browser 0.6.14 from hosted... tar: could not chdir to '/Users/terry/.pub-cache/_temp/dirjsdMGt'
Failed to extract .tar.gz stream to /Users/terry/.pub-cache/_temp/dirjsdMGt (exit code 1).
0 extractTarGz.<anonymous closure> (file:///Volumes/data/b/build/slave/dart-editor-mac-trunk/build/dart/sdk/lib/_internal/pub/lib/src/io.dart:363:7)
1 _ThenFuture._zonedSendValue (dart:async/future_impl.dart:371:24)
2 _TransformFuture._sendValue.<anonymous closure> (dart:async/future_impl.dart:348:48)
3 _ZoneBase._runInZone (dart:async/zone.dart:82:17)
4 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
5 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
6 _TransformFuture._sendValue (dart:async/future_impl.dart:348:26)
7 _FutureImpl._setValueUnchecked (dart:async/future_impl.dart:184:26)
8 _FutureImpl._asyncSetValue.<anonymous closure> (dart:async/future_impl.dart:218:25)
9 _asyncRunCallback (dart:async/event_loop.dart:9:15)
10 _createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:8:13)
11 _Timer._createTimerHandler._handleTimeout (timer_impl.dart:96:21)
12 _Timer._createTimerHandler.<anonymous closure> (timer_impl.dart:112:23)
13 _ReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:81:92)
This is an unexpected error. Please run
pub --trace 'install'
and include the results in a bug report on http://dartbug.com/new.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
What version of the product are you using? Build 25719
On what operating system? Mac OS 10.7.5 LION
Please provide any additional information below.
This is not the first time I have loaded and installed the latest editor - it always went smoothly before and I have not changed any system directories or files.
I am running under an admin account with full read/write access to disk.
I cannot find the subdirectory .pub-cache I don't ever use command line operation (I'm such an innocent!) but I did bring up my terminal app - no joy there, see beneath
Oberon:~ terry$ pub --trace 'install' -bash: pub: command not found
I DON'T KNOW IF THE EDITOR UPDATE WORKED OR NOT, OR HOW TO DOWNLOAD A KNOWN-TO-BE-WORKING VERSION
HELP PLEASE
Terry Cleaton