Questions tagged [dart-pub]

Pub is a package manager for Dart applications and libraries.

Pub is a package manager for Dart applications and libraries. You can find packages to use in a project or publish packages to the package repository. Pub automatically keeps track of dependencies to other packages and makes sure that the dependencies use the right version of a package.

Basics:

  • Use pub get to get dependencies
  • Use pub upgrade to upgrade a dependency
  • Use pub publish to make your library available for others

Resources:

1128 questions
0
votes
1 answer

Dart pubs rename failed

I get the following error when running 'pub get' IO : Deleting directory C:\Users\HANGS_~1\AppData\Local\Temp\pub_08dcace7-6d3d-11e3-bed4-2016d87b1a0e. IO : Renaming directory…
richard
  • 2,887
  • 5
  • 26
  • 36
0
votes
1 answer

Dart web application can not import local package

I have developed a simple library (called picasawebalbums) that I wish to import in another web application. I have added the the following to pubspect.yaml picasawebalbums: path: C:\Users\hangs_000\Documents\GitHub\PicasaWebAlbums But the…
richard
  • 2,887
  • 5
  • 26
  • 36
0
votes
1 answer

How to run Dart "pub get" from inside Eclipse?

I just downloaded the Dart Eclipse plugin and am trying to figure out how to run pub get from inside my new project (to resolve dependencies). I installed the plugin via Help >> Install New Software I went to Window >> Preferences >> Dart and…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
0
votes
1 answer

How to include pub package path.dart in pubspec.yaml

I am working on an http server POC based on the route package demo. It requires the path package which states that my pubspec.yaml file contain the folowing: name: poc description: Proof of Concept dependencies: route: any path:any The editor…
Nathaniel Johnson
  • 4,731
  • 1
  • 42
  • 69
0
votes
1 answer

Recurring problems in Dart polymer project

I am having a problem that seems to be due to caching of dart packages etc. My work machine runs some dart polymer examples without any problem. I use the same project on my home machine it it consistently gives the exception below: Exception: Class…
st_clair_clarke
  • 5,453
  • 13
  • 49
  • 75
0
votes
1 answer

How do I set the context root for a dartium launch?

How do I set up a dartium launch so that the application is available at localhost:3030 instead of the default localhost:3030/path/file?
0
votes
1 answer

How do you use the showhide effect found in the Dart Widget Package

I am trying to use the ShowHide effect that comes with Kevin Moore's widget package here: http://dart-lang.github.io/widget.dart/#showhide Not sure how to use this. Anyone got an example I can look at ? Basically all I want is for a dropdown to…
Softinio
  • 638
  • 1
  • 6
  • 19
0
votes
1 answer

Why can't I run a dart file inside a dir?

I have a simple dart project, it has file structure like: darttest tree . ├── packages │   ├── browser -> /Users/freewind/.pub-cache/hosted/pub.dartlang.org/browser-0.5.20/lib │   ├── meta ->…
Freewind
  • 193,756
  • 157
  • 432
  • 708
0
votes
2 answers

How to test dart pub lib package before deploy?

what is the best way to test a pub lib package before deploy, as if I had downloaded it via pub install? (not talking about unit tests)
H.R.
  • 496
  • 4
  • 14
0
votes
0 answers

How to create a combined Command-line/Library package

I want to turn my package which is a combination of application and lib into a package. MY SITUATION App X is just a script.dart file that creates files inside the root of app X. runs fine! currently for testing I create a new app APP and copy app…
H.R.
  • 496
  • 4
  • 14
0
votes
2 answers

Dart Pub error on package install?

Dart worked until I updated Editor and now I get errors for existing and new projects. I tried a complete reinstall of Dart. I get the following message when I run pub install on web-ui for a new project: --- Jun 11, 2013 10:25:11 PM Running pub…
Phlox Midas
  • 4,093
  • 4
  • 35
  • 56
0
votes
2 answers

Is there something similair to erb or moustache in the Dart standard library which I can use to generate text files from templates?

I'm hoping to create templates for pubspec.yml, ask users to supply the name of their package and then output a version of the pubspec.yml populated with their package. Right now, I'm leaning towards using string interpolation but I believe that…
Mark B
  • 2,870
  • 3
  • 20
  • 18
0
votes
2 answers

Why does the first step in the "Get Started With Web UI" tutorial cause an error and what does the error mean?

I'm going through the "targets" (tutorials) at dartlang.org. I'm at Target 6: Get Started with Web UI and have run into an error at step #1 under the section "Set up background compilation in Dart Editor". Could someone explain why this error is…
Danny
  • 3,670
  • 12
  • 36
  • 45
0
votes
1 answer

Dependency issue Dart

I am brand new to dart and I am attempting to include "Buckshot: 'any'" into my yaml file. Unfortuanately I am getting a dependency error when I run pub install. I am sure that this is a very simple problem but any help would be appreciated. …
mornindew
  • 1,993
  • 6
  • 32
  • 54
0
votes
2 answers

Dart pub publish gives error after authentication

I wanted to put a small library code to pub.dartlang.org After calling pub publish, it asked me to Allow accessing my google account for sending files. After I allowed by going to the given browser link, it gave me this error in the command…
afsina
  • 132
  • 7