Discussion:
[dart-misc] installing 'resource' library
Nick Reid
2016-02-05 20:10:57 UTC
Permalink
Hi all,

I'm trying to install the resource library that the Dart Team have released
for importing static resources. For some reason pub can't seem to do this
even though I can successfully download a copy using `pub cache add
resource`. When I run `pub install` I get

Package resource has no versions that match >=1.1.0 <2.0.0 derived from:
- <my package name> depends on version ^1.1.0

How do I get this library into my project? My dev machine is Windows 10 and
I'm using the IntelliJ plugin if that matters. Any assistance you could
give would be awesome.

Thanks,
Nick
--
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
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Natalie Weizenbaum' via Dart Misc
2016-02-05 20:15:04 UTC
Permalink
It looks like you have a version conflict. Try running pub get with
--verbosity=solver. That should provide more information about the actual
conflict that's causing the download to fail.
Post by Nick Reid
Hi all,
I'm trying to install the resource library that the Dart Team have
released for importing static resources. For some reason pub can't seem to
do this even though I can successfully download a copy using `pub cache add
resource`. When I run `pub install` I get
- <my package name> depends on version ^1.1.0
How do I get this library into my project? My dev machine is Windows 10
and I'm using the IntelliJ plugin if that matters. Any assistance you could
give would be awesome.
Thanks,
Nick
--
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
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
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
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Don Olmstead
2016-02-05 20:28:44 UTC
Permalink
I had a similar issue. I believe it was due to the SDK. Believe resource
requires 1.14 at minimum.

On Fri, Feb 5, 2016 at 12:15 PM, 'Natalie Weizenbaum' via Dart Misc <
Post by 'Natalie Weizenbaum' via Dart Misc
It looks like you have a version conflict. Try running pub get with
--verbosity=solver. That should provide more information about the actual
conflict that's causing the download to fail.
Post by Nick Reid
Hi all,
I'm trying to install the resource library that the Dart Team have
released for importing static resources. For some reason pub can't seem to
do this even though I can successfully download a copy using `pub cache add
resource`. When I run `pub install` I get
- <my package name> depends on version ^1.1.0
How do I get this library into my project? My dev machine is Windows 10
and I'm using the IntelliJ plugin if that matters. Any assistance you could
give would be awesome.
Thanks,
Nick
--
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
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
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
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
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
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Nick Reid
2016-02-05 21:01:09 UTC
Permalink
That was it! Thank you! Now I can get back to the task at hand.
Post by Don Olmstead
I had a similar issue. I believe it was due to the SDK. Believe resource
requires 1.14 at minimum.
On Fri, Feb 5, 2016 at 12:15 PM, 'Natalie Weizenbaum' via Dart Misc <
Post by 'Natalie Weizenbaum' via Dart Misc
It looks like you have a version conflict. Try running pub get with
--verbosity=solver. That should provide more information about the
actual conflict that's causing the download to fail.
Post by Nick Reid
Hi all,
I'm trying to install the resource library that the Dart Team have
released for importing static resources. For some reason pub can't seem to
do this even though I can successfully download a copy using `pub cache add
resource`. When I run `pub install` I get
- <my package name> depends on version ^1.1.0
How do I get this library into my project? My dev machine is Windows 10
and I'm using the IntelliJ plugin if that matters. Any assistance you could
give would be awesome.
Thanks,
Nick
--
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
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
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
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
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
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Nick Reid
2016-02-05 21:00:04 UTC
Permalink
Thanks for the tip! It turned out that my SDK version needed to be
updated, although pub gave no indication this was an issue. Even with
verbosity on it just denied the existence of the version I specified.
Curiously, pub did tell me about older versions that didn't satisfy the
constraint. Perhaps this is a bug?
Post by 'Natalie Weizenbaum' via Dart Misc
It looks like you have a version conflict. Try running pub get with
--verbosity=solver. That should provide more information about the actual
conflict that's causing the download to fail.
Post by Nick Reid
Hi all,
I'm trying to install the resource library that the Dart Team have
released for importing static resources. For some reason pub can't seem to
do this even though I can successfully download a copy using `pub cache add
resource`. When I run `pub install` I get
- <my package name> depends on version ^1.1.0
How do I get this library into my project? My dev machine is Windows 10
and I'm using the IntelliJ plugin if that matters. Any assistance you could
give would be awesome.
Thanks,
Nick
--
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
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
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
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Natalie Weizenbaum' via Dart Misc
2016-02-05 21:58:06 UTC
Permalink
Pub's version solver's error messages are currently not great. It's a known
issue, and one I intend to fix, but it'll take a serious amount of effort
due to the complexity of the underlying problem so I haven't gotten around
to it yet.
Post by Nick Reid
Thanks for the tip! It turned out that my SDK version needed to be
updated, although pub gave no indication this was an issue. Even with
verbosity on it just denied the existence of the version I specified.
Curiously, pub did tell me about older versions that didn't satisfy the
constraint. Perhaps this is a bug?
Post by 'Natalie Weizenbaum' via Dart Misc
It looks like you have a version conflict. Try running pub get with
--verbosity=solver. That should provide more information about the
actual conflict that's causing the download to fail.
Post by Nick Reid
Hi all,
I'm trying to install the resource library that the Dart Team have
released for importing static resources. For some reason pub can't seem to
do this even though I can successfully download a copy using `pub cache add
resource`. When I run `pub install` I get
- <my package name> depends on version ^1.1.0
How do I get this library into my project? My dev machine is Windows 10
and I'm using the IntelliJ plugin if that matters. Any assistance you could
give would be awesome.
Thanks,
Nick
--
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
---
You received this message because you are subscribed to the Google
Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send
--
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
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
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
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
DoHyung Kim
2016-02-06 09:58:06 UTC
Permalink
Nick,

FYI.

If you are to use it on the server side, it will work like a charm. But
when it comes to the browsers, still has some issues to be resolved before
it is fully useful there.

https://github.com/dart-lang/sdk/issues/25594

DH
Post by Nick Reid
Hi all,
I'm trying to install the resource library that the Dart Team have
released for importing static resources. For some reason pub can't seem to
do this even though I can successfully download a copy using `pub cache add
resource`. When I run `pub install` I get
- <my package name> depends on version ^1.1.0
How do I get this library into my project? My dev machine is Windows 10
and I'm using the IntelliJ plugin if that matters. Any assistance you could
give would be awesome.
Thanks,
Nick
--
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
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...