<script src="packages/browser/dart.js"></script>
If you do not wish to use pub, you may host a copy of this file locally instead. In this case, you will need to update it yourself as necessary. We reserve the right to move this file in the repository, so we no longer recommend linking to it directly.
--
Consider asking HOWTO questions at Stack Overflow: http://stackoverflow.com/tags/dart
So if you are behind a corporate proxy server then pub will not work and you will have to host the file yourself.
It's the first time I'm going to use Pub, now with this breaking change, how many often I'll need to do Pub Update command?
--
Does this mean that live demos (http://dartbox2d.googlecode.com/git/demos.html) would no longer work unless the dart.js is checked in under that path?
Is there any danger when checking in a file under 'packages'?
On Tue, Jan 22, 2013 at 10:45 AM, Dominic Hamon <dom...@google.com> wrote:
Does this mean that live demos (http://dartbox2d.googlecode.com/git/demos.html) would no longer work unless the dart.js is checked in under that path?It depends on how you hosted that demo. How is the "packages" directory set up for that? How did you deal with the symlinks in there?
Is there any danger when checking in a file under 'packages'?
Depends on what you mean by "danger". :)Pub expects to be able to control that directory, so if you run a pub command on that package, it will replace the contents of that directory. If you're OK with that, then it's fine.
This is definitely understood to be an awkward corner of pub right now. We're hoping a deploy step and "path:" dependencies will make this less painful.- bob
--
On Tue, Jan 22, 2013 at 2:30 PM, Bob Nystrom <rnys...@google.com> wrote:On Tue, Jan 22, 2013 at 10:45 AM, Dominic Hamon <dom...@google.com> wrote:
Does this mean that live demos (http://dartbox2d.googlecode.com/git/demos.html) would no longer work unless the dart.js is checked in under that path?It depends on how you hosted that demo. How is the "packages" directory set up for that? How did you deal with the symlinks in there?This is running directly from the git repo. Right now, the demos don't have any package dependencies (though this will change in the future... dartvectormath is coming Snoo).Is there any danger when checking in a file under 'packages'?
Depends on what you mean by "danger". :)Pub expects to be able to control that directory, so if you run a pub command on that package, it will replace the contents of that directory. If you're OK with that, then it's fine.I don't have an issue with the directory being replaced but if dart.js is checked in, I'll be checking in a new version and essentially locally-hosting it. Do you see any issue with that?
On Tue, Jan 22, 2013 at 2:50 PM, Dominic Hamon <dom...@google.com> wrote:
On Tue, Jan 22, 2013 at 2:30 PM, Bob Nystrom <rnys...@google.com> wrote:On Tue, Jan 22, 2013 at 10:45 AM, Dominic Hamon <dom...@google.com> wrote:
Does this mean that live demos (http://dartbox2d.googlecode.com/git/demos.html) would no longer work unless the dart.js is checked in under that path?It depends on how you hosted that demo. How is the "packages" directory set up for that? How did you deal with the symlinks in there?This is running directly from the git repo. Right now, the demos don't have any package dependencies (though this will change in the future... dartvectormath is coming Snoo).Is there any danger when checking in a file under 'packages'?
Depends on what you mean by "danger". :)Pub expects to be able to control that directory, so if you run a pub command on that package, it will replace the contents of that directory. If you're OK with that, then it's fine.I don't have an issue with the directory being replaced but if dart.js is checked in, I'll be checking in a new version and essentially locally-hosting it. Do you see any issue with that?That's reasonable for now, but you may need to update it in the future. Since you are planning on using pub packages anyway, you'll probably want to switch to using the browser package at some point.
'Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:8080/packages/browser/dart.js'
Any suggestions?
I even tried to to create a new project, won't run, same error?
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.